Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adds no-break space closes #2847
  • Loading branch information
JJ committed Jun 10, 2019
1 parent b24a050 commit ffdd098
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/Language/testing.pod6
Expand Up @@ -12,12 +12,15 @@ code works as expected.
In Perl 6, the L<Test|/type/Test> module provides a testing framework, used also
by Perl 6's official spectest suite.
The testing functions emit output conforming to the L<Test Anything Protocol|https://testanything.org>. In general, they are used in sink context:
The testing functions emit output conforming to the
L<Test Anything Protocol|https://testanything.org>. In general, they are used
in sink context:
=for code :preamble<use Test; my ($meta,$relaxed-name); sub check-name($meta,:$relaxed-name){}>
ok check-name($meta, :$relaxed-name), "name has a hyphen rather than '::'"
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:
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:
=begin code :preamble<use Test; my ($meta,$relaxed-name); sub check-name($meta,:$relaxed-name){}>
ok check-name($meta, :$relaxed-name), "name has a hyphen rather than '::'" \
Expand Down Expand Up @@ -83,7 +86,7 @@ You can run C<prove6> in a distribution directory this way:
$ prove6 --lib t/
The C<t/> argument specified directory that contains tests and the
C<--lib> option is passed to include C<lib> directory into Perl 6
C<--lib> option is passed to include C<lib> directory into Perl 6
distribution path, it is an equivalent of C<-Ilib> argument of
C<perl6> command.
Expand Down

0 comments on commit ffdd098

Please sign in to comment.