File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ module provides a testing framework. Perl 6's official spectest suite uses C<Te
14
14
15
15
The testing functions emit output conforming to the L < Test Anything Protocol|http://testanything.org > . In general, they are used in sink context:
16
16
17
- = for code :preamble<my $meta="Avoid compilation errors"; >
17
+ = for code :preamble<my ( $meta,$relaxed-name); sub check-name($meta,:$relaxed-name){} >
18
18
ok check-name($meta, :$relaxed-name), "name has a hyphen rather than '::'"
19
19
20
20
but all functions also return as a Boolean if the test has been successful or not, which can be used to print a message if the test fails:
21
21
22
- = begin code :preamble<my $meta="Avoid compilation errors"; >
22
+ = begin code :preamble<my ( $meta,$relaxed-name); sub check-name($meta,:$relaxed-name){} >
23
23
ok check-name($meta, :$relaxed-name), "name has a hyphen rather than '::'" \
24
24
or diag "\nTo use hyphen in name, pass :relaxed-name to meta-ok\n";
25
25
= end code
You can’t perform that action at this time.
0 commit comments