Added two more Javascript tests.

- `abstract_inherit`
- `char_strings`
This commit is contained in:
Oliver Buchtala 2013-09-09 22:26:30 +03:00
commit e5ad9cdc05
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,11 @@
var char_strings = require("char_strings");
var assertIsEqual = function(expected, actual) {
if (expected !== actual) {
throw new Error("Expected "+expected+", was "+actual);
}
};
assertIsEqual("hi there", char_strings.CharPingPong("hi there"));
assertIsEqual("hi there", char_strings.CharArrayPingPong("hi there"));
assertIsEqual("hi there", char_strings.CharArrayDimsPingPong("hi there"));