()
| 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() { |
nothing calls this directly
no test coverage detected