leo/tests/compiler/console/assert.leo

16 lines
225 B
Plaintext
Raw Normal View History

2021-05-03 16:47:33 +03:00
/*
namespace: Compile
expectation: Pass
inputs:
- assert.in: |
[main]
a: bool = true;
[registers]
r0: bool = false;
*/
function main(a: bool) -> bool {
2020-08-17 03:20:47 +03:00
console.assert(a == true);
2021-05-03 16:47:33 +03:00
return a == true;
2020-08-17 03:20:47 +03:00
}