From c6b2dba8473cb28a485b35f4bbb65ea3596a63f5 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 18 Sep 2024 23:53:51 +0200 Subject: [PATCH] Updating tests --- .../streamers/oasis/unit_tests/dbOASISReaderTests.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/streamers/oasis/unit_tests/dbOASISReaderTests.cc b/src/plugins/streamers/oasis/unit_tests/dbOASISReaderTests.cc index a519ff1a7..a6b9359b0 100644 --- a/src/plugins/streamers/oasis/unit_tests/dbOASISReaderTests.cc +++ b/src/plugins/streamers/oasis/unit_tests/dbOASISReaderTests.cc @@ -127,7 +127,7 @@ run_test_error (tl::TestBase *_this, const char *test, const char *msg_au) error = true; } EXPECT_EQ (error, true) - EXPECT_EQ (msg, msg_au) + EXPECT_EQ (msg.find (msg_au), size_t (0)); } TEST(1_1) @@ -635,7 +635,7 @@ TEST(Bug_1474) // Seen when private test data is not installed throw; } catch (tl::Exception &ex) { - EXPECT_EQ (ex.msg (), "Cell named ADDHX2 with ID 4 was already given name SEDFFTRX2 (position=763169, cell=)"); + EXPECT_EQ (ex.msg ().find ("Cell named ADDHX2 with ID 4 was already given name SEDFFTRX2 (position=763169, cell=)"), size_t (0)); } } @@ -678,6 +678,6 @@ TEST(DuplicateCellname) // Seen when private test data is not installed throw; } catch (tl::Exception &ex) { - EXPECT_EQ (ex.msg (), "Same cell name TOP, but different IDs: 3 and 0 (position=1070, cell=)"); + EXPECT_EQ (ex.msg ().find ("Same cell name TOP, but different IDs: 3 and 0 (position=1070, cell=)"), size_t (0)); } }