Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement fails-like routine in Test.pm6
Same as throws-like, except checks the code returns an armed Failure. Failures are a ubiquitous feature of the language, yet there's no convenient way to test for them: - isa-ok: only tests for type, not the exception contained within, and doesn't mark Failures as handled causing warnings when those Failures are GCed - throws-ok: explodes Failures, making it impossible to differentiate between code that throws and code that fails (we already had a bug in core that wasn't caught by roast for this reason) - fails-like helper routine is already used extensively in roast, showing there is real need for this routine
- Loading branch information