Commit 2335b3de authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Check for BinTree.root == None

parent d8b7da37
......@@ -4,6 +4,11 @@
import unittest
from bintree import BinTree, BinTreeNode
class TestBinTree(unittest.TestCase):
def test_create_has_root_none(self):
tree = BinTree()
self.assertIsNone(tree.root)
class TestBinTreeNode(unittest.TestCase):
def test_creation(self):
node = BinTreeNode(5)
......
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