6 use Test::More tests => 4;
8 use IPC::MorseSignals::Receiver;
10 my $pants = new IPC::MorseSignals::Receiver \%SIG;
11 ok(defined $pants, 'IMR object is defined');
12 ok(ref $pants eq 'IPC::MorseSignals::Receiver', 'IMR object is valid');
13 ok($pants->isa('Bit::MorseSignals::Receiver'), 'IMR is a BMR');
16 bless $fake, 'IPC::MorseSignal::Hlagh';
17 eval { Bit::MorseSignals::Receiver::reset($fake) };
18 ok($@ && $@ =~ /^First\s+argument/, "BMR methods only apply to BMR objects");