Unicode string builtin tests added.

JerryScript-DCO-1.0-Signed-off-by: Laszlo Vidacs lvidacs.u-szeged@partner.samsung.com
This commit is contained in:
Laszlo Vidacs
2015-12-09 16:45:33 +01:00
committed by Evgeny Gavrin
parent f8f7eb4251
commit 54ade8b29e
3 changed files with 24 additions and 0 deletions
+9
View File
@@ -45,6 +45,15 @@ assert("hello world!".charAt(11) === "!");
assert("hello world!".charAt(12) === "");
// check unicode
assert("hello\u000B\u000C\u0020\u00A0world!".charAt(8) === "\u00A0");
assert("hello\uD834\uDF06world!".charAt(6) === "\uDF06");
assert("hell\u006F\u006F w\u006F\u006Frld!".charAt(8) === "\u006F");
assert("\u00A9\u006F".charAt(2) === "");
// check negative
assert("hello world!".charAt(-1) === "");