Commits

Matt Chaput  committed 62a4d1b

Added NGRAMWORDS test.

  • Participants
  • Parent commits dc5d1e7

Comments (0)

Files changed (1)

File tests/test_analysis.py

     t = analysis.RegexTokenizer("\w+")
     with pytest.raises(analysis.CompositionError):
         _ = t | analysis.StandardAnalyzer()
+
+
+def test_ngramwords_tokenizer():
+    tk = analysis.CommaSeparatedTokenizer()
+    tags = fields.NGRAMWORDS(minsize=3, maxsize=50, tokenizer=tk, stored=True,
+                             queryor=True)
+    schema = fields.Schema(tags=tags)