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
This commit is contained in:
parent
f105590c0a
commit
1010fbaa8f
5 changed files with 24 additions and 19 deletions
10
Examples/test-suite/javascript/string_simple_runme.js
Normal file
10
Examples/test-suite/javascript/string_simple_runme.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue