sub fails-like
1 | module Test |
1.1 | (Test) sub fails-like |
Documentation for sub fails-like
assembled from the following types:
module Test
From Test
(Test) sub fails-like
Defined as:
sub fails-like ( \test where Callable|Str, , ?, *)
Same interface as throws-like
, except checks that the code returns a Failure instead of throwing. If the code does throw or if the returned Failure has already been handled, that will be considered as a failed test.
fails-like , X::Str::Numeric,:message(/'Cannot convert string to number'/),'converting non-numeric string to number fails';