From 033d8f12b07c9c69434395ced6e8a0a0775995f5 Mon Sep 17 00:00:00 2001 From: Ivo Schaper Date: Mon, 8 Apr 2024 13:50:48 +0200 Subject: [PATCH] assert 1-indexed ranks --- tests/use_cases/search/test_search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/use_cases/search/test_search.py b/tests/use_cases/search/test_search.py index 6f5d58917..0ff6bedcd 100644 --- a/tests/use_cases/search/test_search.py +++ b/tests/use_cases/search/test_search.py @@ -90,7 +90,7 @@ def test_search_evaluation_logic_works_for_overlapping_output( ) eval = logic.do_evaluate(example, output) - assert eval.rank == 0 + assert eval.rank == 1 assert eval.similarity_score == output.output.results[0].score @@ -113,7 +113,7 @@ def test_search_evaluation_logic_works_for_wholly_included_output( ) eval = logic.do_evaluate(example, *[output]) - assert eval.rank == 0 + assert eval.rank == 1 assert eval.similarity_score == output.output.results[0].score @@ -136,7 +136,7 @@ def test_search_evaluation_logic_works_for_identical_ranges( ) eval = logic.do_evaluate(example, *[output]) - assert eval.rank == 0 + assert eval.rank == 1 assert eval.similarity_score == output.output.results[0].score