fonttools / skia-pathops

Python bindings for the Skia library's Path Ops
https://skia.org/docs/dev/present/pathops/
BSD 3-Clause "New" or "Revised" License
47 stars 14 forks source link

tests: compare difference to threshold #59

Closed mklca closed 2 years ago

mklca commented 2 years ago

Fixes #58 by first taking the difference between the expected and actual values and then bounding this within a tolerance.

mklca commented 2 years ago

Doh:

Changed in version 3.10: Added the strict argument.

mklca commented 2 years ago

Replaced strict=True with an explicit len check. I'm not a Pythonista so maybe there's another way…

anthrotype commented 2 years ago

looks good to me, thank you!