From 4cf242c54358603dd983a0f49de265351f34455a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 17 Jan 2009 08:59:41 +0000 Subject: 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 --- test/data/number/number.dat | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/data/number') 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 -- cgit v1.2.3