Improved collection-to-string behavior (#6825)

This commit is contained in:
Fabian Keller
2017-12-14 14:02:13 +01:00
committed by Andreas Rumpf
parent bc1123536e
commit 6df6ec27ec
33 changed files with 226 additions and 74 deletions

View File

@@ -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)

View File

@@ -1,5 +1,5 @@
discard """
output: "@[(, +, 1, 2, )]"
output: '''@["(", "+", " 1", " 2", ")"]'''
"""
import re