Skip to content
Snippets Groups Projects
Commit cd6ae168 authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Changed search result from True to BinTreeNode

parent 81e5ef10
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,8 @@ class TestBinTree(unittest.TestCase):
def test_has_insert_and_search(self):
tree = BinTree()
tree.insert(1)
self.assertTrue(tree.search(1))
self.assertFalse(tree.search(0))
self.assertIsInstance(tree.search(1), BinTreeNode)
self.assertIsNone(tree.search(0))
def test_insert_into_empty_tree(self):
tree = BinTree()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment