Perl: added test case

This commit is contained in:
tokuhirom
2010-05-05 16:22:40 +09:00
parent 2b8f853b96
commit 9420436c09

12
perl/t/07_break.t Normal file
View File

@@ -0,0 +1,12 @@
use Test::More;
use Data::MessagePack;
use t::Util;
no warnings 'uninitialized'; # i need this. i need this.
plan tests => 1;
my $d = Data::MessagePack->unpack(Data::MessagePack->pack([{x => undef}]));
$d->[0]->{x} = 1;
ok delete $d->[0]->{x};
$d->[0] = 4;