From 0ab505a216a3b9ab9bd2af3827503cbde14c7b55 Mon Sep 17 00:00:00 2001 From: aichy126 <16996097+aichy126@users.noreply.github.com> Date: Wed, 24 May 2023 17:27:34 +0800 Subject: [PATCH] add decode test --- pkg/uid/sid_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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) +}