MCPcopy Index your code
hub / github.com/endbasic/endbasic / check_expr_compilation_error

Function check_expr_compilation_error

std/src/testutils.rs:1223–1225  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1221/// Note that `exp_error` is a literal exact match on the formatted error message returned by the
1222/// machine.
1223pub 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}

Callers 15

test_errmsg_errorsFunction · 0.85
test_absFunction · 0.85
test_acosFunction · 0.85
test_asinFunction · 0.85
test_atnFunction · 0.85
test_cintFunction · 0.85
test_cosFunction · 0.85
test_expFunction · 0.85
test_fixFunction · 0.85
test_intFunction · 0.85
test_logFunction · 0.85
test_maxFunction · 0.85

Calls 3

checkMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected