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

Method test_fringe

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

Source from the content-addressed store, hash-verified

273 print "pattern.graph.Graph.prune()"
274
275 def test_fringe(self):
276 # Assert leaf fetching.
277 g = self.g.copy()
278 self.assertEqual(g.fringe(0), [g["a"], g["c"]])
279 self.assertEqual(g.fringe(1), [g["a"], g["b"], g["c"]])
280 print "pattern.graph.Graph.fringe()"
281
282 def test_split(self):
283 # Asset subgraph splitting.

Callers

nothing calls this directly

Calls 2

fringeMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected