Fixes #6223.
This commit is contained in:
parent
8fbe37b2d8
commit
b74a5148a9
4 changed files with 17 additions and 7 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue