예제 #1
0
 def test_case_10(self):
     self.assertEqual(solution.findClosestValueInBst(test, 29751), 55000)
예제 #2
0
 def test_case_11(self):
     self.assertEqual(solution.findClosestValueInBst(test, 29749), 4500)
예제 #3
0
 def test_case_8(self):
     self.assertEqual(solution.findClosestValueInBst(test, 30000), 55000)
예제 #4
0
 def test_case_9(self):
     self.assertEqual(solution.findClosestValueInBst(test, -1), 1)
예제 #5
0
 def test_case_7(self):
     self.assertEqual(solution.findClosestValueInBst(test, 6), 5)
예제 #6
0
 def test_case_6(self):
     self.assertEqual(solution.findClosestValueInBst(test, 2000), 1001)
예제 #7
0
 def test_case_5(self):
     self.assertEqual(solution.findClosestValueInBst(test, -70), -51)
예제 #8
0
 def test_case_4(self):
     self.assertEqual(solution.findClosestValueInBst(test, 4501), 4500)
예제 #9
0
 def test_case_2(self):
     self.assertEqual(solution.findClosestValueInBst(test, 208), 208)