summaryrefslogtreecommitdiff
path: root/test/test-persistence.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-05-01 19:12:12 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commit7682e0939a7cd32243d9b8597b0985a3084d972f (patch)
treee9bfc8a81a78c6d26c0900f76a62b2eba49c7fb9 /test/test-persistence.cpp
parentError on bad cast of named type (diff)
downloadilt-7682e0939a7cd32243d9b8597b0985a3084d972f.tar.bz2
ilt-7682e0939a7cd32243d9b8597b0985a3084d972f.tar.xz
ilt-7682e0939a7cd32243d9b8597b0985a3084d972f.zip
Standard wrapper in failure cases
Diffstat (limited to 'test/test-persistence.cpp')
-rw-r--r--test/test-persistence.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test-persistence.cpp b/test/test-persistence.cpp
index 523ca41..a7b328d 100644
--- a/test/test-persistence.cpp
+++ b/test/test-persistence.cpp
@@ -156,8 +156,7 @@ fixtures_in(const std::filesystem::path & root)
BOOST_DATA_TEST_CASE_F(JPP, various_parse_failures, fixtures_in(FIXTURESDIR "json/bad"), path)
{
- std::ifstream ss {path};
- BOOST_CHECK_THROW(loadState<std::unique_ptr<TestObject>>(ss), std::runtime_error);
+ BOOST_CHECK_THROW(load_json<std::unique_ptr<TestObject>>(path), std::runtime_error);
}
BOOST_FIXTURE_TEST_CASE(load_abs_object, JPP)