leo/compiler/tests/statements/conditional/assert.leo
2020-07-17 12:59:18 -07:00

8 lines
121 B
Plaintext

function main(bit: u32) {
if bit == 1 {
assert_eq!(bit, 1);
} else {
assert_eq!(bit, 0);
}
}