aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/namespace_typemap_runme.js
diff options
context:
space:
mode:
authorAlistair Delva <adelva@google.com>2024-04-10 14:15:29 -0700
committerAlistair Delva <adelva@google.com>2024-04-11 12:58:28 -0700
commitd0f0f90be16c2ac553b5fa08512045273135147a (patch)
tree5d9ebb7a04807ea8a609ddd18b0162bc87530e4b /Examples/test-suite/javascript/namespace_typemap_runme.js
parent6ffc1dbf29ba98c4d8aa71ebc9b484e973fe1030 (diff)
downloadswig-main.tar.gz
Change-Id: I47cef2be94299220d80265d949a95b58eee2c23b
Diffstat (limited to 'Examples/test-suite/javascript/namespace_typemap_runme.js')
-rw-r--r--Examples/test-suite/javascript/namespace_typemap_runme.js49
1 files changed, 49 insertions, 0 deletions
diff --git a/Examples/test-suite/javascript/namespace_typemap_runme.js b/Examples/test-suite/javascript/namespace_typemap_runme.js
new file mode 100644
index 000000000..b51605ac0
--- /dev/null
+++ b/Examples/test-suite/javascript/namespace_typemap_runme.js
@@ -0,0 +1,49 @@
+var namespace_typemap = require("namespace_typemap");
+
+if (namespace_typemap.stest1("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest2("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest3("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest4("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest5("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest6("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest7("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest8("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest9("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest10("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest11("hello") != "hello") {
+ throw new Error;
+}
+
+if (namespace_typemap.stest12("hello") != "hello") {
+ throw new Error;
+}