diff options
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/abi/numbers_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/accounts/abi/numbers_test.go b/accounts/abi/numbers_test.go index 6590e41a6..d66a43258 100644 --- a/accounts/abi/numbers_test.go +++ b/accounts/abi/numbers_test.go @@ -30,17 +30,17 @@ func TestNumberTypes(t *testing.T) { unsigned := U256(big.NewInt(1)) if !bytes.Equal(unsigned, ubytes) { - t.Error("expected %x got %x", ubytes, unsigned) + t.Errorf("expected %x got %x", ubytes, unsigned) } signed := S256(big.NewInt(1)) if !bytes.Equal(signed, ubytes) { - t.Error("expected %x got %x", ubytes, unsigned) + t.Errorf("expected %x got %x", ubytes, unsigned) } signed = S256(big.NewInt(-1)) if !bytes.Equal(signed, sbytesmin) { - t.Error("expected %x got %x", ubytes, unsigned) + t.Errorf("expected %x got %x", ubytes, unsigned) } } @@ -75,10 +75,10 @@ func TestPackNumber(t *testing.T) { func TestSigned(t *testing.T) { if isSigned(reflect.ValueOf(uint(10))) { - t.Error() + t.Error("signed") } if !isSigned(reflect.ValueOf(int(10))) { - t.Error() + t.Error("not signed") } } |