leo/disabled_tests/compiler/console/conditional_assert.leo

19 lines
272 B
Plaintext
Raw Normal View History

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