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

Check for BinTree.root == None

parent d8b7da37
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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