def test_cubic_double(self): test = 0 try: tmp, r1, r2, r3 = poly.solve_cubic(6,11,6) test = 1 finally: if test == 0: print(poly.solve_cubic(6,11,6)) assert(tmp == 3) assert(r1 == -2 or r2 == -2 or r3 == -2) assert(r1 == -1 or r2 == -1 or r3 == -1) assert(r1 == -3 or r2 == -3 or r3 == -3)
def test_cubic_double(self): test = 0 try: tmp, r1, r2, r3 = poly.solve_cubic(6,11,6) test = 1 finally: if test == 0: print poly.solve_cubic(6,11,6) assert(tmp == 3) assert(r1 == -2 or r2 == -2 or r3 == -2) assert(r1 == -1 or r2 == -1 or r3 == -1) assert(r1 == -3 or r2 == -3 or r3 == -3)
def test_cubic_double(): tmp, r1, r2, r3 = poly.solve_cubic(6,11,6)
def test_cubic_double(): tmp, r1, r2, r3 = poly.solve_cubic(6, 11, 6)