forked from Mirror/wren
More tests for invalid code points.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
// The first byte of a two-octet sequence.
|
||||
IO.print("\xc0".codePointAt(0)) // expect: -1
|
||||
|
||||
// The first byte of a three-octet sequence.
|
||||
IO.print("\xe0".codePointAt(0)) // expect: -1
|
||||
|
||||
// The first two bytes of a three-octet sequence.
|
||||
var s = "\xe0\xae"
|
||||
IO.print(s.codePointAt(0)) // expect: -1
|
||||
IO.print("\xe0\xae".codePointAt(0)) // expect: -1
|
||||
|
||||
Reference in New Issue
Block a user