6 use Test::More tests => 7;
11 use_ok( 'HTML5TV::hCalendar' );
14 my $path = shift @ARGV || 'media/hCalendar.html';
16 ok( my $hcal = HTML5TV::hCalendar->new( $path ), "new $path" );
18 foreach my $class ( qw/organiser summary url dtstart description/ ) {
19 ok( defined( my $text = $hcal->$class ), $class );