1
0
forked from Mirror/wren

Use correct buffer size in string subscript operator.

This commit is contained in:
Bob Nystrom
2015-01-09 07:12:25 -08:00
parent bcf052436f
commit 3116bf97de
3 changed files with 5 additions and 2 deletions

View File

@ -9,3 +9,6 @@ IO.print("abcd"[-4]) // expect: a
IO.print("abcd"[-3]) // expect: b
IO.print("abcd"[-2]) // expect: c
IO.print("abcd"[-1]) // expect: d
// Make sure the string's internal buffer size is correct.
IO.print("abcd"[1] == "b") // expect: true