From 7682e0939a7cd32243d9b8597b0985a3084d972f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 May 2021 19:12:12 +0100 Subject: Standard wrapper in failure cases --- test/test-persistence.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') 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>(ss), std::runtime_error); + BOOST_CHECK_THROW(load_json>(path), std::runtime_error); } BOOST_FIXTURE_TEST_CASE(load_abs_object, JPP) -- cgit v1.2.3