()
| 330 | ); |
| 331 | } |
| 332 | |
| 333 | #[test] |
| 334 | fn nested_for_loops() { |
| 335 | // 3x3 nested loop body runs 9 times. |
| 336 | assert_exit( |
| 337 | r#" |
| 338 | main: () -> 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 |
nothing calls this directly
no test coverage detected