예제 #1
0
 def test_case_22(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstIterative(test, 29749), 4500)
예제 #2
0
 def test_case_20(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstIterative(test, -1), 1)
예제 #3
0
 def test_case_21(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstIterative(test, 29751), 55000)
예제 #4
0
 def test_case_19(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstIterative(test, 30000), 55000)
예제 #5
0
 def test_case_18(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstIterative(test, 6), 5)
예제 #6
0
 def test_case_17(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstIterative(test, 2000), 1001)
예제 #7
0
 def test_case_16(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstIterative(test, -70), -51)
예제 #8
0
 def test_case_15(self):
     self.assertEqual(findClosestValueInBST.findClosestValueInBstIterative(test, 4501), 4500)