bisect_test.py | 7 bisect_builds = __import__('bisect-builds') 35 def bisect(self, good_rev, bad_rev, evaluate): member in class:BisectTest 36 return bisect_builds.Bisect(good_rev=good_rev, 46 self.assertEqual(self.bisect(1000, 100, lambda *args: 'g'), (100, 101)) 47 self.assertEqual(self.bisect(100, 1000, lambda *args: 'b'), (100, 101)) 48 self.assertEqual(self.bisect(2000, 200, lambda *args: 'b'), (1999, 2000)) 49 self.assertEqual(self.bisect(200, 2000, lambda *args: 'g'), (1999, 2000))
|