Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

add decode test

aichy1260ab505a216a3
diff --git a/pkg/uid/sid_test.go b/pkg/uid/sid_test.go
index fe7081f5..96501a98 100644
--- a/pkg/uid/sid_test.go
+++ b/pkg/uid/sid_test.go
@@ -4,6 +4,8 @@ import (
"fmt"
"strconv"
"testing"
+
+ "github.com/davecgh/go-spew/spew"
)
func Test_ShortID(t *testing.T) {
@@ -44,3 +46,9 @@ func Test_Demo(t *testing.T) {
fmt.Println(num, code)
}
}
+
+// https://answer.dev.segmentfault.com/questions/D112
+func Test_DeCode(t *testing.T) {
+ aaa := DeShortID("D112")
+ spew.Dump(aaa)
+}