Skip to content

Commit cc8cbe2

Browse files
lopezatorericlagergren
authored andcommitted
big: fix TestBig_Float float print (#132)
convert float struct to int before printing. closes #131
1 parent 6335edb commit cc8cbe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

big_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestBig_Float(t *testing.T) {
7272
fv := new(big.Float).SetPrec(flt.Prec())
7373
xf := new(decimal.Big).SetFloat(flt).Float(fv)
7474
if xf.String() != flt.String() {
75-
t.Fatalf("#%d: wanted %s, got %f", i, flt, xf)
75+
t.Fatalf("#%d: wanted %s, got %s", i, flt, xf.String())
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)