assert_fails

function <T> assert_fails(fn: () -> T): rell.test.failure

Asserts that a function fails to evaluate

Since

0.11.0

Parameters

fn

Function to evaluate


function <T> assert_fails(expected_message: text, fn: () -> T): rell.test.failure

Asserts that a function fails with an expected message

Since

0.11.0

Parameters

expected_message

String that should be contained in the error message

fn

Function to evaluate