leo/tests/compiler/console/conditional_assert.leo

18 lines
311 B
Plaintext
Raw Normal View History

2022-10-26 02:22:47 +03:00
/*
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;
}
}