diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-01 19:15:55 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-11-07 16:41:37 +0000 |
commit | f1e2bfe81083c4ee9aa82a70e5f5fe831c81857c (patch) | |
tree | 29455c271aba357de91a096b03e00edca650ffec /test/test-persistence.cpp | |
parent | Test case for named type not existing (diff) | |
download | ilt-f1e2bfe81083c4ee9aa82a70e5f5fe831c81857c.tar.bz2 ilt-f1e2bfe81083c4ee9aa82a70e5f5fe831c81857c.tar.xz ilt-f1e2bfe81083c4ee9aa82a70e5f5fe831c81857c.zip |
Name, rather than number, shared_ptr tests
Diffstat (limited to 'test/test-persistence.cpp')
-rw-r--r-- | test/test-persistence.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test-persistence.cpp b/test/test-persistence.cpp index f94ca81..05a02bb 100644 --- a/test/test-persistence.cpp +++ b/test/test-persistence.cpp @@ -199,9 +199,9 @@ struct SharedTestObject : public Persistence::Persistable { } }; -BOOST_FIXTURE_TEST_CASE(load_shared_object1, JPP) +BOOST_FIXTURE_TEST_CASE(load_shared_object_diff, JPP) { - auto to = load_json<std::unique_ptr<SharedTestObject>>(FIXTURESDIR "json/shared_ptr1.json"); + auto to = load_json<std::unique_ptr<SharedTestObject>>(FIXTURESDIR "json/shared_ptr_diff.json"); BOOST_CHECK(to->sptr); BOOST_CHECK(to->ssptr); BOOST_CHECK_NE(to->sptr, to->ssptr); @@ -209,9 +209,9 @@ BOOST_FIXTURE_TEST_CASE(load_shared_object1, JPP) BOOST_CHECK_EQUAL(to->ssptr.use_count(), 1); } -BOOST_FIXTURE_TEST_CASE(load_shared_object2, JPP) +BOOST_FIXTURE_TEST_CASE(load_shared_object_same, JPP) { - auto to = load_json<std::unique_ptr<SharedTestObject>>(FIXTURESDIR "json/shared_ptr2.json"); + auto to = load_json<std::unique_ptr<SharedTestObject>>(FIXTURESDIR "json/shared_ptr_same.json"); BOOST_CHECK(to->sptr); BOOST_CHECK(to->ssptr); BOOST_CHECK_EQUAL(to->sptr, to->ssptr); @@ -219,9 +219,9 @@ BOOST_FIXTURE_TEST_CASE(load_shared_object2, JPP) BOOST_CHECK_EQUAL(to->ssptr.use_count(), 2); } -BOOST_FIXTURE_TEST_CASE(load_shared_object3, JPP) +BOOST_FIXTURE_TEST_CASE(load_shared_object_diff_default, JPP) { - auto to = load_json<std::unique_ptr<SharedTestObject>>(FIXTURESDIR "json/shared_ptr3.json"); + auto to = load_json<std::unique_ptr<SharedTestObject>>(FIXTURESDIR "json/shared_ptr_diff_default.json"); BOOST_CHECK(to->sptr); BOOST_CHECK(to->ssptr); BOOST_CHECK_NE(to->sptr, to->ssptr); |