X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F62-fork-storable.t;fp=t%2F62-fork-storable.t;h=aeab377249d9698c0b57ed3721de11e0cf72633c;hb=ddcc7c395d570f0ea20a8e9a242fcbfcc0e49522;hp=0000000000000000000000000000000000000000;hpb=13c16aeec1454ae58e932b393e827d6353c13231;p=perl%2Fmodules%2FIPC-MorseSignals.git diff --git a/t/62-fork-storable.t b/t/62-fork-storable.t new file mode 100644 index 0000000..aeab377 --- /dev/null +++ b/t/62-fork-storable.t @@ -0,0 +1,32 @@ +#!perl -T + +use strict; +use warnings; + +use utf8; + +use Test::More tests => 8; + +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 = ( + \(undef, -273, 1.1, 'yes', '¥€$'), + [ 5, 6 ], + { hlagh => 1, HLAGH => 2 }, + { x => -3.573 }, +); +$msgs[7]->{y} = $msgs[7]; + +init 6; + +test 'plain' => $_ for @msgs; + +cleanup; +