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

Function run_string_slice_calls_stdlib_print

tests/integration/cli_pipeline.rs:233–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 let (uart, code) = run_hll(src);
232 assert_eq!(code, 0);
233 assert_eq!(uart, "Hello, world\n");
234}
235
236#[test]
237fn run_slice_string_utilities() {
238 let src = "
239console := import(\"console\")
240string := import(\"string\")
241
242main: () -> i32 {
243 copy: u8[] = string.copy(\"ab\")
244 joined: u8[] = string.concat(copy, \"cd\")
245 if string.is_empty(joined) {
246 return 1
247 }
248 if !string.equals(joined, \"abcd\") {
249 return 2

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected