示例#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)