use doAssert in tests (#16486)

This commit is contained in:
flywind 2020-12-28 07:13:21 -06:00 • committed by GitHub
commit 6d442a40a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 1056 additions and 1056 deletions

View file

@ -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]