leo/tests/compiler/integers/i128/ternary.leo
2022-10-05 16:53:49 -07:00

16 lines
255 B
Plaintext

/*
namespace: Compile
expectation: Pass
input_file:
- inputs/tern.in
- inputs/tern_rev.in
*/
program test.aleo {
transition main(s: bool, a: i128, b: i128, c: i128) -> bool {
let r: i128 = s ? a : b;
return r == c;
}
}