mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
52fd0d0e8b
* save * save
22 lines
390 B
Go
22 lines
390 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("BLAH"), false, hn[:])
|
|
expected := "0x0"
|
|
actual := fmt.Sprintf("0x%x", hn[:])
|
|
if actual != expected {
|
|
t.Errorf("Expected %s, got %x", expected, actual)
|
|
}
|
|
}
|