summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-02-25 17:32:46 +0100
committerGitHub <noreply@github.com>2022-02-25 17:32:46 +0100
commit4d42745d588c809b49de187c030ba97b7310e1e6 (patch)
tree7f216290b23ce3e0f91fed1b2e66186b979ecb86 /vespalib
parent9f8fb146e752db42a84e8faebed51711c43b69e6 (diff)
parent480dbd76c9720e1fd895abd15bf5828f3b2c1411 (diff)
Merge pull request #21405 from vespa-engine/toregge/stop-trying-to-compare-arrays
Stop trying to compare arrays (deprecated in C++20)
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/tests/testapp-debug/debugtest.cpp32
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() {