From 61495c08530216116939f6dc3af094f4e4037b5f Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Sun, 11 Feb 2018 16:35:33 -0500 Subject: [PATCH] make go1.10rc2 happy --- bn256/bn256_test.go | 2 +- bn256/gfp2_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()) {