예제 #1
0
 def test_case_11(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstRecursive(test, 29749), 4500)
예제 #2
0
 def test_case_10(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstRecursive(test, 29751), 55000)
예제 #3
0
 def test_case_9(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstRecursive(test, -1), 1)
예제 #4
0
 def test_case_6(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstRecursive(test, 2000), 1001)
예제 #5
0
 def test_case_5(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstRecursive(test, -70), -51)
예제 #6
0
 def test_case_2(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstRecursive(test, 208), 208)