Files
ANSLibs/swig-4.3.0/Examples/test-suite/javascript/input_runme.js

23 lines
314 B
JavaScript
Raw Normal View History

var input = require("input");
f = new input.Foo();
if (f.foo(2) != 4) {
throw new Error;
}
if (f.foo(null) != null) {
throw new Error;
}
if (f.foo() != null) {
throw new Error;
}
if (input.sfoo("Hello") != "Hello world") {
throw new Error;
}
if (input.sfoo() != null) {
throw new Error;
}