mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-01 08:19:32 +03:00
16 lines
255 B
Plaintext
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: u128, b: u128, c: u128) -> bool {
|
|
let r: u128 = s ? a : b;
|
|
|
|
return r == c;
|
|
}
|
|
}
|