chiark / gitweb /
build default stopword list into server
[disorder] / tests / search.py
index 3be6ec932a0074f73713beacdde9de18c80c093d..dab3939933c9301145905a818d9e777f78613718 100755 (executable)
@@ -89,6 +89,8 @@ def test():
     check_search_results([u"fi\u0300rst"], first)
     check_search_results([u"THI\u0301RD"], third)
     check_search_results([u"thI\u0301rd"], third)
+    # stopwords shouldn't show up
+    check_search_results(["01"], [])
     
     if failures > 0:
         sys.exit(1)