Skip to content

Commit

Permalink
[tests] add block comment annotation to field/sub.leo and field/terna…
Browse files Browse the repository at this point in the history
…ry.leo and add expectations files
  • Loading branch information
bendyarm committed May 10, 2022
1 parent 389026f commit 06cb450
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/compiler/field/sub.leo
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
namespace: Compile
expectation: Pass
input_file:
- inputs/fields.in
*/

function main(a: field, b: field, c: field) -> bool {
return a - b == c;
}
7 changes: 7 additions & 0 deletions tests/compiler/field/ternary.leo
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
namespace: Compile
expectation: Pass
input_file:
- inputs/fields.in
*/

function main(a: field, b: field, c: field) -> bool {
return b == 1field ? a == 1field : c == 2field;
}
8 changes: 8 additions & 0 deletions tests/expectations/compiler/compiler/field/sub.leo.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
namespace: Compile
expectation: Pass
outputs:
- output:
- initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148
initial_ast: a9df57a8047f8562e1c08ac89cc25997590cb3759d7cc930714de57e8ac30624
symbol_table: f601b6a1652f79ac2853737ecf09f4e5f23c05873e2bb3967137a7b2b0085b04
8 changes: 8 additions & 0 deletions tests/expectations/compiler/compiler/field/ternary.leo.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
namespace: Compile
expectation: Pass
outputs:
- output:
- initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148
initial_ast: 3cec4b6f5256f2e9299abbc632cc999d268bfaad48790abeb6efaad6f8081b2f
symbol_table: 5bb0a34e488683807eef29093f204fb2f1cfe8da3c2e2370d61e427a109a2d4a

0 comments on commit 06cb450

Please sign in to comment.