add decode test

This commit is contained in:
aichy126 2023-05-24 17:27:34 +08:00
parent e8265a0ddf
commit 0ab505a216
1 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,8 @@ import (
"fmt" "fmt"
"strconv" "strconv"
"testing" "testing"
"github.com/davecgh/go-spew/spew"
) )
func Test_ShortID(t *testing.T) { func Test_ShortID(t *testing.T) {
@ -44,3 +46,9 @@ func Test_Demo(t *testing.T) {
fmt.Println(num, code) fmt.Println(num, code)
} }
} }
// https://answer.dev.segmentfault.com/questions/D112
func Test_DeCode(t *testing.T) {
aaa := DeShortID("D112")
spew.Dump(aaa)
}