mirror of
https://github.com/golang/go
synced 2024-11-12 03:40:21 -07:00
net/mail: gofmt
Change-Id: Ic704a2614e310bc7aa3bdee89a020c27f4292efa Reviewed-on: https://go-review.googlesource.com/17410 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
cd294636c8
commit
d41d47306a
@ -601,16 +601,16 @@ func TestAddressParsingAndFormatting(t *testing.T) {
|
||||
|
||||
func TestAddressFormattingAndParsing(t *testing.T) {
|
||||
tests := []*Address{
|
||||
&Address{Name: "@lïce", Address: "alice@example.com"},
|
||||
&Address{Name: "Böb O'Connor", Address: "bob@example.com"},
|
||||
&Address{Name: "???", Address: "bob@example.com"},
|
||||
&Address{Name: "Böb ???", Address: "bob@example.com"},
|
||||
&Address{Name: "Böb (Jacöb)", Address: "bob@example.com"},
|
||||
&Address{Name: "à#$%&'(),.:;<>@[]^`{|}~'", Address: "bob@example.com"},
|
||||
{Name: "@lïce", Address: "alice@example.com"},
|
||||
{Name: "Böb O'Connor", Address: "bob@example.com"},
|
||||
{Name: "???", Address: "bob@example.com"},
|
||||
{Name: "Böb ???", Address: "bob@example.com"},
|
||||
{Name: "Böb (Jacöb)", Address: "bob@example.com"},
|
||||
{Name: "à#$%&'(),.:;<>@[]^`{|}~'", Address: "bob@example.com"},
|
||||
// https://golang.org/issue/11292
|
||||
&Address{Name: "\"\\\x1f,\"", Address: "0@0"},
|
||||
{Name: "\"\\\x1f,\"", Address: "0@0"},
|
||||
// https://golang.org/issue/12782
|
||||
&Address{Name: "naé, mée", Address: "test.mail@gmail.com"},
|
||||
{Name: "naé, mée", Address: "test.mail@gmail.com"},
|
||||
}
|
||||
|
||||
for i, test := range tests {
|
||||
|
Loading…
Reference in New Issue
Block a user