Skip to content

Commit 21340eb

Browse files
authored
subtest Pair can use any order
Changed example to reflect that too.
1 parent 515f2bd commit 21340eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Type/Test.rakudoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ subtest {
648648
=end code
649649

650650
You can also place the description as the first positional argument, or use a
651-
L<C<Pair>|/type/Pair> with description as the key and subtest's code as the value. This can be
651+
L<C<Pair>|/type/Pair> with description and code in any order. This can be
652652
useful for subtests with large bodies.
653653

654654
=begin code :preamble<use Test;>
@@ -658,11 +658,11 @@ subtest 'A bunch of tests', {
658658
...
659659
}
660660

661-
subtest 'Another bunch of tests' => {
661+
subtest {
662662
plan 72;
663663
...
664664
...
665-
}
665+
} => 'Another bunch of tests'
666666
=end code
667667

668668
=head2 sub todo

0 commit comments

Comments
 (0)