summaryrefslogtreecommitdiffstats
path: root/searchsummary/src/tests
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-09-07 15:26:53 +0200
committerTor Egge <Tor.Egge@online.no>2022-09-07 15:26:53 +0200
commit3daae87bbeab7dad6022064c3f89c08e0cd009cf (patch)
tree95764df6cb9d10a58b4bca9ccc8e947b5b7dc273 /searchsummary/src/tests
parentfa7e942f65ca9c9be35c434bafb4a765ca5b7c50 (diff)
Consolidate juniper separators.
Diffstat (limited to 'searchsummary/src/tests')
-rw-r--r--searchsummary/src/tests/juniper/auxTest.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/searchsummary/src/tests/juniper/auxTest.cpp b/searchsummary/src/tests/juniper/auxTest.cpp
index d4b65858e3e..ef22b0542af 100644
--- a/searchsummary/src/tests/juniper/auxTest.cpp
+++ b/searchsummary/src/tests/juniper/auxTest.cpp
@@ -1,6 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "auxTest.h"
+#include <vespa/juniper/juniper_separators.h>
#include <vespa/fastos/file.h>
#include <vespa/log/log.h>
LOG_SETUP(".auxtest");
@@ -394,11 +395,11 @@ void AuxTest::TestUTF8context()
// some content
std::string s(char_from_u8(u8"Fast leverer s\u00d8kemotorer og andre nyttige ting for \u00e5 finne frem p\u00e5 "));
s.append(char_from_u8(u8"internett. Teknologien er basert p\u00e5 \u00c5relang"));
- s += UNIT_SEPARATOR;
+ s += juniper::separators::unit_separator_string;
s.append(char_from_u8(u8"norsk innsats og forskning i"));
- s += GROUP_SEPARATOR;
+ s += juniper::separators::group_separator_string;
s.append(char_from_u8(u8"trondheimsmilj\u00f8et. M\u00b5ss med denne nye funksjonaliteten for \u00e5 vise frem"));
- s += UNIT_SEPARATOR;
+ s += juniper::separators::unit_separator_string;
s.append(char_from_u8(u8" beste forekomst av s\u00f8ket med s\u00f8kemotor til brukeren blir det enda bedre. "));
s.append(char_from_u8(u8"Hvis bare UTF8-kodingen virker som den skal for tegn som tar mer enn \u00e9n byte."));
@@ -415,8 +416,8 @@ void AuxTest::TestUTF8context()
_test(m.TotalMatchCnt(3) == 1 && m.ExactMatchCnt(2) == 1);
char separators[3];
- separators[0] = UNIT_SEPARATOR;
- separators[1] = GROUP_SEPARATOR;
+ separators[0] = juniper::separators::unit_separator;
+ separators[1] = juniper::separators::group_separator;
separators[2] = '\0';
if (color_highlight)