root/libswish3/trunk/bindings/perl/t/04subclass.t

Revision 2014, 0.5 kB (checked in by karpet, 9 months ago)

new bindings to match API reorg

Line 
1 package MyApp;
2
3 use Test::More tests => 201;
4
5 use base qw( SWISH::3 );
6
7 ok( my $parser = MyApp->new(
8         config  => 't/t.conf',
9         handler => sub {
10
11             #print 'foo';  # print() causes err under Test, warn() doesn't...
12             #warn 'foo';
13         }
14     ),
15     "new object with config"
16 );
17
18 #diag($parser->dump);
19
20 my $loops = 0;
21 while ( $loops++ < 100 ) {
22     ok( $r = $parser->parse('t/test.html'), "parse HTML filesystem" );
23     ok( $r = $parser->parse('t/test.xml'),  "parse XML filesystem" );
24 }
Note: See TracBrowser for help on using the browser.