diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-17 08:59:41 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-01-17 08:59:41 +0000 |
commit | 4cf242c54358603dd983a0f49de265351f34455a (patch) | |
tree | 578f2cef0f60beb5a6dca19df7e3a1ca2eca4ea9 /test/data | |
parent | 715f2617dffdcede45af45e5e849cb83f67745b4 (diff) | |
download | libcss-4cf242c54358603dd983a0f49de265351f34455a.tar.gz libcss-4cf242c54358603dd983a0f49de265351f34455a.tar.bz2 |
Use our own printing routine, rather than relying on snprintf to do the right thing wrt rounding.
Update test data in line with this. That said, it would appear that values <=-(2^21) get truncated to -2097151.999. This probably wants investigating.
svn path=/trunk/libcss/; revision=6111
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/number/number.dat | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/data/number/number.dat b/test/data/number/number.dat index 48ecc20..1004f55 100644 --- a/test/data/number/number.dat +++ b/test/data/number/number.dat @@ -28,12 +28,10 @@ 2097151.000 #reset -# Test INT_MAX + 1. Note that, in converting the result to float, -# we'll end up with INT_MAX + 1 as the output. #data 2097152 #expected -2097152.000 +2097151.999 #reset #data @@ -66,16 +64,17 @@ -2097151.000 #reset +# TODO: should these next two not result in INT_MIN? #data -2097152 #expected --2097152.000 +-2097151.999 #reset #data -2097153 #expected --2097152.000 +-2097151.999 #reset #data |