diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-09-27 06:55:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-09-27 06:55:43 -0700 |
commit | a06fdec52c8d436db925ec158d231627773f5bf9 (patch) | |
tree | 8aa8314f4bd26fff0404e3ae7b371c3ec496f11f /ChangeLog-2009-2015 | |
parent | 0226bb15ab30cb60992dadc3d825249a58229468 (diff) | |
download | txr-a06fdec52c8d436db925ec158d231627773f5bf9.tar.gz txr-a06fdec52c8d436db925ec158d231627773f5bf9.tar.bz2 txr-a06fdec52c8d436db925ec158d231627773f5bf9.zip |
quantile: fix test needing nonportable amount of precision.
* tests/common.tl (sstest): New macro. Like stest, but the right hand
side is an object which the macro turns to a string, rather than
expecting a string.
* tests/016/arith.tl: Use the sstest macro for the main quantile
test to compare the result and expected value as character strings
rather than objects. Specify the expected values using no more
than 14 decimal digits of precision, and over the scope of the test
case, restrict floating-point printing to 14 digits. Thus, we
effectively have quick and dirty epsilon comparison to 14 digits
that recurses over the list, without having to write that as a function.
Diffstat (limited to 'ChangeLog-2009-2015')
0 files changed, 0 insertions, 0 deletions