Test
NAME
Test - Rakudo Testing Library
SYNOPSIS
use Test;
DESCRIPTION
FUNCTIONS
throws-like($code, Mu $expected_type, *%matchers)
If $code
is Callable
, calls it, otherwise EVAL
s it,
and expects it thrown an exception.
If an exception is thrown, it is compared to $expected_type
.
Then for each key in %matchers
, a method of that name is called
on the resulting exception, and its return value smart-matched against
the value.
Each step is counted as a separate test; if one of the first two fails, the rest of the tests are skipped.