use doAssert in tests (#16486)
This commit is contained in:
parent
f9a15dbae9
commit
6d442a40a6
78 changed files with 1056 additions and 1056 deletions
|
|
@ -6,7 +6,7 @@ iterator myitems*[T](a: var seq[T]): var T {.inline.} =
|
|||
while i < L:
|
||||
yield a[i]
|
||||
inc(i)
|
||||
assert(len(a) == L, "the length of the seq changed while iterating over it")
|
||||
doAssert(len(a) == L, "the length of the seq changed while iterating over it")
|
||||
|
||||
# Works fine
|
||||
var xs = @[1,2,3]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue