mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-20 16:11:35 +03:00
14 lines
199 B
Plaintext
14 lines
199 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/tern.in
|
|
- inputs/tern_rev.in
|
|
*/
|
|
|
|
function main(s: bool, a: u8, b: u8, c: u8) -> bool {
|
|
let r: u8 = s ? a : b;
|
|
|
|
return r == c;
|
|
}
|