Skip to content

Commit 59bc6a6

Browse files
committed
Revert "Fix S26 WHY tests for GLR"
This reverts commit 4fabc1e.
1 parent 40d5917 commit 59bc6a6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

S26-documentation/why-both.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Sheep {
6565

6666
test-both(Sheep, 'a sheep', 'or is it?');
6767

68-
my $wool-attr = Sheep.^attributes.grep({ .name eq '$!wool' }).list[0];
68+
my $wool-attr = Sheep.^attributes.grep({ .name eq '$!wool' })[0];
6969

7070
test-both($wool-attr, 'usually white', 'not very dirty');
7171

S26-documentation/why-leading.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Sheep {
7575
method roar { 'roar!' }
7676
}
7777

78-
my $wool-attr = Sheep.^attributes.grep({ .name eq '$!wool' }).list[0];
78+
my $wool-attr = Sheep.^attributes.grep({ .name eq '$!wool' })[0];
7979
my $roar-method = Sheep.^lookup('roar');
8080

8181
test-leading(Sheep,'a sheep');

S26-documentation/why-trailing.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Sheep {
6969
}
7070

7171
{
72-
my $wool-attr = Sheep.^attributes.grep({ .name eq '$!wool' }).list[0];
72+
my $wool-attr = Sheep.^attributes.grep({ .name eq '$!wool' })[0];
7373
my $roar-method = Sheep.^lookup('roar');
7474
test-trailing(Sheep, 'a sheep');
7575
test-trailing($wool-attr, 'usually white');

0 commit comments

Comments
 (0)