Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Andreas Fischer
apt_exercises
Commits
6db1c292
Commit
6db1c292
authored
May 21, 2020
by
Andreas Fischer
Browse files
Test node for left and right children
parent
34a74006
Changes
1
Hide whitespace changes
Inline
Side-by-side
Programming_Paradigms/bintree_test.py
View file @
6db1c292
...
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment