Beispiel #1
0
 def test_creats_new_tree(self):
     a = AVLTree.fromkeys([], None)
     self.assertIsInstance(a, AVLTree)
Beispiel #2
0
 def test_from_array(self):
     a = AVLTree.fromkeys([1, 2, 3], None)
     self.assertListEqual(list(a.items()), [(1, None), (2, None), (3, None)])