summary refs log tree commit diff stats
path: root/tests/collections/tseq.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/collections/tseq.nim')
-rw-r--r--tests/collections/tseq.nim9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/collections/tseq.nim b/tests/collections/tseq.nim
index ac68e5636..263a571bf 100644
--- a/tests/collections/tseq.nim
+++ b/tests/collections/tseq.nim
@@ -206,4 +206,11 @@ block ttoseq:
   stdout.write("\n")
 
 block tseqmapitchain:
-  doAssert @[101, 102] == [1, 2].mapIt(func (x: int): int = it + x).mapIt(it(100))
\ No newline at end of file
+  doAssert @[101, 102] == [1, 2].mapIt(func (x: int): int = it + x).mapIt(it(100))
+
+
+for i in 0..100:
+  # fix #14655
+  var test = newSeqOfCap[uint32](1)
+  test.setLen(1)
+  doAssert test[0] == 0, $(test[0], i)