2
0
forked from drew/smtprelay

gofmt: Fix formatting

This commit is contained in:
Bernhard Froehlich
2021-02-16 15:57:50 +00:00
parent 97943c87e7
commit 7f34fcbc99
3 changed files with 40 additions and 40 deletions

View File

@@ -24,17 +24,17 @@ func TestAddrAllowedSingle(t *testing.T) {
func TestAddrAllowedDifferentCase(t *testing.T) {
allowedAddrs := []string{"joe@abc.com"}
testAddrs := []string{
"joe@ABC.com",
"Joe@abc.com",
"JOE@abc.com",
"JOE@ABC.COM",
}
for _, addr := range testAddrs {
if !addrAllowed(addr, allowedAddrs) {
t.Errorf("Address %v not allowed, but should be", addr)
}
}
testAddrs := []string{
"joe@ABC.com",
"Joe@abc.com",
"JOE@abc.com",
"JOE@ABC.COM",
}
for _, addr := range testAddrs {
if !addrAllowed(addr, allowedAddrs) {
t.Errorf("Address %v not allowed, but should be", addr)
}
}
}
func TestAddrAllowedLocal(t *testing.T) {