]> git.vpit.fr Git - perl/modules/IPC-MorseSignals.git/blob - t/61-fork-utf8.t
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/IPC-MorseSignals.git] / t / 61-fork-utf8.t
1 #!perl -T
2
3 use strict;
4 use warnings;
5
6 use utf8;
7
8 use Test::More tests => 5;
9
10 use lib 't/lib';
11 use IPC::MorseSignals::TestSuite qw<try init cleanup>;
12
13 *IPC::MorseSignals::TestSuite::diag = *Test::More::diag;
14
15 sub test {
16  my ($desc, @args) = @_;
17  my ($res, $speed, $len);
18  eval {
19   ($res, $speed, $len) = try(@args);
20  };
21  fail($desc . " (died : $@)") if $@;
22  ok($res, $desc . ' (' . $len . ' bits @ ' . $speed . ' bauds)');
23 }
24
25 my @msgs = qw<€éèë 月語 x tata たTÂ>;
26
27 init 6;
28
29 for (1 .. @msgs) {
30  test 'utf8 ' . $_ => $msgs[$_-1];
31 }
32
33 cleanup;
34