diff --git a/tests/core/test_text_highlight.py b/tests/core/test_text_highlight.py index 7d78bc71d..4b01563e6 100644 --- a/tests/core/test_text_highlight.py +++ b/tests/core/test_text_highlight.py @@ -309,4 +309,5 @@ def test_highlight_clamps_end_correctly( # then assert result.highlights[0].start == start assert result.highlights[0].end == end - assert result.highlights[0].score == score + assert abs(result.highlights[0].score - score) <= 0.005 +