summary refs log tree commit diff stats
path: root/tests/ccgbugs/twrong_tupleconv.nim
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-05-04 23:02:50 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-05-04 23:02:50 +0200
commitce152ed91f85c45909e0f76854fcc28d3c6a550d (patch)
tree4b2050f35f9e46ae502345a3f0036f77ca22e7b1 /tests/ccgbugs/twrong_tupleconv.nim
parentd2e1936cf20605579e9e80a1e56644e42e508120 (diff)
downloadNim-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/ccgbugs/twrong_tupleconv.nim')
-rw-r--r--tests/ccgbugs/twrong_tupleconv.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ccgbugs/twrong_tupleconv.nim b/tests/ccgbugs/twrong_tupleconv.nim
index 68413e96e..7b1e58083 100644
--- a/tests/ccgbugs/twrong_tupleconv.nim
+++ b/tests/ccgbugs/twrong_tupleconv.nim
@@ -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, "seq modified while iterating over it")
+    assert(len(a) == L, "the length of the seq changed while iterating over it")
 
 # Works fine
 var xs = @[1,2,3]