diff options
author | Miran <narimiran@disroot.org> | 2019-05-04 23:02:50 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-05-04 23:02:50 +0200 |
commit | ce152ed91f85c45909e0f76854fcc28d3c6a550d (patch) | |
tree | 4b2050f35f9e46ae502345a3f0036f77ca22e7b1 /tests/destructor | |
parent | d2e1936cf20605579e9e80a1e56644e42e508120 (diff) | |
download | Nim-ce152ed91f85c45909e0f76854fcc28d3c6a550d.tar.gz |
iterators: several small fixes (#11162)
* fix pairs, mpairs, mitems for cstring for JS backend * add mutation check for pairs and mpairs for strings and seqs * change the assertion message - modifying (changing elements) is not a problem, changing the length is
Diffstat (limited to 'tests/destructor')
-rw-r--r-- | tests/destructor/twidgets.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/destructor/twidgets.nim b/tests/destructor/twidgets.nim index 5d533fe44..64fe8ab96 100644 --- a/tests/destructor/twidgets.nim +++ b/tests/destructor/twidgets.nim @@ -38,7 +38,7 @@ iterator unitems*[T](a: seq[owned T]): T {.inline.} = while i < L: yield a[i] inc(i) - assert(len(a) == L, "seq modified while iterating over it") + assert(len(a) == L, "the length of the seq changed while iterating over it") proc newWindow(): owned Window = proc windraw(self: Widget) = |