summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2016-05-18 17:54:28 -0700
committerFather Chrysostomos <sprout@cpan.org>2016-05-18 20:13:57 -0700
commit482e4418cbff3a580fd0c63dd1918d375a086700 (patch)
tree75c534941d5711220cc1a9e4b0d79a0ada571def
parentfef6692e28d019582497b48b58e1773d181d6ac7 (diff)
downloadperl-482e4418cbff3a580fd0c63dd1918d375a086700.tar.gz
lexsub.t: Remove some unnecessary evals
These evals were originally of the form eval {...} when I added the tests, before things were working. When I got them working, I left few evals by mistake, while removing the braces. Luckily, eval 44 produces the same thing as 44.
-rw-r--r--t/op/lexsub.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/op/lexsub.t b/t/op/lexsub.t
index adccf4c5db..de4c074178 100644
--- a/t/op/lexsub.t
+++ b/t/op/lexsub.t
@@ -126,11 +126,11 @@ use feature 'state'; # state
{
state sub foo { 44 }
isnt \&::foo, \&foo, 'state sub is not stored in the package';
- is eval foo, 44, 'calling state sub from same package';
- is eval &foo, 44, 'calling state sub from same package (amper)';
+ is foo, 44, 'calling state sub from same package';
+ is &foo, 44, 'calling state sub from same package (amper)';
package bar;
- is eval foo, 44, 'calling state sub from another package';
- is eval &foo, 44, 'calling state sub from another package (amper)';
+ is foo, 44, 'calling state sub from another package';
+ is &foo, 44, 'calling state sub from another package (amper)';
}
package bar;
is foo, 43, 'state sub falling out of scope';