MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / test_divide

Function test_divide

tests/integration/vm_execution.rs:852–865  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

850 let (_, outcome, uart) = run_hll(
851 r#"
852console := import("console")
853
854emit: (c: i32) -> i32 {
855 console.putchar(c)
856 return 0
857}
858main: () -> i32 {
859 emit(65)
860 emit(66)
861 return 0
862}
863"#,
864 );
865 assert_eq!(uart, "AB", "expected UART='AB', got {uart:?}");
866 assert!(
867 matches!(outcome, StepOutcome::Halted(0)),
868 "expected Halted(0), got {outcome:?}"

Callers

nothing calls this directly

Calls 1

assemble_and_runFunction · 0.85

Tested by

no test coverage detected