()
| 539 | if v.len != 0 or v.capacity != 0 { return 1 } |
| 540 | |
| 541 | i: i64 = 0 |
| 542 | while i < 100 { |
| 543 | pushed := vec.Vec_push<i64>(&v, i * 3) |
| 544 | match pushed { |
| 545 | Ok(len) -> {} |
| 546 | Err(error) -> { return 2 } |
| 547 | } |
| 548 | i += 1 |
| 549 | } |
| 550 | if v.len != 100 { return 3 } |
| 551 | if v.capacity < 100 { return 4 } |
| 552 | |
| 553 | i = 0 |
| 554 | while i < 100 { |
| 555 | slot: i64* = vec.Vec_get<i64>(&v, i as u64) |
| 556 | if slot == null { return 5 } |
| 557 | if @slot != i * 3 { return 6 } |
| 558 | i += 1 |
| 559 | } |
| 560 | if vec.Vec_get<i64>(&v, 100) != null { return 7 } |
nothing calls this directly
no test coverage detected