Skip to content

Commit e1e515f

Browse files
committed
Refactors for #2047
1 parent c57ad4a commit e1e515f

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

xt/double-dots.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Avoid using C<..> - usually a typo for C<.> or C<...>
1111
1212
=end overview
1313

14-
my @files = Test-Files.files.grep({$_.ends-with: '.pod6' or $_.ends-with: '.md'});
14+
my @files = Test-Files.documents;
1515

1616
plan +@files;
1717
my $max-jobs = %*ENV<TEST_THREADS> // 2;

xt/duplicates.t

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ Allow a few well known duplicates, like 'long long'
1717

1818
my $safe-dupes = Set.new(<method long default that>); # Allow these dupes
1919

20-
my @files = Test-Files.files \
21-
.grep({$_.ends-with: '.pod6' or $_.ends-with: '.md'}) \
20+
my @files = Test-Files.documents \
2221
.grep({$_ ne "doc/HomePage.pod6"}) \ # mostly HTML
2322
.grep({$_ ne "doc/404.pod6"});
2423

xt/examples-compilation.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Perl 6 level one.
3232
3333
=end overview
3434

35-
my @files = Test-Files.files.grep({$_.ends-with: '.pod6'});
35+
my @files = Test-Files.pods;
3636

3737
sub walk($arg) {
3838
given $arg {

xt/links-not-links.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use Pod::To::HTML;
1616
use MONKEY-SEE-NO-EVAL;
1717

1818
# Every .pod6 file in the Type and Language directory.
19-
my @files = Test-Files.files.grep({$_.ends-with: '.pod6'}).grep(* ~~ /Type | Language/);
19+
my @files = Test-Files.pods.grep(* ~~ /Type | Language/);
2020

2121
plan +@files;
2222

xt/perl-nbsp.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Insure any text that mentions Perl uses a no-break space after it.
1111
1212
=end overview
1313

14-
my @files = Test-Files.files.grep({$_.ends-with: '.pod6'|'.md'});
14+
my @files = Test-Files.documents;
1515

1616
plan +@files;
1717

xt/return-type.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use lib 'lib';
66
use Test-Files;
77

88
# Every .pod6 file in the Type directory.
9-
my @files = Test-Files.files.grep({$_.ends-with: '.pod6'}).grep(* ~~ /Type | Language/);
9+
my @files = Test-Files.pods.grep(* ~~ /Type | Language/);
1010

1111
plan +@files;
1212

0 commit comments

Comments
 (0)