summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/aggregator
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests/aggregator')
-rw-r--r--searchlib/src/tests/aggregator/perdocexpr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchlib/src/tests/aggregator/perdocexpr.cpp b/searchlib/src/tests/aggregator/perdocexpr.cpp
index 41465f991e3..039b3ae1fc0 100644
--- a/searchlib/src/tests/aggregator/perdocexpr.cpp
+++ b/searchlib/src/tests/aggregator/perdocexpr.cpp
@@ -762,7 +762,9 @@ TEST("testDivExpressions") {
ToRawFunctionNode e(MU<ConstantNode>(MU<Int64ResultNode>(238686)));
e.prepare(false);
e.execute();
- EXPECT_EQUAL(strcmp(static_cast<const RawResultNode &>(e.getResult()).get().c_str(), "238686"), 0);
+ auto raw_result = static_cast<const RawResultNode &>(e.getResult()).get();
+ EXPECT_EQUAL(6u, raw_result.size());
+ EXPECT_EQUAL(strncmp(raw_result.c_str(), "238686", 6u), 0);
}
{