code: def test_frowny_face():
      # See https://bitbucket.org/mchaput/whoosh/issue/166/
      ana = analysis.RegexTokenizer(r"\S+") | analysis.IntraWordFilter()
      # text is all delimiters
      tokens = [t.text for t in ana(u(":-("))]
      assert tokens == []
  
      # text has consecutive delimiters
      tokens = [t.text for t in ana(u("LOL:)"))]
      assert tokens == ["LOL"]
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, qparser
  from whoosh.compat import b, u, unichr
  from whoosh.compat import dumps
  from whoosh.filedb.filestore import RamStorage
label_desc: Use image node_id 25 for calling a global function with example usage: test_frowny_face() without return types