mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
Update matcher pattern validation tests (#12835)
- parametrize over individual token patterns (as originally intended, as far as I can tell) - add a test for lowercase `in` in patterns
This commit is contained in:
parent
95075298f5
commit
6bf7c65329
|
@ -52,7 +52,8 @@ TEST_PATTERNS = [
|
|||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"pattern", [[{"XX": "y"}, {"LENGTH": "2"}, {"TEXT": {"IN": 5}}]]
|
||||
"pattern",
|
||||
[[{"XX": "y"}], [{"LENGTH": "2"}], [{"TEXT": {"IN": 5}}], [{"text": {"in": 6}}]],
|
||||
)
|
||||
def test_matcher_pattern_validation(en_vocab, pattern):
|
||||
matcher = Matcher(en_vocab, validate=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user