diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-07-18 15:16:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-18 15:16:26 +0200 |
commit | 99c4b69097638aca8377ea3746e52cc19c24ced8 (patch) | |
tree | acc4a336f7a94305f3e92d462de5732d10746e9d /tests/stdlib | |
parent | adba5eb45e0ae0d370aea4d653a4f00a4c075695 (diff) | |
download | Nim-99c4b69097638aca8377ea3746e52cc19c24ced8.tar.gz |
fixed system.delete (#18507)
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tsystem.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/stdlib/tsystem.nim b/tests/stdlib/tsystem.nim index b48034043..00be16275 100644 --- a/tests/stdlib/tsystem.nim +++ b/tests/stdlib/tsystem.nim @@ -53,8 +53,8 @@ template main = var s = @["foo", "bar"] s.delete(1) doAssert s == @["foo"] - - block: + + when false: var s: seq[string] doAssertRaises(IndexDefect): s.delete(0) @@ -66,8 +66,8 @@ template main = var s = @["foo"] s.delete(0) doAssert s == @[] - - block: # bug #16544: deleting out of bounds index should raise + + when false: # bug #16544: deleting out of bounds index should raise var s = @["foo"] doAssertRaises(IndexDefect): s.delete(1) |