MCPcopy Create free account
hub / github.com/clips/pattern / test_find

Method test_find

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

Source from the content-addressed store, hash-verified

696 print "pattern.en.Word.custom_tags"
697
698 def test_find(self):
699 # Assert first item for which given function is True.
700 v = text.tree.find(lambda x: x>10, [1,2,3,11,12])
701 self.assertEqual(v, 11)
702 print "pattern.text.tree.find()"
703
704 def test_zip(self):
705 # Assert list of zipped tuples, using default to balance uneven lists.

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected