github.com/sohaha/zlsgo@v1.7.13-0.20240501141223-10dd1a906f76/zstring/md5_test.go (about)

     1  package zstring
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/sohaha/zlsgo"
     7  )
     8  
     9  func TestMd5(t *testing.T) {
    10  	tt := zlsgo.NewTest(t)
    11  	str := "zlsgo"
    12  	tt.Equal("e058a5f5dd76183d00d902c61c250fe3", Md5(str))
    13  	t.Log(Md5File("./md5.go"))
    14  	t.Log(Md5File("./md5.go.bak"))
    15  }
    16  
    17  func TestProjectMd5(t *testing.T) {
    18  	t.Log(ProjectMd5())
    19  }