erigon-pulse/cl/persistence/base_encoding/primitives_test.go
Giulio rebuffo a2433455f9
Keep few beacon block headers in mdbx (#8809)
Now keep few beacon block headers in mdbx
2023-11-22 01:45:15 +01:00

15 lines
225 B
Go

package base_encoding
import (
"testing"
"github.com/stretchr/testify/require"
)
func Test64(t *testing.T) {
number := uint64(9992)
out := Encode64ToBytes4(number)
require.Equal(t, Decode64FromBytes4(out), number)
}