X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F13-data.t;fp=t%2F13-data.t;h=41e0b3acfb41f769aea662e4cc50fd6c8ba737ba;hb=544f8a0bb4359368c34abd3f7c7f9dfc83a3f7f5;hp=a67b79cfa57e9aa6cd9103c0ad0e6df51caf3a48;hpb=b62747ec94e8fc6500fa3140e457a436e8a7b12f;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/13-data.t b/t/13-data.t index a67b79c..41e0b3a 100644 --- a/t/13-data.t +++ b/t/13-data.t @@ -78,9 +78,9 @@ $res = eval { cast $a, $wiz }; is($@, '', 'cast non-data wizard doesn\'t croak'); ok($res, 'cast non-data wizard returns true'); -$data = eval { getdata $a, $wiz }; -is($@, '', 'getdata from non-data wizard doesn\'t croak'); -is($data, undef, 'getdata from non-data wizard invalid returns undef'); +my @data = eval { getdata $a, $wiz }; +is($@, '', 'getdata from non-data wizard doesn\'t croak'); +is_deeply(\@data, [ ], 'getdata from non-data wizard invalid returns undef'); $wiz = wizard data => sub { ++$_[1] }; my ($di, $ei) = (1, 10);