X-Git-Url: http://git.rot13.org/?p=webpac2;a=blobdiff_plain;f=t%2F5-output-webpacus.t;h=3ef21e9d2b6ddba8e89e14c12d9a49098523a394;hp=74aa7d226d253c207b5d06df2a29046306dc6219;hb=e60b14a6092e1341c96d6d586b0d6968502b1dae;hpb=ffad59c82cc74a2e31e019769654163c130ec60c diff --git a/t/5-output-webpacus.t b/t/5-output-webpacus.t index 74aa7d2..3ef21e9 100755 --- a/t/5-output-webpacus.t +++ b/t/5-output-webpacus.t @@ -1,9 +1,9 @@ #!/usr/bin/perl -w use strict; -use blib; +use lib 'lib'; -use Test::More tests => 10; +use Test::More tests => 11; BEGIN { use_ok( 'WebPAC::Test' ); @@ -17,6 +17,10 @@ ok(my $out = new WebPAC::Output::Webpacus({ %LOG }), "new"); +ok( $out->consume_outputs, 'consume_outputs' ); + +diag "consume_outputs = ",dump( $out->consume_outputs ) if $debug; + ok( $out->init, 'init' ); my $ds = { @@ -43,5 +47,5 @@ ok( $out->add( 100, { foo => { sorted => [ qw/foo bar baz/ ] } } ), 'add 100' ); diag "path: ",$out->path if $debug; -ok( $out->finish, 'finish' ); +cmp_ok( $out->finish, '==', 4, 'finish' );