summaryrefslogtreecommitdiff
path: root/tests/tree_bst_checkTest.py
blob: 6924168459673280fc9e48242c9ec920636a6f61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()