added test file
[webpac2] / t / 5-output-webpacus.t
index 74aa7d2..3ef21e9 100755 (executable)
@@ -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' );