mirror of https://gitee.com/answerdev/answer.git
add decode test
This commit is contained in:
parent
e8265a0ddf
commit
0ab505a216
|
@ -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)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue