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.
16 lines
248 B
16 lines
248 B
1 year ago
|
package utils
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func Test_Md5(t *testing.T) {
|
||
1 year ago
|
result := Md5("go")
|
||
1 year ago
|
assert.Equal(t, result, "34d1f91fb2e514b8576fab1a75a89a6b")
|
||
|
|
||
1 year ago
|
result2 := Md5("go")
|
||
1 year ago
|
assert.Equal(t, result, result2)
|
||
|
}
|