|
#!/usr/bin/env perl
plan 3;
can_ok 'MIDI::Drummer::Tiny' , [ qw(add_fill) ], 'has necessary methods' ;
my $midi ;
open my $midi_fh , '>' , \ $midi
or bail_out "can't open MIDI output to a variable: $OS_ERROR" ;
my $drummer
= MIDI::Drummer::Tiny->new( verbose => 1, file => $midi_fh );
isa_ok $drummer , [ qw(MIDI::Drummer::Tiny) ], 'constructed object' ;
output_like( sub { $drummer ->add_fill },
qr// m, qr/.+/ m, 'add_fill has STDERR but no STDOUT' );
close $midi_fh
or bail_out "couldn't close MIDI output variable: $OS_ERROR" ;
|