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

Method test_unique

test/test_graph.py:35–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 print "pattern.graph.deepcopy()"
34
35 def test_unique(self):
36 # Assert list copy with unique items.
37 v = graph.unique([1,1,1])
38 self.assertEqual(len(v), 1)
39 self.assertEqual(v[0], 1)
40 print "pattern.graph.unique()"
41
42 def test_coordinates(self):
43 # Assert 2D coordinates.

Callers

nothing calls this directly

Calls 2

lenFunction · 0.85
uniqueMethod · 0.80

Tested by

no test coverage detected