aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAidan Hobson Sayers <aidanhs@cantab.net>2013-08-18 02:34:24 +0100
committerAidan Hobson Sayers <aidanhs@cantab.net>2013-08-20 20:06:57 +0100
commit12a4321cf394f968c0553e770e18c0b621542a31 (patch)
tree1660a0b80b52d0ec608cc7d782fa912ca24f0d3f /tests
parente90b624b158bef01ea56999613d59662684edd2c (diff)
Add test for fix
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index f3ddc4f4..29a04e1e 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -7105,14 +7105,15 @@ def process(filename):
#include <emscripten.h>
int main() {
- char *c = "μ†ℱ ╋ℯ╳╋";
+ char *c = "μ†ℱ ╋ℯ╳╋ 😇";
printf("%d %d %d %d %s\n", c[0]&0xff, c[1]&0xff, c[2]&0xff, c[3]&0xff, c);
- emscripten_run_script("cheez = _malloc(100);"
- "Module.writeStringToMemory(\"μ†ℱ ╋ℯ╳╋\", cheez);"
- "Module.print([Pointer_stringify(cheez), Module.getValue(cheez, 'i8')&0xff, Module.getValue(cheez+1, 'i8')&0xff, Module.getValue(cheez+2, 'i8')&0xff, Module.getValue(cheez+3, 'i8')&0xff, ]);");
+ emscripten_run_script(
+ "cheez = _malloc(100);"
+ "Module.writeStringToMemory(\"μ†ℱ ╋ℯ╳╋ 😇\", cheez);"
+ "Module.print([Pointer_stringify(cheez), Module.getValue(cheez, 'i8')&0xff, Module.getValue(cheez+1, 'i8')&0xff, Module.getValue(cheez+2, 'i8')&0xff, Module.getValue(cheez+3, 'i8')&0xff, ]);");
}
'''
- self.do_run(src, '206 188 226 128 μ†ℱ ╋ℯ╳╋\nμ†ℱ ╋ℯ╳╋,206,188,226,128\n');
+ self.do_run(src, '206 188 226 128 μ†ℱ ╋ℯ╳╋ 😇\nμ†ℱ ╋ℯ╳╋ 😇,206,188,226,128\n');
def test_direct_string_constant_usage(self):
if self.emcc_args is None: return self.skip('requires libcxx')
@@ -10141,4 +10142,3 @@ for compiler, quantum, embetter, typed_arrays in [
locals()[fullname] = make_run(fullname, fullname, compiler, embetter, quantum, typed_arrays)
del T # T is just a shape for the specific subclasses, we don't test it itself
-