+# check pi_config
+{
+ foreach my $addr (('a@example.com'), ['a@example.com','b@localhost']) {
+ my $feed = string_feed({
+ git_dir => $git_dir,
+ max => 3,
+ listname => 'asdf',
+ pi_config => bless({
+ 'publicinbox.asdf.address' => $addr,
+ }, 'PublicInbox::Config'),
+ });
+ SKIP: {
+ skip 'XML::Feed missing', 3 unless $have_xml_feed;
+ my $p = XML::Feed->parse(\$feed);
+ is($p->id, 'mailto:a@example.com',
+ "ID is set correctly");
+ is($p->format, "Atom", "parsed atom feed");
+ is(scalar $p->entries, 3, "parsed three entries");
+ }
+ }
+}
+