X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F5-output-webpacus.t;h=bc12cc5e8e4bc024e07ed18292870232541d2bb1;hb=5f5d44c525baf7d887f809f4281f208da33ac846;hp=74aa7d226d253c207b5d06df2a29046306dc6219;hpb=ffad59c82cc74a2e31e019769654163c130ec60c;p=webpac2 diff --git a/t/5-output-webpacus.t b/t/5-output-webpacus.t index 74aa7d2..bc12cc5 100755 --- a/t/5-output-webpacus.t +++ b/t/5-output-webpacus.t @@ -3,7 +3,7 @@ use strict; use blib; -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' );