X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=blobdiff_plain;f=t%2F11-args.t;h=a1018905af479f52071db03dff4b5c8e74eb4bdd;hp=695d6c9ad04e895af97886b55a72a35c3546245f;hb=61f64dfa5fa4f435e6cd854d22e4325ef1eb0068;hpb=26192e1043cbd952cc7acaa033cc473ffd074085 diff --git a/t/11-args.t b/t/11-args.t index 695d6c9..a101890 100644 --- a/t/11-args.t +++ b/t/11-args.t @@ -96,7 +96,7 @@ use Test::More tests => 14 + 6; { my $expect = qr/^Lexical::Types mangler should return zero, one or two scalars, but got 3/; - diag 'This will throw two warnings' if $] >= 5.008008 and $] < 5.009; + diag 'This will throw two warnings' if "$]" >= 5.008008 and "$]" < 5.009; local $@; eval q[ use Lexical::Types as => sub { qw }; @@ -117,7 +117,7 @@ use Test::More tests => 14 + 6; { my $expect = qr/^banana at \(eval \d+\) line 2/; - diag 'This will throw two more warnings' if $] >= 5.008008 and $] < 5.009; + diag 'This will throw two more warnings' if "$]" >= 5.008008 and "$]" < 5.009; local $@; eval q[ use Lexical::Types as => sub { die 'banana' };