Activate Javascript test-cases rename_simple and rename_scope.

These reveal current deficiencies in the Javascript generator with `%rename`ing.
This commit is contained in:
Oliver Buchtala 2013-09-09 13:55:08 +03:00
commit 108143951d
3 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,17 @@
var rename_scope = require("./rename_scope");
var a = new rename_scope.Natural_UP();
var b = new rename_scope.Natural_BP();
if (a.rtest() !== 1) {
throw new Error("a.rtest(): Expected 1, was " + a.rtest());
}
if (b.rtest() !== 1) {
throw new Error("b.rtest(): Expected 1, was " + b.rtest());
}
var f = rename_scope.equals;
if (f === undefined) {
throw new Error("Equality operator has not been renamed.");
}