()
| 834 | console.putchar(65) |
| 835 | console.putchar(66) |
| 836 | console.putchar(67) |
| 837 | return 0 |
| 838 | } |
| 839 | "#, |
| 840 | ); |
| 841 | assert_eq!(uart, "ABC", "expected UART='ABC', got {uart:?}"); |
| 842 | assert!( |
| 843 | matches!(outcome, StepOutcome::Halted(0)), |
| 844 | "expected Halted(0), got {outcome:?}" |
| 845 | ); |
| 846 | } |
| 847 | |
| 848 | #[test] |
| 849 | fn hll_user_function_calls_putchar() { |
| 850 | let (_, outcome, uart) = run_hll( |
| 851 | r#" |
| 852 | console := import("console") |
nothing calls this directly
no test coverage detected