diff options
author | Håvard Pettersen <havardpe@oath.com> | 2021-11-04 16:02:52 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2021-11-04 16:02:52 +0000 |
commit | 44b72bd69ff64748390bcdcada503fcb589c513c (patch) | |
tree | 53627960648eb11ebb2178cad0a7eeaf6d467c56 /searchcore | |
parent | 2b2a16ac12b6fd40008bac37d59ec6fc89f66539 (diff) |
use first phase ranking to verify match feature ordering
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/tests/proton/matching/matching_test.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp index 5d084a2448f..1123871b91e 100644 --- a/searchcore/src/tests/proton/matching/matching_test.cpp +++ b/searchcore/src/tests/proton/matching/matching_test.cpp @@ -236,6 +236,7 @@ struct MyWorld { const auto *f = &reply.match_features.values[i * 5]; EXPECT_GREATER(f[0].as_double(), 0.0); EXPECT_GREATER(f[1].as_double(), 0.0); + EXPECT_EQUAL(f[0].as_double(), reply.hits[i].metric); EXPECT_EQUAL(f[0].as_double() * 2, f[1].as_double()); EXPECT_EQUAL(f[2].as_double(), double(matched_field == "a1")); EXPECT_EQUAL(f[3].as_double(), double(matched_field == "f1")); |