From eba53749c38a2a82060c518bf554cad5755e15c3 Mon Sep 17 00:00:00 2001 From: itzpr3d4t0r <103119829+itzpr3d4t0r@users.noreply.github.com> Date: Sat, 19 Oct 2024 14:24:23 +0200 Subject: [PATCH] fix tests --- test/test_line.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test_line.py b/test/test_line.py index 790b7b90..dfc9b35b 100644 --- a/test/test_line.py +++ b/test/test_line.py @@ -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) @@ -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)