summary refs log tree commit diff stats
path: root/tests/stdlib/tlists.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tlists.nim')
-rw-r--r--tests/stdlib/tlists.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/stdlib/tlists.nim b/tests/stdlib/tlists.nim
index b7c7f9f5a..a288af781 100644
--- a/tests/stdlib/tlists.nim
+++ b/tests/stdlib/tlists.nim
@@ -10,7 +10,8 @@ const
 block SinglyLinkedListTest1:
   var L: SinglyLinkedList[int]
   for d in items(data): L.prepend(d)
-  assert($L == "[6, 5, 4, 3, 2, 1]")
+  for d in items(data): L.append(d)
+  assert($L == "[6, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 6]")
 
   assert(4 in L)