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 | |
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
-rw-r--r-- | test/fixtures/json/shared_ptr_diff.json (renamed from test/fixtures/json/shared_ptr1.json) | 0 | ||||
-rw-r--r-- | test/fixtures/json/shared_ptr_diff_default.json (renamed from test/fixtures/json/shared_ptr3.json) | 0 | ||||
-rw-r--r-- | test/fixtures/json/shared_ptr_same.json (renamed from test/fixtures/json/shared_ptr2.json) | 0 | ||||
-rw-r--r-- | test/test-persistence.cpp | 12 |
4 files changed, 6 insertions, 6 deletions
diff --git a/test/fixtures/json/shared_ptr1.json b/test/fixtures/json/shared_ptr_diff.json index bb18e33..bb18e33 100644 --- a/test/fixtures/json/shared_ptr1.json +++ b/test/fixtures/json/shared_ptr_diff.json diff --git a/test/fixtures/json/shared_ptr3.json b/test/fixtures/json/shared_ptr_diff_default.json index 69f5e85..69f5e85 100644 --- a/test/fixtures/json/shared_ptr3.json +++ b/test/fixtures/json/shared_ptr_diff_default.json diff --git a/test/fixtures/json/shared_ptr2.json b/test/fixtures/json/shared_ptr_same.json index 4115493..4115493 100644 --- a/test/fixtures/json/shared_ptr2.json +++ b/test/fixtures/json/shared_ptr_same.json 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); |