leo/compiler/tests/statements/iteration_basic.leo
2020-07-30 17:11:58 -07:00

8 lines
109 B
Plaintext

function main() {
let mut x = 4u32;
for i in 0..3 {
x -= 1;
}
assert_eq!(x, 1u32);
}