X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fno-bareword.t;h=702cbb54113a1b66377e1512243cf6dbb18a2e74;hb=6502b964b2b25768d76134359804104bae31654d;hp=80f9b0ddf37b7fbb7eb6f31c1f628264353bf0b1;hpb=2424de2da29819863a80c3c08f069a523997422e;p=p5sagit%2FDevel-Declare.git diff --git a/t/no-bareword.t b/t/no-bareword.t index 80f9b0d..702cbb5 100644 --- a/t/no-bareword.t +++ b/t/no-bareword.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More; +use Test::More 0.88; our $i; BEGIN { $i = 0 }; @@ -22,12 +22,13 @@ BEGIN { Foo->method; BEGIN { is($i, 0) } -my @foo = (method => 123); -TODO: { - BEGIN { - local $TODO = 'fat commas not quoting barewords'; - is($i, 0); - } -} +my @foo = ( + method + => + 123 +); +BEGIN { is($i, 0) } + +is_deeply(\@foo, ['method', '123']); done_testing;