diff --git a/tests/compiler/field/sub.leo b/tests/compiler/field/sub.leo index fe11701161..5b45636ce6 100644 --- a/tests/compiler/field/sub.leo +++ b/tests/compiler/field/sub.leo @@ -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; } \ No newline at end of file diff --git a/tests/compiler/field/ternary.leo b/tests/compiler/field/ternary.leo index 980b878248..ad8fcfeec0 100644 --- a/tests/compiler/field/ternary.leo +++ b/tests/compiler/field/ternary.leo @@ -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; } \ No newline at end of file diff --git a/tests/expectations/compiler/compiler/field/sub.leo.out b/tests/expectations/compiler/compiler/field/sub.leo.out new file mode 100644 index 0000000000..5dfd371105 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: a9df57a8047f8562e1c08ac89cc25997590cb3759d7cc930714de57e8ac30624 + symbol_table: f601b6a1652f79ac2853737ecf09f4e5f23c05873e2bb3967137a7b2b0085b04 diff --git a/tests/expectations/compiler/compiler/field/ternary.leo.out b/tests/expectations/compiler/compiler/field/ternary.leo.out new file mode 100644 index 0000000000..a017d9a30e --- /dev/null +++ b/tests/expectations/compiler/compiler/field/ternary.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: 3cec4b6f5256f2e9299abbc632cc999d268bfaad48790abeb6efaad6f8081b2f + symbol_table: 5bb0a34e488683807eef29093f204fb2f1cfe8da3c2e2370d61e427a109a2d4a