mirror of
https://github.com/tursom/GoCollections.git
synced 2025-03-21 23:40:08 +08:00
14 lines
180 B
Go
14 lines
180 B
Go
package b62
|
|
|
|
import (
|
|
"math"
|
|
"testing"
|
|
)
|
|
|
|
func TestBase62(t *testing.T) {
|
|
encode := Encode(math.MaxUint64)
|
|
if Decode(encode) != math.MaxUint64 {
|
|
t.Fatal(Decode(encode))
|
|
}
|
|
}
|