mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 10:41:57 +03:00
Add test; regen expectations
This commit is contained in:
parent
9c44c38dc2
commit
a904a1441a
17
tests/compiler/console/conditional_assert.leo
Normal file
17
tests/compiler/console/conditional_assert.leo
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
10
tests/expectations/compiler/console/conditional_assert.out
Normal file
10
tests/expectations/compiler/console/conditional_assert.out
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
namespace: Compile
|
||||||
|
expectation: Pass
|
||||||
|
outputs:
|
||||||
|
- output:
|
||||||
|
- initial_input_ast: no input
|
||||||
|
initial_ast: aa1777f90d189c4127edc7419efa3134969a6db3e138bcde36095377d22452a3
|
||||||
|
unrolled_ast: aa1777f90d189c4127edc7419efa3134969a6db3e138bcde36095377d22452a3
|
||||||
|
ssa_ast: 672c4dd4f4eca31c458b8a55d2af1cd46fda4261578993f353b6cdf1818256de
|
||||||
|
flattened_ast: 5eacb46ae48246907ab7d5cda2b33d5e49504cccc22b04c9b3c48a4b939679b3
|
Loading…
Reference in New Issue
Block a user