From a6cf58f64e109202ef2900046ad5ca411721d6bc Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 28 Nov 2022 13:46:29 +0100 Subject: [PATCH] Format tests --- spacy/tests/matcher/test_matcher_logic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/tests/matcher/test_matcher_logic.py b/spacy/tests/matcher/test_matcher_logic.py index 4810f599b..f41db1979 100644 --- a/spacy/tests/matcher/test_matcher_logic.py +++ b/spacy/tests/matcher/test_matcher_logic.py @@ -813,11 +813,11 @@ def test_matcher_non_greedy_operator(en_vocab): (7, "aabbab", "a*? b*", ["a a b", "a b", "b", "a a b b", "a b b", "b b", "b", "a b", "b"]), (8, "aabbc", "a* b*? c*?", ["a", "a a", "a"]), (9, "aabbc", "a* b*? c", ["a a b b c", "a b b c", "b b c", "b c", "c"]), - (10, "abc", "a* b*? c*", ["a", "a b c", "b c", "c"]), # in spaCy, quantifier "*" returns __all__possible__ matches which is # different from regex - # quantifier "*?" is designed to return only the non-greedy results from # all possible matches + # quantifier "*?" is designed to return only the non-greedy results from + # all possible matches # Result 1: a # Result 2: a b c # Result 3: c