Updated emails in unit tests to include '+'

Этот коммит содержится в:
Reed Garmsen
2015-12-13 14:21:23 -08:00
родитель ce03fbc6d8
Коммит e7eb86c8c3
14 изменённых файлов: 128 добавлений и 128 удалений

Просмотреть файл

@@ -56,21 +56,21 @@ func TestMapJson(t *testing.T) {
}
func TestValidEmail(t *testing.T) {
if !IsValidEmail("corey@hulen.com") {
if !IsValidEmail("corey+test@hulen.com") {
t.Error("email should be valid")
}
if IsValidEmail("@corey@hulen.com") {
if IsValidEmail("@corey+test@hulen.com") {
t.Error("should be invalid")
}
}
func TestValidLower(t *testing.T) {
if !IsLower("corey@hulen.com") {
if !IsLower("corey+test@hulen.com") {
t.Error("should be valid")
}
if IsLower("Corey@hulen.com") {
if IsLower("corey+test@hulen.com") {
t.Error("should be invalid")
}
}