swig/Examples/test-suite/javascript/string_simple_runme.js
William S Fulton 1010fbaa8f Simple C string test
Was added for Javascript, but was not being used in full test-suite.
Rename from javascript_unicode to simple_string and provide for all
languages.
Rewrite to use portable C
2014-04-20 13:58:46 +01:00

10 lines
223 B
JavaScript

var string_simple = require("./string_simple");
// Test unicode string
var str = "olé";
var copy = string_simple.copy_string(str);
if (str !== copy) {
throw "Error: copy is not equal: original="+str+", copy="+copy;
}