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

8 lines
113 B
Plaintext

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