erigon-pulse/cl/persistence/base_encoding/primitives_test.go

15 lines
225 B
Go
Raw Normal View History

2023-10-18 21:10:53 +00:00
package base_encoding
import (
"testing"
"github.com/stretchr/testify/require"
)
func Test64(t *testing.T) {
number := uint64(9992)
2023-10-18 21:10:53 +00:00
out := Encode64ToBytes4(number)
require.Equal(t, Decode64FromBytes4(out), number)
2023-10-18 21:10:53 +00:00
}