leo/tests/compiler/console/conditional_assert.leo
2022-10-25 16:22:47 -07:00

18 lines
311 B
Plaintext

/*
namespace: Compile
expectation: Pass
*/
program test.aleo {
transition main(id_type: u8) -> bool {
if (id_type == 1u8) {
return true;
}
if (id_type == 2u8) {
console.assert(0u8 > id_type);
return false;
}
return false;
}
}