leo/tests/compiler/console/conditional_assert.leo
2021-05-03 16:47:33 +03:00

19 lines
272 B
Plaintext

/*
namespace: Compile
expectation: Pass
inputs:
- cond.in: |
[main]
a: bool = true;
- cond_2.in: |
[main]
a: bool = false;
*/
function main(a: bool) {
if a {
console.assert(a == true);
} else {
console.assert(a == false);
}
}