aboutsummaryrefslogtreecommitdiff
path: root/tests/test_core.py
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-08-29 16:50:26 +0300
committerAlon Zakai <alonzakai@gmail.com>2013-09-10 14:38:39 -0700
commit65e1c6f5dcb22980abc7845f79a3a738c5e3e852 (patch)
treee12007636c7a57010942d8dc5cc7eb54f5462cca /tests/test_core.py
parentea729bea8c5008dedcdfd79aaf3b2deba3eec52b (diff)
Add functions for marshalling wchar_t (which is fixed 32-bit UTF32LE on Unix) strings to and from JS, and add a test.
Diffstat (limited to 'tests/test_core.py')
-rw-r--r--tests/test_core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 5d4f35e8..7ceeebd2 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -7525,6 +7525,9 @@ def process(filename):
'''
self.do_run(src, '206 188 226 128 μ†ℱ ╋ℯ╳╋ 😇\nμ†ℱ ╋ℯ╳╋ 😇,206,188,226,128\n');
+ def test_utf32(self):
+ self.do_run(open(path_from_root('tests', 'utf32.cpp')).read(), 'OK.')
+
def test_direct_string_constant_usage(self):
if self.emcc_args is None: return self.skip('requires libcxx')