Commit 81e5ef10 authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Made test for search more precise

parent 7ff12c61
......@@ -12,7 +12,8 @@ class TestBinTree(unittest.TestCase):
def test_has_insert_and_search(self):
tree = BinTree()
tree.insert(1)
tree.search(1)
self.assertTrue(tree.search(1))
self.assertFalse(tree.search(0))
def test_insert_into_empty_tree(self):
tree = BinTree()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment