| 1158 | fn qemu_02_control_flow() { |
| 1159 | let (_, outcome, _) = run_hll_file("programs/test/qemu/02_control_flow.hll"); |
| 1160 | assert!( |
| 1161 | matches!(outcome, RunOutcome::Halted(100)), |
| 1162 | "expected Halted(100), got {outcome:?}" |
| 1163 | ); |
| 1164 | } |
| 1165 | |
| 1166 | #[test] |
| 1167 | fn qemu_03_structs_and_destructuring() { |
| 1168 | let (_, outcome, _) = run_hll_file("programs/test/qemu/03_structs_and_destructuring.hll"); |
| 1169 | assert!( |
| 1170 | matches!(outcome, RunOutcome::Halted(0)), |
| 1171 | "expected Halted(0), got {outcome:?}" |
| 1172 | ); |
| 1173 | } |
| 1174 | |
| 1175 | #[test] |
| 1176 | fn qemu_04_pointers_and_memory() { |
| 1177 | let (_, outcome, _) = run_hll_file("programs/test/qemu/04_pointers_and_memory.hll"); |
| 1178 | assert!( |
| 1179 | matches!(outcome, RunOutcome::Halted(0)), |
| 1180 | "expected Halted(0), got {outcome:?}" |
| 1181 | ); |
| 1182 | } |