aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorXuejie "Rafael" Xiao <xxuejie@gmail.com>2013-03-06 23:58:29 -0500
committerXuejie "Rafael" Xiao <xxuejie@gmail.com>2013-03-06 23:59:11 -0500
commitd4c9620fb57f1f18d75149b5108aaf127a6fd9ab (patch)
tree667429eed20e6ee1df2335b3d35a033380382da5 /tests
parent5cb03faced4a10da93f78f674f643b6862855390 (diff)
Move strtod, strtold, strtof, strtod_l, strtold_l, atof from JS side to libc side, this can fix double precision bug in original strtod implementation.1.2.9
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 7e3c73b0..8fe786ba 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5054,6 +5054,9 @@ def process(filename):
printf("%g\n", strtod(str, &endptr));
printf("%d\n", endptr - str);
printf("%g\n", strtod("84e+420", &endptr));
+
+ printf("%.12f\n", strtod("1.2345678900000000e+08", NULL));
+
return 0;
}
'''
@@ -5081,6 +5084,7 @@ def process(filename):
1.234e+57
10
inf
+ 123456789.000000000000
'''
self.do_run(src, re.sub(r'\n\s+', '\n', expected))