Improved collection-to-string behavior (#6825)
This commit is contained in:
parent
bc1123536e
commit
6df6ec27ec
33 changed files with 226 additions and 74 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue