Executes `expr` on a scripting interpreter and ensures that evaluation fails with `exp_error` during compilation. Note that `exp_error` is a literal exact match on the formatted error message returned by the machine.
(exp_error: S, expr: &str)
| 1221 | /// Note that `exp_error` is a literal exact match on the formatted error message returned by the |
| 1222 | /// machine. |
| 1223 | pub fn check_expr_compilation_error<S: Into<String>>(exp_error: S, expr: &str) { |
| 1224 | Tester::default().run(format!("result = {}", expr)).expect_compilation_err(exp_error).check(); |
| 1225 | } |
no test coverage detected