Commit 6db1c292 authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Test node for left and right children

parent 34a74006
......@@ -4,5 +4,11 @@
import unittest
from bintree import BinTree, BinTreeNode
class TestBinTreeNode(unittest.TestCase):
def test_has_left_and_right(self):
node = BinTreeNode()
self.assertIn("left", node.__dict__)
self.assertIn("right", node.__dict__)
if __name__ == "__main__":
unittest.main()
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