projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
43852dd
)
Don't rely on qw() providing PAREN tokens
Florian Ragwitz [Sun, 19 Sep 2010 17:31:07 +0000 (19:31 +0200)]
t/010_basics/015_buildargs.t
patch
|
blob
|
blame
|
history
diff --git
a/t/010_basics/015_buildargs.t
b/t/010_basics/015_buildargs.t
index
0c4bf50
..
2071b3d
100644
(file)
--- a/
t/010_basics/015_buildargs.t
+++ b/
t/010_basics/015_buildargs.t
@@
-24,7
+24,7
@@
use Test::More;
extends qw(Foo);
}
-foreach my $class qw(Foo Bar) {
+foreach my $class (qw(Foo Bar)) {
is( $class->new->bar, undef, "no args" );
is( $class->new( bar => 42 )->bar, 42, "normal args" );
is( $class->new( 37 )->bar, 37, "single arg" );