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

Method test_unique

test/test_search.py:29–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 print "pattern.search._match()"
28
29 def test_unique(self):
30 self.assertEqual(search.unique([1,1,2,2]), [1,2])
31
32 def test_find(self):
33 self.assertEqual(search.find(lambda v: v>2, [1,2,3,4,5]), 3)

Callers

nothing calls this directly

Calls 1

uniqueMethod · 0.80

Tested by

no test coverage detected