Skip to content

The agent that grows with you

test(fuzzy_match): cover 3-char expansion boundary in the same invariant test

kshitijk4poord4a02c211f1f
diff --git a/tests/tools/test_fuzzy_match.py b/tests/tools/test_fuzzy_match.py
index b6b81b289ec..64f4adcdb62 100644
--- a/tests/tools/test_fuzzy_match.py
+++ b/tests/tools/test_fuzzy_match.py
@@ -245,6 +245,12 @@ class TestUnicodeNormalized:
assert strategy == "unicode_normalized"
assert new == "value = x\u2014@\u2014y\n", f"Got {new!r}"
+ # Same boundary class for a 3-char expansion (ellipsis -> '...').
+ new, count, strategy, err = fuzzy_find_and_replace("a\u2026b\n", "a...b", "a..X.b")
+ assert count == 1, f"Expected match, got err={err}"
+ assert strategy == "unicode_normalized"
+ assert new == "a\u2026X\u2026b\n", f"Got {new!r}"
+
class TestUnicodeSpaceAndMinusNormalized:
"""Space-separator family + Unicode minus normalization.