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