leo/compiler/tests/integers/u8/ternary.leo
2020-07-30 15:41:03 -07:00

5 lines
96 B
Plaintext

function main(s: bool, a: u8, b: u8, c: u8) {
let r = if s ? a : b;
assert_eq!(r, c);
}