Improved collection-to-string behavior (#6825)
This commit is contained in:
parent
bc1123536e
commit
6df6ec27ec
33 changed files with 226 additions and 74 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
cmd: "nim c -r -d:fulldebug -d:smokeCycles --gc:refc $file"
|
||||
output: '''@[a]'''
|
||||
output: '''@["a"]'''
|
||||
"""
|
||||
|
||||
# bug #6279
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
output: '''(FirstName: James, LastName: Franco)'''
|
||||
output: '''(FirstName: "James", LastName: "Franco")'''
|
||||
"""
|
||||
|
||||
# bug #1547
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue