meientau / pstest

A PostScript unit test framework, written in PostScript.
MIT License
0 stars 0 forks source link

Floating-point tests are fragile #19

Open meientau opened 8 years ago

meientau commented 8 years ago

The assertions assert-almost-equal and assert-not-almost-equal themselves depend only on a wisely chosen epsilon. Their unit tests however compare the textual output of small floating point numbers, which might differ from implementation to implementation. See sample-expected.out.