From 25017feac2c4f3c2b9ac7f1f8e66662d3a59435a Mon Sep 17 00:00:00 2001 From: xmdhs Date: Sat, 16 Sep 2023 01:51:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=BB=E7=BA=BF=20uuid=20=20=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/uuid_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 utils/uuid_test.go diff --git a/utils/uuid_test.go b/utils/uuid_test.go new file mode 100644 index 0000000..8550418 --- /dev/null +++ b/utils/uuid_test.go @@ -0,0 +1,11 @@ +package utils + +import ( + "testing" +) + +func TestUUIDGen(t *testing.T) { + if UUIDGen("xmdhs") != "6560e064bcfc32baa5fa2aa8831f1298" { + t.Fail() + } +}