summaryrefslogtreecommitdiff
path: root/test/test-persistence.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-05-01 19:15:55 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-11-07 16:41:37 +0000
commitf1e2bfe81083c4ee9aa82a70e5f5fe831c81857c (patch)
tree29455c271aba357de91a096b03e00edca650ffec /test/test-persistence.cpp
parentTest case for named type not existing (diff)
downloadilt-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.cpp12
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);