MCPcopy Index your code
hub / github.com/clips/pattern / test_split

Method test_split

test/test_en.py:515–519  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

513 print "pattern.en.parsetree()"
514
515 def test_split(self):
516 # Assert split(parse(s)) == Text.
517 v = en.split(en.parse("The cat purs."))
518 self.assertTrue(isinstance(v, en.Text))
519 print "pattern.en.split()"
520
521 def test_tag(self):
522 # Assert [("black", "JJ"), ("cats", "NNS")].

Callers

nothing calls this directly

Calls 2

splitMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected