File: Catmandu-Importer-HTML.t

package info (click to toggle)
libcatmandu-html-perl 0.02%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 176 kB
  • sloc: perl: 305; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!perl

use strict;
use warnings;
use Test::More;
use Catmandu;

my $pkg;

BEGIN {
    $pkg = 'Catmandu::Importer::HTML';
    use_ok $pkg;
};

require_ok $pkg;

my $importer = $pkg->new(file => 't/muse.html');

isa_ok $importer, $pkg;

my $rec = $importer->first;

ok $rec;

done_testing;