diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-02-25 16:16:07 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-02-25 16:16:07 +0100 |
commit | 480dbd76c9720e1fd895abd15bf5828f3b2c1411 (patch) | |
tree | f3e09d60ac292714ccc99138ffa60cf6e0f4f026 | |
parent | 0ca11c3ea9e563f331f552c18ae8a135060865e5 (diff) |
Stop trying to compare arrays (deprecated in C++20)
-rw-r--r-- | vespalib/src/tests/testapp-debug/debugtest.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/vespalib/src/tests/testapp-debug/debugtest.cpp b/vespalib/src/tests/testapp-debug/debugtest.cpp index 2ff7affc323..78bf3d69215 100644 --- a/vespalib/src/tests/testapp-debug/debugtest.cpp +++ b/vespalib/src/tests/testapp-debug/debugtest.cpp @@ -5,25 +5,25 @@ using namespace vespalib; void testDebug() { TEST_DEBUG("lhs.out", "rhs.out"); - EXPECT_EQUAL("a\n" - "b\n" - "c\n", + EXPECT_EQUAL(string("a\n" + "b\n" + "c\n"), - "a\n" - "b\n" - "c\n" - "d\n"); - EXPECT_EQUAL("a\n" - "d\n" - "b\n" - "c\n", + string("a\n" + "b\n" + "c\n" + "d\n")); + EXPECT_EQUAL(string("a\n" + "d\n" + "b\n" + "c\n"), - "a\n" - "b\n" - "c\n" - "d\n"); + string("a\n" + "b\n" + "c\n" + "d\n")); EXPECT_EQUAL(1, 2); - EXPECT_EQUAL("foo", "bar"); + EXPECT_EQUAL(string("foo"), string("bar")); } TEST_MAIN() { |