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
commit 6df6ec27ec
33 changed files with 226 additions and 74 deletions

View file

@ -1,6 +1,6 @@
discard """
cmd: "nim c -r -d:fulldebug -d:smokeCycles --gc:refc $file"
output: '''@[a]'''
output: '''@["a"]'''
"""
# bug #6279

View file

@ -3,7 +3,7 @@ discard """
0
0
0
x = [a, b, c, 0, 1, 2, 3, 4, 5, 6] and y = [a, b, c, 0, 1, 2, 3, 4, 5, 6]'''
x = ['a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6'] and y = ['a', 'b', 'c', '0', '1', '2', '3', '4', '5', '6']'''
"""
proc `1/1`() = echo(1 div 1)

View file

@ -1,5 +1,5 @@
discard """
output: '''(FirstName: James, LastName: Franco)'''
output: '''(FirstName: "James", LastName: "Franco")'''
"""
# bug #1547

View file

@ -1,5 +1,5 @@
discard """
output: "@[(username: user, role: admin, description: desc, email_addr: email), (username: user, role: admin, description: desc, email_addr: email)]"
output: '''@[(username: "user", role: "admin", description: "desc", email_addr: "email"), (username: "user", role: "admin", description: "desc", email_addr: "email")]'''
"""
type