diff options
Diffstat (limited to 'searchcore/src/tests/proton/matching/matching_test.cpp')
-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")); |