()
| 223 | |
| 224 | #[test] |
| 225 | fn writeln_basic() { |
| 226 | let src = r#" |
| 227 | console := import("console") |
| 228 | |
| 229 | main: () -> i32 { |
| 230 | console.writeln("Hi".ptr) |
| 231 | return 0 |
| 232 | } |
| 233 | "#; |
| 234 | let (uart, exit) = link_stdlib_and_run(src); |
| 235 | assert_eq!(uart.trim_end_matches('\n'), "Hi"); |
| 236 | assert_eq!(exit, Some(0)); |
| 237 | } |
| 238 | |
| 239 | #[test] |
| 240 | fn console_print_int_basic() { |
nothing calls this directly
no test coverage detected