Files
wren/test/language/string/unicode_escapes.wren
Bob Nystrom 64eccdd9be Reorganize tests and benchmark scripts.
Mainly to get rid of one top level directory. But this will
also be useful when there are tests of the embedding API.
2015-03-14 12:45:56 -07:00

18 lines
443 B
Plaintext

// One byte UTF-8 Sequences.
IO.print("\u0041") // expect: A
IO.print("\u007e") // expect: ~
// Two byte sequences.
IO.print("\u00b6") // expect: ¶
IO.print("\u00de") // expect: Þ
// Three byte sequences.
IO.print("\u0950") // expect: ॐ
IO.print("\u0b83") // expect: ஃ
// Capitalized hex.
IO.print("\u00B6") // expect: ¶
IO.print("\u00DE") // expect: Þ
// TODO: Syntax for Unicode escapes > 0xffff?