diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-07 18:09:05 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-07 18:09:05 -0800 |
commit | 97ffe5025c4cebcfcf84795635d466fd748236be (patch) | |
tree | d1a85d97e5b8e146a4becd3c2472ad689a1aa8ac /tests | |
parent | f4ee4c8c4b5b8d7b22df3db23283e0b95677cc3c (diff) | |
parent | d4c9620fb57f1f18d75149b5108aaf127a6fd9ab (diff) |
Merge pull request #931 from xxuejie/stdlib_strtod
Implement strtod in native C code as part of libc.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index e7066401..b631dfc2 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)) |