mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
revert test case
This commit is contained in:
parent
63c481259c
commit
5ebfb08ef4
1 changed files with 2 additions and 1 deletions
|
|
@ -44,7 +44,8 @@ func TestKeccak256Hash(t *testing.T) {
|
||||||
func TestKeccak256Hasher(t *testing.T) {
|
func TestKeccak256Hasher(t *testing.T) {
|
||||||
msg := []byte("abc")
|
msg := []byte("abc")
|
||||||
exp, _ := hex.DecodeString("4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45")
|
exp, _ := hex.DecodeString("4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45")
|
||||||
checkhash(t, "Sha3-256-array", func(in []byte) []byte { h := Keccak256Hash(in); return h[:] }, msg, exp)
|
hasher := NewKeccakState()
|
||||||
|
checkhash(t, "Sha3-256-array", func(in []byte) []byte { h := HashData(hasher, in); return h[:] }, msg, exp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestToECDSAErrors(t *testing.T) {
|
func TestToECDSAErrors(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue