File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,17 @@ for @files -> $file {
15
15
{ pass " $ file return types are valid" ; next } if $ file ~~ /Signature /;
16
16
my @ lines ;
17
17
my Int $ line-no = 1 ;
18
- for $ file . IO . lines -> $ line {
19
- if so $ line ~~ /(method| sub) .+? '-->' /
20
- && $ line ! ~~ /'--> True' /
21
- && $ line ! ~~ /'--> False' / {
22
- @ lines . push ($ line-no );
23
- }
24
- $ line-no ++ ;
25
- }
26
- if @ lines {
27
- flunk " $ file has bad return type: { @ lines } " ;
28
- } else {
29
- pass " $ file return types are ok" ;
30
- }
18
+ for $ file . IO . lines -> $ line {
19
+ if so $ line ~~ /(method| sub) .+? '-->' /
20
+ && $ line ! ~~ /'--> True' /
21
+ && $ line ! ~~ /'--> False' / {
22
+ @ lines . push ($ line-no );
23
+ }
24
+ $ line-no ++ ;
25
+ }
26
+ if @ lines {
27
+ flunk " $ file has bad return type: { @ lines } " ;
28
+ } else {
29
+ pass " $ file return types are ok" ;
30
+ }
31
31
}
You can’t perform that action at this time.
0 commit comments