Skip to content

Commit 7b9506c

Browse files
committed
Eliminates wrong preamble (for a method), closes #2799
1 parent 8c2c982 commit 7b9506c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/Type/Test.pod6

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -642,18 +642,16 @@ throws-like { EVAL q[ fac("foo") ] }, X::TypeCheck::Argument;
642642
643643
Defined as:
644644
645-
=for code :preamble<use Test;>
646-
647-
sub fails-like ( \test where Callable:D|Str:D, $ex-type, $reason?, *%matcher)
645+
sub fails-like ( \test where Callable:D|Str:D, $ex-type, $reason?, *%matcher)
648646
649647
Same interface as C<throws-like>, except checks that the code returns a
650648
L<Failure|/type/Failure> instead of throwing. If the code does throw or if the
651649
returned L<Failure|/type/Failure> has already been L<handled|/routine/handled>,
652650
that will be considered as a failed test.
653651
654652
=for code :preamble<use Test;>
655-
fails-like { +"a" }, X::Str::Numeric,
656-
:message(/'Cannot convert string to number'/),
653+
fails-like { +"a" }, X::Str::Numeric,
654+
:message(/'Cannot convert string to number'/),
657655
'converting non-numeric string to number fails';
658656
659657
=head2 sub subtest

0 commit comments

Comments
 (0)