-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #362 from wneessen/fix-spelling
Fix spelling in some tests
- Loading branch information
Showing
4 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,8 +126,8 @@ var ( | |
{`" "@domain.tld`, true}, // Still valid, since quoted | ||
{`"<\"@\".!#%[email protected]"`, false}, // Quoting with illegal characters is not allowed | ||
{`<\"@\\".!#%[email protected]`, false}, // Still a bunch of random illegal characters | ||
{`hi"@"[email protected]`, false}, // Quotes must be dot-seperated | ||
{`"<\"@\\".!.#%[email protected]`, false}, // Quote is escaped and dot-seperated which would be RFC822 compliant, but not RFC5322 compliant | ||
{`hi"@"[email protected]`, false}, // Quotes must be dot-separated | ||
{`"<\"@\\".!.#%[email protected]`, false}, // Quote is escaped and dot-separated which would be RFC822 compliant, but not RFC5322 compliant | ||
{`hi\ [email protected]`, false}, // Spaces must be quoted | ||
{"hello@tld", true}, // TLD is enough | ||
{`你好@域名.顶级域名`, true}, // We speak RFC6532 | ||
|
@@ -4527,12 +4527,12 @@ func TestMsg_AttachFile(t *testing.T) { | |
t.Errorf("expected message body to be %s, got: %s", "This is a test attachment", got) | ||
} | ||
}) | ||
t.Run("AttachFile with non-existant file", func(t *testing.T) { | ||
t.Run("AttachFile with non-existent file", func(t *testing.T) { | ||
message := NewMsg() | ||
if message == nil { | ||
t.Fatal("message is nil") | ||
} | ||
message.AttachFile("testdata/non-existant-file.txt") | ||
message.AttachFile("testdata/non-existent-file.txt") | ||
attachments := message.GetAttachments() | ||
if len(attachments) != 0 { | ||
t.Fatalf("failed to retrieve attachments list") | ||
|
@@ -4997,12 +4997,12 @@ func TestMsg_EmbedFile(t *testing.T) { | |
t.Errorf("expected message body to be %s, got: %s", "This is a test embed", got) | ||
} | ||
}) | ||
t.Run("EmbedFile with non-existant file", func(t *testing.T) { | ||
t.Run("EmbedFile with non-existent file", func(t *testing.T) { | ||
message := NewMsg() | ||
if message == nil { | ||
t.Fatal("message is nil") | ||
} | ||
message.EmbedFile("testdata/non-existant-file.txt") | ||
message.EmbedFile("testdata/non-existent-file.txt") | ||
embeds := message.GetEmbeds() | ||
if len(embeds) != 0 { | ||
t.Fatalf("failed to retrieve attachments list") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters