leo/asg/tests/pass/integers/u128/ternary.leo

5 lines
108 B
Plaintext
Raw Normal View History

2021-01-25 18:17:42 +03:00
function main(s: bool, a: u128, b: u128, c: u128) {
let r = if s ? a : b;
console.assert(r == c);
}