mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
Improved collection-to-string behavior (#6825)
This commit is contained in:
committed by
Andreas Rumpf
parent
bc1123536e
commit
6df6ec27ec
@@ -17,7 +17,7 @@ block SinglyLinkedListTest1:
|
||||
block SinglyLinkedListTest2:
|
||||
var L: TSinglyLinkedList[string]
|
||||
for d in items(data): L.prepend($d)
|
||||
assert($L == "[6, 5, 4, 3, 2, 1]")
|
||||
assert($L == """["6", "5", "4", "3", "2", "1"]""")
|
||||
|
||||
assert("4" in L)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
discard """
|
||||
output: "@[(, +, 1, 2, )]"
|
||||
output: '''@["(", "+", " 1", " 2", ")"]'''
|
||||
"""
|
||||
|
||||
import re
|
||||
|
||||
Reference in New Issue
Block a user