Files
ice-old/util_test.go
T
Sean DuBois 8b4aeeaa8d Docs: Add readme and CI
Added the readme and CI using the common style.
2019-03-25 16:04:12 -07:00

18 lines
302 B
Go

package ice
import (
"regexp"
"testing"
)
func TestRandSeq(t *testing.T) {
if len(randSeq(10)) != 10 {
t.Errorf("randSeq return invalid length")
}
var isLetter = regexp.MustCompile(`^[a-zA-Z]+$`).MatchString
if !isLetter(randSeq(10)) {
t.Errorf("randSeq should be AlphaNumeric only")
}
}