()
| 148 | let (uart, exit) = link_stdlib_and_run(&src); |
| 149 | assert_eq!( |
| 150 | uart, "-- compile-time math --\n7205512787ok\n", |
| 151 | "compile-time example output changed" |
| 152 | ); |
| 153 | assert_eq!(exit, Some(0)); |
| 154 | } |
| 155 | |
| 156 | #[test] |
| 157 | fn functions_and_io() { |
| 158 | let src = std::fs::read_to_string("programs/test/qemu/05_functions_and_io.hll").unwrap(); |
| 159 | let (uart, exit) = link_stdlib_and_run(&src); |
| 160 | assert_eq!(uart.trim_end_matches('\n'), "PASS"); |
| 161 | assert_eq!(exit, Some(0)); |
| 162 | } |
nothing calls this directly
no test coverage detected