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

Test node for left and right children

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