  #  checks)
  TEST_PATTERNS = [
      # Bad patterns flagged in all cases
      ([{"XX": "foo"}], 1, 1),
      ([{"LENGTH": "2", "TEXT": 2}, {"LOWER": "test"}], 2, 1),
      ([{"IS_ALPHA": {"==": True}}, {"LIKE_NUM": None}], 2, 1),
      ([{"IS_PUNCT": True, "OP": "$"}], 1, 1),
      ([{"IS_DIGIT": -1}], 1, 1),
      ([{"ORTH": -1}], 1, 1),
      ([{"_": "foo"}], 1, 1),
 
</s> remove     ([{"IS_DIGIT": -1}], 1, 1),
    ([{"ORTH": -1}], 1, 1),
 </s> add  </s> remove         elif isinstance(value, dict):
 </s> add         elif isinstance(value, (dict, int)):
  #  checks)
  TEST_PATTERNS = [
      # Bad patterns flagged in all cases
      ([{"XX": "foo"}], 1, 1),

      ([{"IS_ALPHA": {"==": True}}, {"LIKE_NUM": None}], 2, 1),
      ([{"IS_PUNCT": True, "OP": "$"}], 1, 1),
      ([{"IS_DIGIT": -1}], 1, 1),
      ([{"ORTH": -1}], 1, 1),
      ([{"_": "foo"}], 1, 1),
keep keep keep keep replace keep keep keep keep keep
 Allow int values in token patterns (#4444)

* Add missing int value option to top-level pattern validation in Matcher

* Adjust existing tests accordingly

* Add new test for valid pattern `{"LENGTH": int}` 
spacy/tests/matcher/test_pattern_validation.py