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

5 lines
105 B
Plaintext

function main(s: bool, a: u128, b: u128, c: u128) {
let r = s ? a : b;
console.assert(r == c);
}