File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ Here you can find an overview of different kinds of terms.
13
13
14
14
= head2 Int
15
15
16
- = begin code :skip-test
17
- 42
18
- 12_300_00
19
- :16<DEAD_BEEF>
20
- = end code
16
+ = begin code :skip-test
17
+ 42
18
+ 12_300_00
19
+ :16<DEAD_BEEF>
20
+ = end code
21
21
22
22
L < Int > literals consist of digits and can contain underscores
23
23
between any two digits.
Original file line number Diff line number Diff line change @@ -14,12 +14,15 @@ 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
- ok check-name($meta, :$relaxed-name), "name has a hyphen rather than '::'"
17
+ = for code :preamble<my $meta="Avoid compilation errors";>
18
+ ok check-name($meta, :$relaxed-name), "name has a hyphen rather than '::'"
18
19
19
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:
20
21
21
- ok check-name($meta, :$relaxed-name), "name has a hyphen rather than '::'" \
22
- or diag "\nTo use hyphen in name, pass :relaxed-name to meta-ok\n";
22
+ = begin code :preamble<my $meta="Avoid compilation errors";>
23
+ ok check-name($meta, :$relaxed-name), "name has a hyphen rather than '::'" \
24
+ or diag "\nTo use hyphen in name, pass :relaxed-name to meta-ok\n";
25
+ = end code
23
26
24
27
= head1 Reference
25
28
You can’t perform that action at this time.
0 commit comments