Skip to content

Commit

Permalink
assert 1-indexed ranks
Browse files Browse the repository at this point in the history
  • Loading branch information
ivo-1 committed Apr 8, 2024
1 parent cffad66 commit 033d8f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/use_cases/search/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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


Expand All @@ -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


Expand Down

0 comments on commit 033d8f1

Please sign in to comment.