Make javascript test-suite work with nodejs.

This commit is contained in:
Oliver Buchtala 2013-09-03 16:57:40 +02:00
commit 8bbd928831
37 changed files with 98 additions and 39 deletions

View file

@ -1,3 +1,5 @@
var cpp_namespace = require("./cpp_namespace");
var n = cpp_namespace.fact(4);
if (n != 24){
throw ("Bad return value error!");
@ -16,7 +18,7 @@ if (cpp_namespace.do_method(t) != "Test::method"){
if (cpp_namespace.do_method2(t) != "Test::method"){
throw ("Bad return value error!");
}
}
cpp_namespace.weird("hello", 4);
delete t;