1package message
2
3import (
4 "testing"
5)
6
7func 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