()
| 78 | |
| 79 | #[test] |
| 80 | fn ir_output_contains_math_op() { |
| 81 | let src = "f: (x: i32) -> i32 { return x * 2 }"; |
| 82 | let ir = hll_to_ir_text(src); |
| 83 | assert!( |
| 84 | ir.contains("mul"), |
| 85 | "IR should contain a multiply operation; got:\n{ir}" |
| 86 | ); |
| 87 | } |
| 88 | |
| 89 | #[test] |
| 90 | fn ir_output_local_var_alloc() { |
nothing calls this directly
no test coverage detected