Skip to content

Commit

Permalink
Adds utility functions refs #2047
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed May 23, 2018
1 parent 101fc1e commit c6b74f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions lib/Test-Files.pm6
Expand Up @@ -15,4 +15,14 @@ method files() {
return @files;
}

method pods() {
return $.files.grep({$_.ends-with: '.pod6'})
}

method documents() {
return $.files.grep({$_.ends-with: '.pod6' or $_.ends-with: '.md'})
}



# vim: expandtab shiftwidth=4 ft=perl6
3 changes: 1 addition & 2 deletions xt/space-after-comma.t
Expand Up @@ -11,8 +11,7 @@ Insure any text that isn't a code example has a space after each comma.
=end overview

my @files = Test-Files.files\
.grep({$_.ends-with: '.pod6' or $_.ends-with: '.md'})\
my @files = Test-Files.documents\
.grep({not $_ ~~ / 'README.' .. '.md' /});

plan +@files;
Expand Down

0 comments on commit c6b74f6

Please sign in to comment.