summary refs log tree commit diff stats
path: root/tests/stdlib/tlists.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-12-11 22:18:40 +0100
committerGitHub <noreply@github.com>2018-12-11 22:18:40 +0100
commit239846a528eefa64e730afbbe770ad6381a7483a (patch)
treef263ac525c40b0d349c282e5557579824f9f8c15 /tests/stdlib/tlists.nim
parentc58f430e2e7d393a65f80f4ee622c385f7641a1b (diff)
parent4e483bb01abf89b164e21c77003ead033fa92e08 (diff)
downloadNim-239846a528eefa64e730afbbe770ad6381a7483a.tar.gz
Merge pull request #9805 from pacien/181126-list-append
add SinglyLinkedList.append procs
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)