summary refs log tree commit diff stats
path: root/tests/ccgbugs/taddhigh.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/taddhigh.nim')
-rw-r--r--tests/ccgbugs/taddhigh.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ccgbugs/taddhigh.nim b/tests/ccgbugs/taddhigh.nim
index d6ac8f650..6b0658612 100644
--- a/tests/ccgbugs/taddhigh.nim
+++ b/tests/ccgbugs/taddhigh.nim
@@ -1,5 +1,5 @@
 discard """
-  output: '''@[5, 5, 5]'''
+  output: '''@[5, 5, 5, 5, 5]'''
 """
 
 # bug #1832
@@ -13,4 +13,7 @@ s.add x
 # Causes the 0 to appear:
 s.add s[s.high]
 
+s.add s[s.len-1]
+s.add s[s.len-1]
+
 echo s # @[5, 5, 0]