Skip to content

Commit d8eb08f

Browse files
committed
Fix compilation errors
1 parent 94859a3 commit d8eb08f

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

doc/Language/terms.pod6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Here you can find an overview of different kinds of terms.
1313
1414
=head2 Int
1515
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
2121
2222
L<Int> literals consist of digits and can contain underscores
2323
between any two digits.

doc/Language/testing.pod6

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ module provides a testing framework. Perl 6's official spectest suite uses C<Te
1414
1515
The testing functions emit output conforming to the L<Test Anything Protocol|http://testanything.org>. In general, they are used in sink context:
1616
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 '::'"
1819
1920
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:
2021
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
2326
2427
=head1 Reference
2528

0 commit comments

Comments
 (0)