erigon-pulse/turbo/trie/hasher_test.go

22 lines
398 B
Go
Raw Normal View History

package trie
import (
2020-12-03 17:01:32 +00:00
"fmt"
"testing"
"github.com/ledgerwatch/erigon/common"
)
func TestValue(t *testing.T) {
t.Skip("should be restored. skipped for Erigon")
h := newHasher(false)
var hn common.Hash
h.hash(valueNode([]byte("BLAH")), false, hn[:])
expected := "0x0"
2020-12-03 17:01:32 +00:00
actual := fmt.Sprintf("0x%x", hn[:])
if actual != expected {
t.Errorf("Expected %s, got %x", expected, actual)
}
}