Пример #1
0
 def test_insert_multiple_iterative(self):
     b = BST()
     b.insert_iterative(4)
     b.insert_iterative(5)
     b.insert_iterative(6)
     result = b.walk()
     self.assertEquals(result, [4, 5, 6])
Пример #2
0
 def test_insert_one_recursive(self):
     b = BST()
     b.insert_recursive(4)
     result = b.walk()
     self.assertEquals(result, [4])