X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FEval-WithLexicals.git;a=blobdiff_plain;f=t%2Fsimple.t;fp=t%2Fsimple.t;h=22ea7c480a93b442df7411b0300593b6e30cfc8e;hp=e4316f3c1c3e145c678375567942967f83023b12;hb=40d8277ffc4b65605b2c972b269dfcda92c88fca;hpb=6f914695d80ef46fe45ac39758eb956f0f5389a6 diff --git a/t/simple.t b/t/simple.t index e4316f3..22ea7c4 100644 --- a/t/simple.t +++ b/t/simple.t @@ -27,4 +27,10 @@ is_deeply( 'Inner scope plus lexical ok' ); +is_deeply( + [ $eval->eval('{ my $y = 0 }; $x') ], + [ 1 ], + 'Inner scope and other lexical ok' +); + done_testing;