Files
open-im-server/pkg/utils/md5_test.go
T

16 lines
248 B
Go
Raw Normal View History

2021-10-29 20:51:15 +08:00
package utils
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test_Md5(t *testing.T) {
2023-01-30 15:28:46 +08:00
result := Md5("go")
2021-10-29 20:51:15 +08:00
assert.Equal(t, result, "34d1f91fb2e514b8576fab1a75a89a6b")
2023-01-30 15:28:46 +08:00
result2 := Md5("go")
2021-10-29 20:51:15 +08:00
assert.Equal(t, result, result2)
}