File: types.t

package info (click to toggle)
libtext-vcard-perl 3.06-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 352 kB
  • ctags: 110
  • sloc: perl: 1,535; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
use Test::Most;
use Text::vCard::Addressbook;

my $address_book = Text::vCard::Addressbook->load( ['t/complete.vcf'] );
my $vcard        = $address_book->vcards->[0];
my $phone_node   = $vcard->get( { 'node_type' => 'phones' } )->[1];
my $types        = $phone_node->types;
is_deeply $types, [ 'cell', 'text' ], 'types()';

done_testing;