leo/tests/compiler/console/conditional_assert.leo

17 lines
249 B
Plaintext
Raw Normal View History

2021-05-03 16:47:33 +03:00
/*
namespace: Compile
expectation: Pass
input_file:
- inputs/true.in
- inputs/false.in
2021-05-03 16:47:33 +03:00
*/
function main(a: bool) -> bool {
2020-08-17 05:14:26 +03:00
if a {
console.assert(a == true);
} else {
console.assert(a == false);
}
return a;
2020-08-17 05:14:26 +03:00
}