6 use Test::More tests => 7;
9 use IPC::MorseSignals::TestSuite qw/try init cleanup/;
11 *IPC::MorseSignals::TestSuite::diag = *Test::More::diag;
14 my ($desc, @args) = @_;
15 my ($res, $speed, $len);
17 ($res, $speed, $len) = try(@args);
19 fail($desc . " (died : $@)") if $@;
20 ok($res, $desc . ' (' . $len . ' bits @ ' . $speed . ' bauds)');
23 my @msgs = qw/hlagh hlaghlaghlagh HLAGH HLAGHLAGHLAGH \x{0dd0}\x{00}
24 h\x{00}la\x{00}gh \x{00}\x{ff}\x{ff}\x{00}\x{00}\x{ff}/;
29 test 'plain ' . $_ => $msgs[$_-1];