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

Function nested_for_loops

tests/integration/hll_conformance.rs:332–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330 );
331}
332
333#[test]
334fn nested_for_loops() {
335 // 3x3 nested loop body runs 9 times.
336 assert_exit(
337 r#"
338main: () -> i32 {
339 count: i32 = 0
340 for i in 0..3 {
341 for j in 0..3 {
342 count = count + 1
343 }
344 }
345 return count
346}
347"#,
348 9,
349 );
350}
351

Callers

nothing calls this directly

Calls 1

assert_exitFunction · 0.85

Tested by

no test coverage detected