summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp')
-rw-r--r--searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp b/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
index e8e16ffcc98..bb9d9960d08 100644
--- a/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
+++ b/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
@@ -303,22 +303,22 @@ TEST_F("Strict iterator handles seek outside of LID space", ArrayValueFixture) {
TEST_F("cmp() performs GID mapping and forwards to target attribute", SingleValueFixture) {
auto ctx = f.create_context(word_term("5678"));
- EXPECT_FALSE(ctx->cmp(DocId(2)));
- EXPECT_TRUE(ctx->cmp(DocId(3)));
- EXPECT_FALSE(ctx->cmp(DocId(4)));
- EXPECT_TRUE(ctx->cmp(DocId(5)));
+ EXPECT_FALSE(ctx->matches(DocId(2)));
+ EXPECT_TRUE(ctx->matches(DocId(3)));
+ EXPECT_FALSE(ctx->matches(DocId(4)));
+ EXPECT_TRUE(ctx->matches(DocId(5)));
}
TEST_F("cmp(weight) performs GID mapping and forwards to target attribute", WsetValueFixture) {
auto ctx = f.create_context(word_term("foo"));
int32_t weight = 0;
- EXPECT_FALSE(ctx->cmp(DocId(1), weight));
+ EXPECT_FALSE(ctx->matches(DocId(1), weight));
EXPECT_EQUAL(0, weight); // Unchanged
- EXPECT_TRUE(ctx->cmp(DocId(2), weight));
+ EXPECT_TRUE(ctx->matches(DocId(2), weight));
EXPECT_EQUAL(-5, weight);
- EXPECT_TRUE(ctx->cmp(DocId(6), weight));
+ EXPECT_TRUE(ctx->matches(DocId(6), weight));
EXPECT_EQUAL(42, weight);
}