This commit is contained in:
Dominik Picheta 2017-11-26 19:31:59 +00:00
commit b74a5148a9
4 changed files with 17 additions and 7 deletions

View file

@ -50,6 +50,10 @@ proc test_string_slice() =
s[2..0] = numbers
doAssert s == "ab1234567890cdefghijklmnopqrstuvwxyz"
# bug #6223
doAssertRaises(IndexError):
discard s[0..999]
echo("OK")
test_string_slice()