1
package message
2
3
import (
4
"testing"
5
)
6
7
func TestParseAddressList(t *testing.T) {
8
l, err := ParseAddressList("=?iso-8859-2?Q?Krist=FDna?= <k@example.com>, mjl@mox.example")
9
tcheck(t, err, "parsing address list")
10
tcompare(t, l, []Address{{"Kristýna", "k", "example.com"}, {"", "mjl", "mox.example"}})
11
}
12