Skip to content

Commit

Permalink
Cope with differing floating point arithmetic
Browse files Browse the repository at this point in the history
I suspect Qt is using single precision floats whilst I'm using double
precision.
  • Loading branch information
mossblaser committed Nov 17, 2023
1 parent aab7b50 commit c73ffbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_outline_painter.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def test_colours(self, p, opd):
((1.0, 0.0, 0.0, 1.0), 0.1, [(0.0, 0.0), (1.0, 0.0)]),
((0.0, 1.0, 0.0, 1.0), 0.1, [(0.0, 1.0), (1.0, 1.0)]),
((0.0, 0.0, 1.0, 1.0), 0.1, [(0.0, 2.0), (1.0, 2.0)]),
((0.0, 0.0, 0.0, 128/255.), 0.1, [(0.0, 3.0), (1.0, 3.0)]),
((0.0, 0.0, 0.0, pytest.approx(128/255.)), 0.1, [(0.0, 3.0), (1.0, 3.0)]),
(None, 0.1, [(0.0, 4.0), (1.0, 4.0)]),
]

Expand Down

0 comments on commit c73ffbd

Please sign in to comment.