feat: test utils (#26)

This commit is contained in:
Yaxian
2021-10-29 20:51:15 +08:00
committed by GitHub
parent d6168cbad9
commit 51cef0bc53
7 changed files with 167 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
package utils
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test_Md5(t *testing.T) {
result := Md5("go")
assert.Equal(t, result, "34d1f91fb2e514b8576fab1a75a89a6b")
result2 := Md5("go")
assert.Equal(t, result, result2)
}