def test_double(self): test = 0 try: tmp, r1, r2 = poly.solve_quadratic(1,3,2) test = 1 finally: if test == 0: print(poly.solve_quadratic(1,3,2)) assert(tmp == 2) assert(r1 == -2 or r2 == -2) assert(r1 == -1 or r2 == -1)
def test_double(self): test = 0 try: tmp, r1, r2 = poly.solve_quadratic(1,3,2) test = 1 finally: if test == 0: print poly.solve_quadratic(1,3,2) assert(tmp == 2) assert(r1 == -2 or r2 == -2) assert(r1 == -1 or r2 == -1)
def test_double(): tmp, r1, r2 = poly.solve_quadratic(1,3,2)
def test_double(): tmp, r1, r2 = poly.solve_quadratic(1, 3, 2)