leo/compiler/tests/statements/conditional/assert.leo

8 lines
113 B
Plaintext
Raw Normal View History

2020-07-31 03:11:58 +03:00
function main(a: u32) {
if a == 1 {
assert_eq!(a, 1);
} else {
2020-07-31 03:11:58 +03:00
assert_eq!(a, 0);
}
}