Skip to content

Commit 55adb5f

Browse files
committed
fix tests.
1 parent 6bfda4e commit 55adb5f

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

tests/generics/tforwardgeneric.nim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
discard """
2-
output: "1.1 11\n42\n0"
2+
output: "1.125 11\n42\n0"
33
ccodecheck: "!@'ClEnv'"
44
"""
55

66
proc p[T](a, b: T): T
77
8-
echo p(0.9, 0.1), " ", p(9, 1)
8+
echo p(0.875, 0.125), " ", p(9, 1)
99
1010
proc p[T](a, b: T): T =
1111
let c = b
@@ -25,4 +25,3 @@ proc print[T](t: T) =
2525
echo t
2626
2727
echo bar()
28-

tests/generics/tgenerics_issues.nim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ discard """
66
perm: 22 det: 22
77
TMatrix[3, 3, system.int]
88
3
9-
@[0.9, 0.1]
9+
@[0.875, 0.125]
1010
U[3]
1111
U[(f: 3)]
1212
U[[3]]
@@ -20,9 +20,9 @@ concrete 88
2020
2
2121
3
2222
!!Hi!!
23-
G:0,1:0.1
24-
G:0,1:0.1
25-
H:1:0.1
23+
G:0,1:0.125
24+
G:0,1:0.125
25+
H:1:0.125
2626
'''
2727
joinable: false
2828
"""
@@ -370,7 +370,7 @@ block t2304:
370370
type TV2[T:SomeNumber] = array[0..1, T]
371371
proc newV2T[T](x, y: T=0): TV2[T] = [x, y]
372372
373-
let x = newV2T[float](0.9, 0.1)
373+
let x = newV2T[float](0.875, 0.125)
374374
echo(@x)
375375
376376
@@ -711,7 +711,7 @@ block t4863:
711711
proc q[j: static[int]](x:H[j]) = echo "H:", j, ":", x.v
712712

713713
var
714-
g0 = G[0,1](v: 0.1)
714+
g0 = G[0,1](v: 0.125)
715715
h0:H[1] = g0
716716
p(g0)
717717
p(h0)

0 commit comments

Comments
 (0)