X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F61-fork-utf8.t;fp=t%2F61-fork-utf8.t;h=8ad2011f7fe603a2b7555c8328fd3a31f9e6abb0;hb=ddcc7c395d570f0ea20a8e9a242fcbfcc0e49522;hp=0000000000000000000000000000000000000000;hpb=13c16aeec1454ae58e932b393e827d6353c13231;p=perl%2Fmodules%2FIPC-MorseSignals.git diff --git a/t/61-fork-utf8.t b/t/61-fork-utf8.t new file mode 100644 index 0000000..8ad2011 --- /dev/null +++ b/t/61-fork-utf8.t @@ -0,0 +1,26 @@ +#!perl -T + +use strict; +use warnings; + +use utf8; + +use Test::More tests => 5; + +use lib 't/lib'; +use IPC::MorseSignals::TestSuite qw/try init cleanup/; + +sub test { + my ($desc, @args) = @_; + eval { ok(try(@args), $desc) }; + fail($desc . " (died : $@)") if $@; +} + +my @msgs = qw/€éèë 月語 x tata たTÂ/; + +init 6; + +test 'plain' => $_ for @msgs; + +cleanup; +