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

Function puts_basic

tests/vm_diag_test.rs:225–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223
224#[test]
225fn writeln_basic() {
226 let src = r#"
227console := import("console")
228
229main: () -> 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]
240fn console_print_int_basic() {

Callers

nothing calls this directly

Calls 1

link_stdlib_and_runFunction · 0.85

Tested by

no test coverage detected