Home | History | Annotate | Download | only in big

Lines Matching refs:prec

35 			for _, prec := range []uint{0, 1, 2, 10, 53, 64, 100, 1000} {
41 _, _, err := tx.SetPrec(prec).SetMode(mode).Parse(x, 0)
43 t.Errorf("parsing of %s (%dbits, %v) failed (invalid test case): %v", x, prec, mode, err)
47 // If tx was set to prec == 0, tx.Parse(x, 0) assumes precision 64. Correct it.
48 if prec == 0 {
53 t.Errorf("encoding of %v (%dbits, %v) failed: %v", &tx, prec, mode, err)
59 t.Errorf("decoding of %v (%dbits, %v) failed: %v", &tx, prec, mode, err)
68 if rx.Prec() != prec {
69 t.Errorf("transmission of %s's prec failed: got %d want %d", x, rx.Prec(), prec)
111 for _, prec := range []uint{0, 1, 2, 10, 53, 64, 100, 1000} {
114 _, _, err := tx.SetPrec(prec).Parse(x, 0)
116 t.Errorf("parsing of %s (prec = %d) failed (invalid test case): %v", x, prec, err)
121 t.Errorf("marshaling of %v (prec = %d) failed: %v", &tx, prec, err)
125 rx.SetPrec(prec)
127 t.Errorf("unmarshaling of %v (prec = %d) failed: %v", &tx, prec, err)
131 t.Errorf("JSON encoding of %v (prec = %d) failed: got %v want %v", &tx, prec, &rx, &tx)