From f0511a94bdcdae92763aae4d5424254f769ca05b Mon Sep 17 00:00:00 2001 From: Nick Galbreath Date: Fri, 23 Sep 2016 18:54:30 +0000 Subject: [PATCH] Issue #38 #39 #40 add some exact FP numbers --- test/modp_numtoa_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/modp_numtoa_test.c b/test/modp_numtoa_test.c index 1d36996..9132795 100644 --- a/test/modp_numtoa_test.c +++ b/test/modp_numtoa_test.c @@ -138,6 +138,7 @@ static char* testDoubleToA(void) double frac[] = {0.0, 0.1, 0.2, 0.3, 0.4, 0.49, 0.5, 0.51, 0.6, 0.7, 0.9, 0.01, 0.25, 0.125, 0.03, 0.0625, 0.0078125, 0.001, 0.00001, 0.99, 0.999, 0.9999, 0.99999, 0.999999, + 0.875, 0.9375, 0.96875, 0.9921875, // 0.95, 0.995, 0.9995, 0.99995, 0.999995, 0.9999995, 0.09, 0.099, 0.0999, 0.09999, 0.099999, 0.0999999, 0.09999999 @@ -284,8 +285,9 @@ static char* testDoubleToA2(void) double wholes[] = {0,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,11.0, 67.0,101.0, 10000, 99999}; double frac[] = {0.0, 0.1, 0.2, 0.3, 0.4, 0.49, 0.5, 0.51, 0.6, 0.7, - 0.9, 0.01, 0.25, 0.125, 0.05, 0.005, 0.0005, 0.00005, + 0.9, 0.01, 0.25, 0.125, 0.03, 0.0625, 0.0078125, 0.001, 0.00001, 0.99, 0.999, 0.9999, 0.99999, 0.999999, + 0.875, 0.9375, 0.96875, 0.9921875, 0.09, 0.099, 0.0999, 0.09999, 0.099999, 0.0999999, 0.09999999 };