projects
/
p5sagit/Eval-WithLexicals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
use our own pragma for hints hash test
[p5sagit/Eval-WithLexicals.git]
/
t
/
simple.t
diff --git
a/t/simple.t
b/t/simple.t
index
d529ac8
..
e8157ba
100644
(file)
--- a/
t/simple.t
+++ b/
t/simple.t
@@
-39,4
+39,12
@@
is_deeply(
'No capture of invisible $y'
);
+$eval->eval('my $y = sub { $_[0]+1 }');
+
+is_deeply(
+ [ $eval->eval('$y->(2)') ],
+ [ 3 ],
+ 'Sub created ok'
+);
+
done_testing;