Mercurial > lcfOS
diff test/testgraph.py @ 337:b00219172a42
Added cool lm3s811 qemu project
author | Windel Bouwman |
---|---|
date | Thu, 20 Feb 2014 20:04:52 +0100 |
parents | e9fe6988497c |
children | 86b02c98a717 |
line wrap: on
line diff
--- a/test/testgraph.py Wed Feb 19 22:32:15 2014 +0100 +++ b/test/testgraph.py Thu Feb 20 20:04:52 2014 +0100 @@ -13,9 +13,9 @@ def testEdge(self): g = Graph() n1 = Node(g) - g.addNode(n1) + g.add_node(n1) n2 = Node(g) - g.addNode(n2) + g.add_node(n2) g.addEdge(n1, n2) self.assertTrue(g.hasEdge(n2, n1)) self.assertTrue(g.hasEdge(n1, n2)) @@ -25,11 +25,11 @@ def testDegree(self): g = Graph() n1 = Node(g) - g.addNode(n1) + g.add_node(n1) n2 = Node(g) - g.addNode(n2) + g.add_node(n2) n3 = Node(g) - g.addNode(n3) + g.add_node(n3) g.addEdge(n1, n2) g.addEdge(n1, n3) self.assertEqual(2, n1.Degree) @@ -44,9 +44,9 @@ a = DiNode(g) b = DiNode(g) c = DiNode(g) - g.addNode(a) - g.addNode(b) - g.addNode(c) + g.add_node(a) + g.add_node(b) + g.add_node(c) g.addEdge(a, b) g.addEdge(b, c) self.assertEqual({b}, a.Succ)