diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2018-05-15 13:01:51 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2018-05-15 13:01:51 +0800 |
commit | a4905ee7c30921d29f7c8085bbbd774b9554f25f (patch) | |
tree | 6fd38d486e382e97b738cc3d52162393b78ff120 | |
parent | 5d4999f1e145fdfb0f5674b768fd68c0143c9cb9 (diff) | |
download | dexon-mcl-a4905ee7c30921d29f7c8085bbbd774b9554f25f.tar.gz dexon-mcl-a4905ee7c30921d29f7c8085bbbd774b9554f25f.tar.zst dexon-mcl-a4905ee7c30921d29f7c8085bbbd774b9554f25f.zip |
err is not suitable
-rw-r--r-- | ffi/go/mcl/mcl_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ffi/go/mcl/mcl_test.go b/ffi/go/mcl/mcl_test.go index 25aecde..7c7cb8f 100644 --- a/ffi/go/mcl/mcl_test.go +++ b/ffi/go/mcl/mcl_test.go @@ -26,9 +26,8 @@ func testGT(t *testing.T) { func testHash(t *testing.T) { var x Fr - err := x.SetHashOf([]byte("abc")) - if !err { - t.Error(err) + if !x.SetHashOf([]byte("abc")) { + t.Error("SetHashOf") } fmt.Printf("x=%s\n", x.GetString(16)) } |