Skip to content

Commit

Permalink
coverage for Nil
Browse files Browse the repository at this point in the history
  • Loading branch information
nothingmuch committed Sep 2, 2008
1 parent 46fd035 commit b6ad26d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ use ok 'Data::Stream::Bulk::Util' => qw(bulk nil cat filter unique);

isa_ok( cat(nil), "Data::Stream::Bulk::Nil", "cat of nil is nil" );
isa_ok( cat(nil, nil, nil, nil), "Data::Stream::Bulk::Nil", "cat of several nil is nil" );

is_deeply( [ nil->items ], [], "no items" );
is_deeply( [ nil->all ], [], "nothing at all" );

isa_ok( nil->filter(sub {[]}), "Data::Stream::Bulk::Nil" );
}

{
Expand Down

0 comments on commit b6ad26d

Please sign in to comment.