From f8fa2ceb33917ab29538a6b1aca46dbfc348365b Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 31 Mar 2014 10:12:38 -0700 Subject: add testing for EM_ASM_ARGS --- tests/core/test_inlinejs3.in | 1 + tests/core/test_inlinejs3.out | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/core/test_inlinejs3.in b/tests/core/test_inlinejs3.in index b45abe95..c3b9b769 100644 --- a/tests/core/test_inlinejs3.in +++ b/tests/core/test_inlinejs3.in @@ -13,6 +13,7 @@ int main(int argc, char **argv) { EM_ASM(Module.print('hello dere3'); Module.print('hello dere' + 4);); } EM_ASM_({ Module.print('hello input ' + $0) }, 123); + EM_ASM_ARGS({ Module.print('hello input ' + $0) }, 456); int sum = 0; for (int i = 0; i < argc * 3; i++) { sum += EM_ASM_INT({ diff --git a/tests/core/test_inlinejs3.out b/tests/core/test_inlinejs3.out index 5d185adc..c48cc3c8 100644 --- a/tests/core/test_inlinejs3.out +++ b/tests/core/test_inlinejs3.out @@ -7,6 +7,7 @@ hello dere4 hello dere3 hello dere4 hello input 123 +hello input 456 i: 0,0.00 i: 1,0.08 i: 2,0.17 -- cgit v1.2.3-18-g5258