Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itzpr3d4t0r committed Oct 19, 2024
1 parent ae71721 commit eba5374
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/test_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,10 +1520,10 @@ def rotate_point(x, y, rang, cx, cy):
return Line(x1, y1, x2, y2)

def assert_approx_equal(line1, line2, eps=1e-12):
self.assertAlmostEqual(line1.x1, line2.x1, delta=eps)
self.assertAlmostEqual(line1.y1, line2.y1, delta=eps)
self.assertAlmostEqual(line1.x2, line2.x2, delta=eps)
self.assertAlmostEqual(line1.y2, line2.y2, delta=eps)
self.assertAlmostEqual(line1.xa, line2.xa, delta=eps)
self.assertAlmostEqual(line1.ya, line2.ya, delta=eps)
self.assertAlmostEqual(line1.xb, line2.xb, delta=eps)
self.assertAlmostEqual(line1.yb, line2.yb, delta=eps)

l = Line(0, 0, 1, 1)
angles = float_range(-360, 360, 0.5)
Expand Down Expand Up @@ -1555,10 +1555,10 @@ def rotate_point(x, y, rang, cx, cy):
return Line(x1, y1, x2, y2)

def assert_approx_equal(line1, line2, eps=1e-12):
self.assertAlmostEqual(line1.x1, line2.x1, delta=eps)
self.assertAlmostEqual(line1.y1, line2.y1, delta=eps)
self.assertAlmostEqual(line1.x2, line2.x2, delta=eps)
self.assertAlmostEqual(line1.y2, line2.y2, delta=eps)
self.assertAlmostEqual(line1.xa, line2.xa, delta=eps)
self.assertAlmostEqual(line1.ya, line2.ya, delta=eps)
self.assertAlmostEqual(line1.xb, line2.xb, delta=eps)
self.assertAlmostEqual(line1.yb, line2.yb, delta=eps)

l = Line(0, 0, 1, 1)
angles = float_range(-360, 360, 0.5)
Expand Down

0 comments on commit eba5374

Please sign in to comment.