mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 03:22:18 +00:00
16 lines
250 B
Go
16 lines
250 B
Go
|
package base_encoding
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func Test64(t *testing.T) {
|
||
|
number := uint64(0x1234567890abcd)
|
||
|
|
||
|
out := Encode64(number)
|
||
|
require.Equal(t, len(out), 7)
|
||
|
require.Equal(t, Decode64(out), number)
|
||
|
}
|