diff --git a/bn256/bn256_test.go b/bn256/bn256_test.go index 343a15b..e8dc5bf 100644 --- a/bn256/bn256_test.go +++ b/bn256/bn256_test.go @@ -180,7 +180,7 @@ func TestRandomG2(t *testing.T) { _, g2, _ := RandomG2(rand.Reader) po := new(twistPoint).Mul(g2.p, Order) if !po.IsInfinity() { - t.Errorf("pt * Order is not infinity: %s", g2.p) + t.Errorf("pt * Order is not infinity: %v", g2.p) } } } diff --git a/bn256/gfp2_test.go b/bn256/gfp2_test.go index 271eacf..d0c07c0 100644 --- a/bn256/gfp2_test.go +++ b/bn256/gfp2_test.go @@ -93,7 +93,7 @@ func expectEqual(t *testing.T, a *fp2e, A *bn256ref.GFp2) { t.Fatalf("got nil, want %s", A) } if a != nil && A == nil { - t.Fatalf("want nil, got %s", a) + t.Fatalf("want nil, got %v", a) } if a != nil && A != nil { if !A.Eq(a.Ref()) {