mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +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
|