Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
doc
langref
test_while.zig
pretty
plain
permalink
blame
history
•
11 lines
•
182 B
1
const expectEqual = @import("std").testing.expectEqual;
2
3
test "while basic" {
4
var i: usize = 0;
5
while (i < 10) {
6
i += 1;
7
}
8
try expectEqual(10, i);
9
}
10
11
// test