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

Function test_cos

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

Source from the content-addressed store, hash-verified

1251
1252 #[test]
1253 fn test_cos() {
1254 check_expr_ok(123f64.cos(), "COS(123)");
1255 check_expr_ok(45.5f64.cos(), "COS(45.5)");
1256
1257 check_expr_ok_with_vars(123f64.cos(), "COS(i)", [("i", 123i32.into())]);
1258
1259 check_expr_compilation_error("1:10: COS expected angle#", "COS()");
1260 check_expr_compilation_error("1:14: BOOLEAN is not a number", "COS(FALSE)");
1261 check_expr_compilation_error("1:10: COS expected angle#", "COS(3, 4)");
1262 }
1263
1264 #[test]
1265 fn test_deg_rad_commands() {

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