mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
15 lines
227 B
Zig
15 lines
227 B
Zig
const expect = @import("std").testing.expect;
|
|
|
|
test "while continue" {
|
|
var i: usize = 0;
|
|
while (true) {
|
|
i += 1;
|
|
if (i < 10)
|
|
continue;
|
|
break;
|
|
}
|
|
try expect(i == 10);
|
|
}
|
|
|
|
// test
|