erigon-pulse/turbo/trie/hasher_test.go
2020-12-03 18:59:17 +01:00

22 lines
406 B
Go

package trie
import (
"fmt"
"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"
actual := fmt.Sprintf("0x%x", hn[:])
if actual != expected {
t.Errorf("Expected %s, got %x", expected, actual)
}
}