Closed psampaz closed 3 years ago
I don't know of another, better, way.
the magical value of 0.5 is just that: a magical value, which can be increased by experimentation.
that said, it's possible the discrepancy is coming from the Gio version being used. I haven't updated Gio (nor the reference files) in a somewhat long time and Gio has seen a few updates in the path/strokes department.
let me update the Gio stack.
see https://github.com/go-p5/p5/pull/18. do the reference files work better for you?
(what platform/os are you working with, btw?)
BTW, I've created this little program to see differences (and the min/max of those) between 2 images:
now it is fine, thanks 👍
I am trying to run locally the test suite but it fails due to existing delta of 0.05
=== RUN TestAPIShapes api_test.go:61: testdata/api_shapes.png: images compare different --- FAIL: TestAPIShapes (0.08s)
Increasing delta to 0.06 make test green.
Is there any other more robust way to implement tests avoiding image comparison completely? Is there a way to compare the state that produces the images instead of the images themselves?