mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 19:32:17 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			281 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			281 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package utils
 | 
						|
 | 
						|
import (
 | 
						|
	"Open_IM/pkg/utils"
 | 
						|
	"testing"
 | 
						|
 | 
						|
	"github.com/stretchr/testify/assert"
 | 
						|
)
 | 
						|
 | 
						|
func Test_Md5(t *testing.T) {
 | 
						|
	result := utils.Md5("go")
 | 
						|
	assert.Equal(t, result, "34d1f91fb2e514b8576fab1a75a89a6b")
 | 
						|
 | 
						|
	result2 := utils.Md5("go")
 | 
						|
	assert.Equal(t, result, result2)
 | 
						|
}
 |