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

5 lines
105 B
Plaintext

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