diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tree_bst_checkTest.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/tree_bst_checkTest.py b/tests/tree_bst_checkTest.py new file mode 100644 index 0000000..6924168 --- /dev/null +++ b/tests/tree_bst_checkTest.py @@ -0,0 +1,15 @@ +import unittest + +from sources.tree_bst_check import isBst + +class MyTestCase(unittest.TestCase): + def test_something(self): + key = [2, 1, 3] + left = [1, -1, -1] + right = [2, -1, -1] + + self.assertTrue(isBst(key, left, right)) + + +if __name__ == '__main__': + unittest.main() |