File: order.t

package info (click to toggle)
libemail-address-perl 1.908-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 380 kB
  • sloc: perl: 468; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;

use Test::More;
use Email::Address;

my @emails = ( q{"foo" <foo@example.com>}, q{bar@example.com}, q{"baz" <baz@example.com>}, q{baz@example.com} );
my @addr = Email::Address->parse( join ', ', @emails );

is( scalar @addr, scalar @emails, "correct number of emails" );
is_deeply( \@addr, \@emails, 'correct order of emails' );

done_testing;