You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
281 B
17 lines
281 B
3 years ago
|
package utils
|
||
|
|
||
|
import (
|
||
3 years ago
|
"Open_IM/pkg/utils"
|
||
3 years ago
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func Test_Md5(t *testing.T) {
|
||
3 years ago
|
result := utils.Md5("go")
|
||
3 years ago
|
assert.Equal(t, result, "34d1f91fb2e514b8576fab1a75a89a6b")
|
||
|
|
||
3 years ago
|
result2 := utils.Md5("go")
|
||
3 years ago
|
assert.Equal(t, result, result2)
|
||
|
}
|