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
196 B
16 lines
196 B
package helpers
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestMd5(t *testing.T) {
|
|
var a = Md5("hello")
|
|
var b = Md5("world")
|
|
if a == b {
|
|
t.Error("测试失败")
|
|
}
|
|
fmt.Println(a)
|
|
fmt.Println(b)
|
|
}
|