From 58bdce57076fe2c2c72d661aac46a42849a52a2f Mon Sep 17 00:00:00 2001 From: SkalskiP Date: Thu, 24 Jul 2025 15:13:46 +0200 Subject: [PATCH] tests fixed --- test/detection/utils/test_vlms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/detection/utils/test_vlms.py b/test/detection/utils/test_vlms.py index 76310a22..a6fe649b 100644 --- a/test/detection/utils/test_vlms.py +++ b/test/detection/utils/test_vlms.py @@ -73,7 +73,7 @@ def test_edit_distance(string_1, string_2, case_sensitive, expected_result): # exact match at index 0 (["cat", "dog", "rat"], "cat", 0, True, 0), # match at index 2 within threshold - (["cat", "dog", "rat"], "dat", 1, True, 2), + (["cat", "dog", "rat"], "dat", 1, True, 0), # no match due to high threshold (["cat", "dog", "rat"], "bat", 0, True, None), # multiple possible matches, returns first @@ -87,7 +87,7 @@ def test_edit_distance(string_1, string_2, case_sensitive, expected_result): # no match (all distances too high) (["one", "two", "three"], "ten", 1, True, None), # unicode/emoji match - (["😊", "😢", "😁"], "😄", 1, True, None), + (["😊", "😢", "😁"], "😄", 1, True, 0), (["😊", "😢", "😁"], "😊", 0, True, 0), # empty candidates ([], "any", 2, True, None),