diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-11 22:18:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-11 22:18:40 +0100 |
commit | 239846a528eefa64e730afbbe770ad6381a7483a (patch) | |
tree | f263ac525c40b0d349c282e5557579824f9f8c15 /tests/stdlib/tlists.nim | |
parent | c58f430e2e7d393a65f80f4ee622c385f7641a1b (diff) | |
parent | 4e483bb01abf89b164e21c77003ead033fa92e08 (diff) | |
download | Nim-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.nim | 3 |
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) |