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

Function check_expr_ok

std/src/testutils.rs:1171–1174  ·  view source on GitHub ↗

Executes `expr` on a scripting interpreter and ensures that the result is `exp_value`.

(exp_value: V, expr: &str)

Source from the content-addressed store, hash-verified

1169
1170/// Executes `expr` on a scripting interpreter and ensures that the result is `exp_value`.
1171pub fn check_expr_ok<V: Into<ConstantDatum>>(exp_value: V, expr: &str) {
1172 let exp_value = exp_value.into();
1173 Tester::default().run(format!("result = {}", expr)).expect_var("result", exp_value).check();
1174}
1175
1176/// Executes `expr` on a scripting interpreter and ensures that the result is `exp_value`.
1177///

Callers 15

test_errmsg_before_errorFunction · 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

expect_varMethod · 0.80
checkMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected