aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-28 17:48:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-28 17:48:43 -0700
commit743038d9a8a72a851d09f2428b9fc009dbaf5298 (patch)
treea70bb545542305e9367f98b3e8b489adfc6998da /tests/test_core.py
parent58281d10e847d62ad10ba56d65aea4c2fb8f4aa0 (diff)
parent5017df14dbeadcb486a5b8b95533142ee4296fd1 (diff)
Merge pull request #1740 from waywardmonkeys/boost-libcxx-libc-interaction
Fix an issue with Boost compilation.
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index dd5b1e39..b766ac74 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -2949,6 +2949,23 @@ Exiting setjmp function, level: 0, prev_jmp: -1
'''
self.do_run(src, '3.14159')
+ def test_iswdigit(self):
+ if self.emcc_args is None: return self.skip('no libcxx inclusion without emcc')
+
+ src = '''
+ #include <stdio.h>
+ #include <cctype>
+ #include <cwctype>
+
+ int main() {
+ using namespace std;
+ printf("%d ", isdigit('0'));
+ printf("%d ", iswdigit(L'0'));
+ return 0;
+ }
+ '''
+ self.do_run(src, '1 1')
+
def test_polymorph(self):
if self.emcc_args is None: return self.skip('requires emcc')
src = '''