From b5e2eb253c758016f3759a7bd7e0205374b7576f Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 26 May 2024 01:17:27 +0200 Subject: [PATCH] Adjusted unit tests --- src/db/unit_tests/dbTextTests.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db/unit_tests/dbTextTests.cc b/src/db/unit_tests/dbTextTests.cc index a1628d6c1..c9f11cd76 100644 --- a/src/db/unit_tests/dbTextTests.cc +++ b/src/db/unit_tests/dbTextTests.cc @@ -113,7 +113,9 @@ TEST(3) db::StringRepository::change_string_ref (ref1, "U"); EXPECT_EQ (std::string (s1.text_string ()), "U"); - EXPECT_EQ (std::string (s1dup.text_string ()), "X"); + // NOTE: as we have a global string repo, modfiying the string reference + // also changes the copy: + EXPECT_EQ (std::string (s1dup.text_string ()), "U"); db::Shape s2a = c2->shapes (l2).insert (s1);