erigon-pulse/turbo/trie/hasher_test.go
Igor Mandrigin adf52465e3
move ./trie to ./turbo/trie (#1114)
Useful for minimizing merge conflicts when rebasing new geth
2020-09-14 11:33:39 +01:00

20 lines
387 B
Go

package trie
import (
"testing"
"github.com/ledgerwatch/turbo-geth/common"
)
func TestValue(t *testing.T) {
t.Skip("should be restored. skipped for turbo-geth")
h := newHasher(false)
var hn common.Hash
h.hash(valueNode([]byte("BLAH")), false, hn[:])
expected := "0x0"
if common.ToHex(hn[:]) != expected {
t.Errorf("Expected %s, got %s", expected, common.ToHex(hn[:]))
}
}