Esempio n. 1
0
 def testbinary_search_possitive(self):                         # function to test binarysearch of posotive number
     result = Utilities.binary_search(1,4,3,[1,2,3,4,5,6])      # call the uitlites class and storing the result
     expected = 1
     self.assertEqual(expected, result)                         # Checking result and expected With Equal Function