erigon-pulse/turbo/trie/hasher_test.go
Evgeny Danilenko 74847d77e6
Rename to Erigon (#2018)
* turbo-geth to erigon

* tg, turbo to erigon
2021-05-26 11:35:39 +01:00

22 lines
398 B
Go

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