@@ -0,0 +1,260 @@
+import pytest%0Afrom ...vocab import Vocab%0Afrom ...tokens import Doc%0Afrom ...matcher import Matcher%0A%0A%0Adef test_issue588():%0A    matcher = Matcher(Vocab())%0A    with pytest.raises(ValueError):%0A        matcher.add(entity_key='1', label='TEST', attrs=%7B%7D, specs=%5B%5B%5D%5D)%0A

Test Issue #588: Matcher accepts invalid, empty patterns.