|
is(
render_mt( 'hello <?= $_[0] ?>' , 'fo<o' )->as_string,
'hello fo<o' ,
);
do {
local $@;
my $s = 0;
eval {
render_mt( 'hello <?= $nonexistent ?>' );
$s = 1;
};
is $s , 0, 'die on access to nonexistent value' ;
like $@, qr/ at line 1 .*\Q$0\E at line \d+/ ;
};
|