File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -642,18 +642,16 @@ throws-like { EVAL q[ fac("foo") ] }, X::TypeCheck::Argument;
642
642
643
643
Defined as:
644
644
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)
648
646
649
647
Same interface as C < throws-like > , except checks that the code returns a
650
648
L < Failure|/type/Failure > instead of throwing. If the code does throw or if the
651
649
returned L < Failure|/type/Failure > has already been L < handled|/routine/handled > ,
652
650
that will be considered as a failed test.
653
651
654
652
= 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'/),
657
655
'converting non-numeric string to number fails';
658
656
659
657
= head2 sub subtest
You can’t perform that action at this time.
0 commit comments