eval-lives-ok
ErrorsCollection

eval-lives-ok

Synthesised documentation from type/Test

From type/Test

See Original text in context

multi sub eval-lives-ok(Str $code$reason = '')

Marks a test as passed if the given $string does not throw an exception when evaled as code.

The function accepts an optional description of the test.

eval-lives-ok q[my $daenerys-burns = False;
                die "Oops, Khaleesi now ashes" if $daenerys-burns],
    "Dany is blood of the dragon";