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:
committed by
Evgeny Gavrin
parent
f8f7eb4251
commit
54ade8b29e
@@ -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) === "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user