def test_bisect_variable(self): b = Box([x, y, z]) (b1, b2) = b.bisect(x) self.assertEqual(b1[x].ub(), 0) self.assertEqual(b2[x].lb(), 0)
def test_bisect_int(self): b = Box([x, y, z]) (b1, b2) = b.bisect(0) self.assertEqual(b1[0].ub(), 0) self.assertEqual(b2[0].lb(), 0)