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 """
|
||||
output: '''
|
||||
(Field0: 10, Field1: (Field0: test, Field1: 1.2))
|
||||
(Field0: 10, Field1: (Field0: "test", Field1: 1.2))
|
||||
3x3 Matrix [[0.0, 2.0, 3.0], [2.0, 0.0, 5.0], [2.0, 0.0, 5.0]]
|
||||
|
||||
2x3 Matrix [[0.0, 2.0, 3.0], [2.0, 0.0, 5.0]]
|
||||
|
|
@ -43,7 +43,7 @@ type
|
|||
|
||||
Matrix*[M: static[int]; N: static[int]; T] =
|
||||
Vector[M, Vector[N, T]]
|
||||
|
||||
|
||||
proc arrayTest =
|
||||
# every kind of square matrix works just fine
|
||||
let mat_good: Matrix[3, 3, float] = [[0.0, 2.0, 3.0],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue