Make javascript test-suite work with nodejs.
This commit is contained in:
parent
cef82c720f
commit
8bbd928831
37 changed files with 98 additions and 39 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue