Function check_expr_error

Source
pub fn check_expr_error<S: Into<String>>(exp_error: S, expr: &str)
Expand description

Executes expr on a scripting interpreter and ensures that evaluation fails with exp_error.

Note that exp_error is a literal exact match on the formatted error message returned by the machine.