diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-09-21 09:59:43 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-01-14 02:21:11 +0700 |
commit | c0229303f8fe4176d05286f3b887127c2b028368 (patch) | |
tree | 5aa09ee11658583c4ef1ea16cc92ecb40e9da495 /tests | |
parent | 369b8330ed5e115be82b616414892aaf1e3c7b2c (diff) |
Add strtod(), wcstod(), wcstol() and friends.
This implementation of strtod() replaces the old as it implements
support for parsing hex constants which is needed by various tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_core.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py index 7fe48977..dbc717a6 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -3544,6 +3544,7 @@ ok def test_strtod(self): if self.emcc_args is None: return self.skip('needs emcc for libc') + if not self.is_le32(): return self.skip('le32 needed for accurate math') src = r''' #include <stdio.h> @@ -3573,6 +3574,7 @@ ok printf("%g\n", strtod("123e-50", &endptr)); printf("%g\n", strtod("123e-250", &endptr)); printf("%g\n", strtod("123e-450", &endptr)); + printf("%g\n", strtod("0x6", &endptr)); char str[] = " 12.34e56end"; printf("%g\n", strtod(str, &endptr)); @@ -3605,6 +3607,7 @@ ok 1.23e-48 1.23e-248 0 + 6 1.234e+57 10 inf @@ -3689,6 +3692,7 @@ ok def test_sscanf(self): if self.emcc_args is None: return self.skip('needs emcc for libc') + if not self.is_le32(): return self.skip('le32 needed for accurate math') test_path = path_from_root('tests', 'core', 'test_sscanf') src, output = (test_path + s for s in ('.in', '.out')) |