summaryrefslogtreecommitdiff
path: root/Examples/test-suite/javascript/string_simple_runme.js
blob: 71fbb7bd077858524d6e6fea114ae9fce1229b6b (plain)
1
2
3
4
5
6
7
8
9
10
var string_simple = require("string_simple");

// Test unicode string
var str = "olé";

var copy = string_simple.copy_str(str);

if (str !== copy) {
  throw "Error: copy is not equal: original="+str+", copy="+copy;
}