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 constover = require("./constover");
p = constover.test("test");
if (p != "test") {
throw "test failed!";
@ -7,7 +9,7 @@ p = constover.test_pconst("test");
if (p != "test_pconst") {
throw "test_pconst failed!";
}
f = new constover.Foo();
p = f.test("test");