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

Function test_atn

std/src/numerics.rs:1222–1231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1220
1221 #[test]
1222 fn test_atn() {
1223 check_expr_ok(123f64.atan(), "ATN(123)");
1224 check_expr_ok(45.5f64.atan(), "ATN(45.5)");
1225
1226 check_expr_ok_with_vars(123f64.atan(), "ATN(a)", [("a", 123i32.into())]);
1227
1228 check_expr_compilation_error("1:10: ATN expected n#", "ATN()");
1229 check_expr_compilation_error("1:14: BOOLEAN is not a number", "ATN(FALSE)");
1230 check_expr_compilation_error("1:10: ATN expected n#", "ATN(3, 4)");
1231 }
1232
1233 #[test]
1234 fn test_cint() {

Callers

nothing calls this directly

Calls 3

check_expr_okFunction · 0.85
check_expr_ok_with_varsFunction · 0.85

Tested by

no test coverage detected