leo/tests/compiler/console/assert_fail.leo

15 lines
197 B
Plaintext
Raw Normal View History

2022-08-18 01:27:33 +03:00
/*
namespace: Compile
expectation: Fail
input_file: inputs/true.in
*/
@program
function main(a: bool) -> bool {
console.assert_eq(a == 1u8);
console.assert(1u8);
return a == true;
}