OpenMediaCenter/apiGo/api/api/Hash_test.go

12 lines
167 B
Go

package api
import "testing"
func TestHashlength(t *testing.T) {
h := HashPassword("test")
if len(*h) != 64 {
t.Errorf("Invalid hash length: %d", len(*h))
}
}