copy_string() is a macro in the OCaml C API, so rename the function
to copy_str(). Add a runtime test.
The minherit runtime test was fixed by b64d685.
Use the proper syntax for accessing member variables in
unions_runme.ml
10 lines
218 B
JavaScript
10 lines
218 B
JavaScript
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;
|
|
}
|