MCPcopy
hub / github.com/keon/algorithms / setUp

Method setUp

algorithms/tree/bst_num_empty.py:55–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53
54class TestSuite(unittest.TestCase):
55 def setUp(self):
56 self.tree = bst()
57 self.tree.insert(9)
58 self.tree.insert(6)
59 self.tree.insert(12)
60 self.tree.insert(3)
61 self.tree.insert(8)
62 self.tree.insert(10)
63 self.tree.insert(15)
64 self.tree.insert(7)
65 self.tree.insert(18)
66
67 def test_num_empty(self):
68 self.assertEqual(10, num_empty(self.tree.root))

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected