mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
12 lines
306 B
Go
12 lines
306 B
Go
|
package message
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestParseAddressList(t *testing.T) {
|
||
|
l, err := ParseAddressList("=?iso-8859-2?Q?Krist=FDna?= <k@example.com>, mjl@mox.example")
|
||
|
tcheck(t, err, "parsing address list")
|
||
|
tcompare(t, l, []Address{{"Kristýna", "k", "example.com"}, {"", "mjl", "mox.example"}})
|
||
|
}
|