From 1707d43be090998deeb65b34a8bc67da561d8076 Mon Sep 17 00:00:00 2001 From: collin Date: Fri, 17 Jul 2020 12:59:18 -0700 Subject: [PATCH] fix indents --- compiler/tests/array/initializer.leo | 2 +- compiler/tests/array/inline.leo | 2 +- compiler/tests/array/input.leo | 2 +- compiler/tests/array/multi.leo | 6 +++--- compiler/tests/array/slice.leo | 4 ++-- compiler/tests/array/spread.leo | 4 ++-- compiler/tests/boolean/all.leo | 8 ++++---- compiler/tests/boolean/false.leo | 2 +- compiler/tests/boolean/false_and_false.leo | 2 +- compiler/tests/boolean/false_or_false.leo | 2 +- compiler/tests/boolean/input_bool.leo | 2 +- compiler/tests/boolean/not_false.leo | 2 +- compiler/tests/boolean/not_true.leo | 2 +- compiler/tests/boolean/not_u32.leo | 2 +- compiler/tests/boolean/true.leo | 2 +- compiler/tests/boolean/true_and_false.leo | 2 +- compiler/tests/boolean/true_and_true.leo | 2 +- compiler/tests/boolean/true_and_u32.leo | 2 +- compiler/tests/boolean/true_or_false.leo | 2 +- compiler/tests/boolean/true_or_true.leo | 2 +- compiler/tests/boolean/true_or_u32.leo | 2 +- compiler/tests/circuits/inline.leo | 4 ++-- compiler/tests/circuits/inline_fail.leo | 4 ++-- compiler/tests/circuits/inline_undefined.leo | 2 +- compiler/tests/circuits/member_field.leo | 6 +++--- compiler/tests/circuits/member_field_fail.leo | 6 +++--- compiler/tests/circuits/member_function.leo | 10 +++++----- .../tests/circuits/member_function_fail.leo | 10 +++++----- .../tests/circuits/member_function_invalid.leo | 10 +++++----- .../tests/circuits/member_static_function.leo | 8 ++++---- .../member_static_function_invalid.leo | 8 ++++---- .../member_static_function_undefined.leo | 8 ++++---- compiler/tests/circuits/self_circuit.leo | 8 ++++---- compiler/tests/field/assert_eq.leo | 2 +- compiler/tests/field/div.leo | 2 +- compiler/tests/field/eq.leo | 2 +- compiler/tests/field/ge.leo | 2 +- compiler/tests/field/gt.leo | 2 +- compiler/tests/field/input.leo | 2 +- compiler/tests/field/le.leo | 2 +- compiler/tests/field/lt.leo | 2 +- compiler/tests/field/mod.rs | 2 +- compiler/tests/field/mul.leo | 2 +- compiler/tests/field/one.leo | 2 +- compiler/tests/field/sub.leo | 2 +- compiler/tests/field/ternary.leo | 2 +- compiler/tests/field/zero.leo | 2 +- compiler/tests/function/empty.leo | 2 +- compiler/tests/function/iteration.leo | 12 ++++++------ compiler/tests/function/multiple.leo | 6 +++--- compiler/tests/function/multiple_main.leo | 2 +- compiler/tests/function/repeated.leo | 4 ++-- compiler/tests/function/repeated_iteration.leo | 12 ++++++------ compiler/tests/function/return.leo | 4 ++-- compiler/tests/function/scope_fail.leo | 6 +++--- compiler/tests/function/undefined.leo | 2 +- compiler/tests/group/add.leo | 6 +++--- compiler/tests/group/assert_eq_false.leo | 6 +++--- compiler/tests/group/assert_eq_true.leo | 6 +++--- compiler/tests/group/eq_false.leo | 6 +++--- compiler/tests/group/eq_true.leo | 6 +++--- compiler/tests/group/input.leo | 2 +- compiler/tests/group/sub.leo | 6 +++--- compiler/tests/group/zero.leo | 2 +- compiler/tests/import/alias.leo | 2 +- compiler/tests/import/basic.leo | 2 +- compiler/tests/import/multiple.leo | 8 ++++---- compiler/tests/import/star.leo | 4 ++-- compiler/tests/inputs/main.leo | 2 +- compiler/tests/inputs/main_multiple.leo | 2 +- compiler/tests/integers/i128/add.leo | 2 +- compiler/tests/integers/i128/assert_eq.leo | 2 +- compiler/tests/integers/i128/div.leo | 2 +- compiler/tests/integers/i128/eq.leo | 2 +- compiler/tests/integers/i128/ge.leo | 2 +- compiler/tests/integers/i128/gt.leo | 2 +- compiler/tests/integers/i128/input.leo | 2 +- compiler/tests/integers/i128/le.leo | 2 +- compiler/tests/integers/i128/lt.leo | 2 +- compiler/tests/integers/i128/max.leo | 2 +- compiler/tests/integers/i128/min.leo | 2 +- compiler/tests/integers/i128/mul.leo | 2 +- compiler/tests/integers/i128/pow.leo | 2 +- compiler/tests/integers/i128/sub.leo | 2 +- compiler/tests/integers/i128/ternary.leo | 2 +- compiler/tests/integers/i16/add.leo | 2 +- compiler/tests/integers/i16/assert_eq.leo | 2 +- compiler/tests/integers/i16/div.leo | 2 +- compiler/tests/integers/i16/eq.leo | 2 +- compiler/tests/integers/i16/ge.leo | 2 +- compiler/tests/integers/i16/gt.leo | 2 +- compiler/tests/integers/i16/input.leo | 2 +- compiler/tests/integers/i16/le.leo | 2 +- compiler/tests/integers/i16/lt.leo | 2 +- compiler/tests/integers/i16/max.leo | 2 +- compiler/tests/integers/i16/min.leo | 2 +- compiler/tests/integers/i16/mul.leo | 2 +- compiler/tests/integers/i16/pow.leo | 2 +- compiler/tests/integers/i16/sub.leo | 2 +- compiler/tests/integers/i16/ternary.leo | 2 +- compiler/tests/integers/i32/add.leo | 2 +- compiler/tests/integers/i32/assert_eq.leo | 2 +- compiler/tests/integers/i32/div.leo | 2 +- compiler/tests/integers/i32/eq.leo | 2 +- compiler/tests/integers/i32/ge.leo | 2 +- compiler/tests/integers/i32/gt.leo | 2 +- compiler/tests/integers/i32/input.leo | 2 +- compiler/tests/integers/i32/le.leo | 2 +- compiler/tests/integers/i32/lt.leo | 2 +- compiler/tests/integers/i32/max.leo | 2 +- compiler/tests/integers/i32/min.leo | 2 +- compiler/tests/integers/i32/mul.leo | 2 +- compiler/tests/integers/i32/pow.leo | 2 +- compiler/tests/integers/i32/sub.leo | 2 +- compiler/tests/integers/i32/ternary.leo | 2 +- compiler/tests/integers/i64/add.leo | 2 +- compiler/tests/integers/i64/assert_eq.leo | 2 +- compiler/tests/integers/i64/div.leo | 2 +- compiler/tests/integers/i64/eq.leo | 2 +- compiler/tests/integers/i64/ge.leo | 2 +- compiler/tests/integers/i64/gt.leo | 2 +- compiler/tests/integers/i64/input.leo | 2 +- compiler/tests/integers/i64/le.leo | 2 +- compiler/tests/integers/i64/lt.leo | 2 +- compiler/tests/integers/i64/max.leo | 2 +- compiler/tests/integers/i64/min.leo | 2 +- compiler/tests/integers/i64/mul.leo | 2 +- compiler/tests/integers/i64/pow.leo | 2 +- compiler/tests/integers/i64/sub.leo | 2 +- compiler/tests/integers/i64/ternary.leo | 2 +- compiler/tests/integers/i8/add.leo | 2 +- compiler/tests/integers/i8/assert_eq.leo | 2 +- compiler/tests/integers/i8/div.leo | 2 +- compiler/tests/integers/i8/eq.leo | 2 +- compiler/tests/integers/i8/ge.leo | 2 +- compiler/tests/integers/i8/gt.leo | 2 +- compiler/tests/integers/i8/input.leo | 2 +- compiler/tests/integers/i8/le.leo | 2 +- compiler/tests/integers/i8/lt.leo | 2 +- compiler/tests/integers/i8/max.leo | 2 +- compiler/tests/integers/i8/min.leo | 2 +- compiler/tests/integers/i8/mul.leo | 2 +- compiler/tests/integers/i8/pow.leo | 2 +- compiler/tests/integers/i8/sub.leo | 2 +- compiler/tests/integers/i8/ternary.leo | 2 +- compiler/tests/integers/u128/add.leo | 2 +- compiler/tests/integers/u128/assert_eq.leo | 2 +- compiler/tests/integers/u128/div.leo | 2 +- compiler/tests/integers/u128/eq.leo | 2 +- compiler/tests/integers/u128/ge.leo | 2 +- compiler/tests/integers/u128/gt.leo | 2 +- compiler/tests/integers/u128/input.leo | 2 +- compiler/tests/integers/u128/le.leo | 2 +- compiler/tests/integers/u128/lt.leo | 2 +- compiler/tests/integers/u128/max.leo | 2 +- compiler/tests/integers/u128/min.leo | 2 +- compiler/tests/integers/u128/mul.leo | 2 +- compiler/tests/integers/u128/pow.leo | 2 +- compiler/tests/integers/u128/sub.leo | 2 +- compiler/tests/integers/u128/ternary.leo | 2 +- compiler/tests/integers/u16/add.leo | 2 +- compiler/tests/integers/u16/assert_eq.leo | 2 +- compiler/tests/integers/u16/div.leo | 2 +- compiler/tests/integers/u16/eq.leo | 2 +- compiler/tests/integers/u16/ge.leo | 2 +- compiler/tests/integers/u16/gt.leo | 2 +- compiler/tests/integers/u16/input.leo | 2 +- compiler/tests/integers/u16/le.leo | 2 +- compiler/tests/integers/u16/lt.leo | 2 +- compiler/tests/integers/u16/max.leo | 2 +- compiler/tests/integers/u16/min.leo | 2 +- compiler/tests/integers/u16/mul.leo | 2 +- compiler/tests/integers/u16/pow.leo | 2 +- compiler/tests/integers/u16/sub.leo | 2 +- compiler/tests/integers/u16/ternary.leo | 2 +- compiler/tests/integers/u32/add.leo | 2 +- compiler/tests/integers/u32/assert_eq.leo | 2 +- compiler/tests/integers/u32/div.leo | 2 +- compiler/tests/integers/u32/eq.leo | 2 +- compiler/tests/integers/u32/ge.leo | 2 +- compiler/tests/integers/u32/gt.leo | 2 +- compiler/tests/integers/u32/input.leo | 2 +- compiler/tests/integers/u32/le.leo | 2 +- compiler/tests/integers/u32/lt.leo | 2 +- compiler/tests/integers/u32/max.leo | 2 +- compiler/tests/integers/u32/min.leo | 2 +- compiler/tests/integers/u32/mul.leo | 2 +- compiler/tests/integers/u32/pow.leo | 2 +- compiler/tests/integers/u32/sub.leo | 2 +- compiler/tests/integers/u32/ternary.leo | 2 +- compiler/tests/integers/u64/add.leo | 2 +- compiler/tests/integers/u64/assert_eq.leo | 2 +- compiler/tests/integers/u64/div.leo | 2 +- compiler/tests/integers/u64/eq.leo | 2 +- compiler/tests/integers/u64/ge.leo | 2 +- compiler/tests/integers/u64/gt.leo | 2 +- compiler/tests/integers/u64/input.leo | 2 +- compiler/tests/integers/u64/le.leo | 2 +- compiler/tests/integers/u64/lt.leo | 2 +- compiler/tests/integers/u64/max.leo | 2 +- compiler/tests/integers/u64/min.leo | 2 +- compiler/tests/integers/u64/mul.leo | 2 +- compiler/tests/integers/u64/pow.leo | 2 +- compiler/tests/integers/u64/sub.leo | 2 +- compiler/tests/integers/u64/ternary.leo | 2 +- compiler/tests/integers/u8/add.leo | 2 +- compiler/tests/integers/u8/assert_eq.leo | 2 +- compiler/tests/integers/u8/div.leo | 2 +- compiler/tests/integers/u8/eq.leo | 2 +- compiler/tests/integers/u8/ge.leo | 2 +- compiler/tests/integers/u8/gt.leo | 2 +- compiler/tests/integers/u8/input.leo | 2 +- compiler/tests/integers/u8/le.leo | 2 +- compiler/tests/integers/u8/lt.leo | 2 +- compiler/tests/integers/u8/max.leo | 2 +- compiler/tests/integers/u8/min.leo | 2 +- compiler/tests/integers/u8/mul.leo | 2 +- compiler/tests/integers/u8/pow.leo | 2 +- compiler/tests/integers/u8/sub.leo | 2 +- compiler/tests/integers/u8/ternary.leo | 2 +- compiler/tests/mutability/array.leo | 4 ++-- compiler/tests/mutability/array_mut.leo | 6 +++--- compiler/tests/mutability/circuit.leo | 6 +++--- compiler/tests/mutability/circuit_mut.leo | 8 ++++---- compiler/tests/mutability/const.leo | 4 ++-- compiler/tests/mutability/const_mut.leo | 2 +- compiler/tests/mutability/function_input.leo | 2 +- .../tests/mutability/function_input_mut.leo | 4 ++-- compiler/tests/mutability/let.leo | 4 ++-- compiler/tests/mutability/let_mut.leo | 6 +++--- compiler/tests/statements/assertion_basic.leo | 2 +- .../tests/statements/conditional/assert.leo | 4 ++-- .../tests/statements/conditional/chain.leo | 18 +++++++++--------- .../tests/statements/conditional/for_loop.leo | 12 ++++++------ .../tests/statements/conditional/mutate.leo | 14 +++++++------- .../tests/statements/conditional/nested.leo | 14 +++++++------- compiler/tests/statements/iteration_basic.leo | 10 +++++----- compiler/tests/statements/num_returns_fail.leo | 2 +- compiler/tests/statements/ternary_basic.leo | 2 +- compiler/tests/syntax/mod.rs | 6 +++--- compiler/tests/syntax/semicolon.leo | 2 +- compiler/tests/syntax/undefined.leo | 2 +- 242 files changed, 356 insertions(+), 356 deletions(-) diff --git a/compiler/tests/array/initializer.leo b/compiler/tests/array/initializer.leo index 744aa39cfa..d129bd704d 100644 --- a/compiler/tests/array/initializer.leo +++ b/compiler/tests/array/initializer.leo @@ -1,3 +1,3 @@ function main() -> u32[3] { - return [1u32; 3] + return [1u32; 3] } \ No newline at end of file diff --git a/compiler/tests/array/inline.leo b/compiler/tests/array/inline.leo index 935e59287f..3a77aa5546 100644 --- a/compiler/tests/array/inline.leo +++ b/compiler/tests/array/inline.leo @@ -1,3 +1,3 @@ function main() -> u32[3] { - return [1u32, 1u32, 1u32] + return [1u32, 1u32, 1u32] } \ No newline at end of file diff --git a/compiler/tests/array/input.leo b/compiler/tests/array/input.leo index dca78cf2a3..eade0fae25 100644 --- a/compiler/tests/array/input.leo +++ b/compiler/tests/array/input.leo @@ -1,3 +1,3 @@ function main(arr: u32[3]) -> u32[3] { - return arr + return arr } \ No newline at end of file diff --git a/compiler/tests/array/multi.leo b/compiler/tests/array/multi.leo index 7dc37aa8d4..baf94b2842 100644 --- a/compiler/tests/array/multi.leo +++ b/compiler/tests/array/multi.leo @@ -1,8 +1,8 @@ // Multidimensional array syntax in leo function main() -> u32[3][2] { - const m = [[0u32, 0u32, 0u32], [0u32, 0u32, 0u32]]; // inline + const m = [[0u32, 0u32, 0u32], [0u32, 0u32, 0u32]]; // inline - const m: u32[3][2] = [[0; 3]; 2]; // initializer + const m: u32[3][2] = [[0; 3]; 2]; // initializer - return m + return m } \ No newline at end of file diff --git a/compiler/tests/array/slice.leo b/compiler/tests/array/slice.leo index 7681381ad5..95390d0583 100644 --- a/compiler/tests/array/slice.leo +++ b/compiler/tests/array/slice.leo @@ -1,6 +1,6 @@ // `{from}..{to}` copies the elements of one array into another exclusively function main() -> u32[3] { - let a = [1u32; 4]; + let a = [1u32; 4]; - return a[0..3] + return a[0..3] } diff --git a/compiler/tests/array/spread.leo b/compiler/tests/array/spread.leo index 3db1a1cd1c..86d5612171 100644 --- a/compiler/tests/array/spread.leo +++ b/compiler/tests/array/spread.leo @@ -1,6 +1,6 @@ // A spread operator `...` copies the elements of one array into another function main() -> u32[3] { - let a = [1u32, 1u32]; + let a = [1u32, 1u32]; - return [1u32, ...a] + return [1u32, ...a] } \ No newline at end of file diff --git a/compiler/tests/boolean/all.leo b/compiler/tests/boolean/all.leo index ef95729b4e..f4329b77d5 100644 --- a/compiler/tests/boolean/all.leo +++ b/compiler/tests/boolean/all.leo @@ -1,8 +1,8 @@ // !(true && (false || true)) function main() -> bool { - const a = true; - const b = false || a; - const c = !(true && b); + const a = true; + const b = false || a; + const c = !(true && b); - return c + return c } \ No newline at end of file diff --git a/compiler/tests/boolean/false.leo b/compiler/tests/boolean/false.leo index 22922b0e8f..221958dbd9 100644 --- a/compiler/tests/boolean/false.leo +++ b/compiler/tests/boolean/false.leo @@ -1,3 +1,3 @@ function main() -> bool { - return false + return false } \ No newline at end of file diff --git a/compiler/tests/boolean/false_and_false.leo b/compiler/tests/boolean/false_and_false.leo index 9ce2840a96..4814c7dbb6 100644 --- a/compiler/tests/boolean/false_and_false.leo +++ b/compiler/tests/boolean/false_and_false.leo @@ -1,3 +1,3 @@ function main() -> bool { - return false && false + return false && false } \ No newline at end of file diff --git a/compiler/tests/boolean/false_or_false.leo b/compiler/tests/boolean/false_or_false.leo index dd026b1f29..5e98a6f8c9 100644 --- a/compiler/tests/boolean/false_or_false.leo +++ b/compiler/tests/boolean/false_or_false.leo @@ -1,3 +1,3 @@ function main() -> bool { - return false || false + return false || false } \ No newline at end of file diff --git a/compiler/tests/boolean/input_bool.leo b/compiler/tests/boolean/input_bool.leo index 3536a82621..c233ac7fad 100644 --- a/compiler/tests/boolean/input_bool.leo +++ b/compiler/tests/boolean/input_bool.leo @@ -1,3 +1,3 @@ function main(b: bool) -> bool{ - return b + return b } \ No newline at end of file diff --git a/compiler/tests/boolean/not_false.leo b/compiler/tests/boolean/not_false.leo index ae3c6a0e1a..7a5a8f69a7 100644 --- a/compiler/tests/boolean/not_false.leo +++ b/compiler/tests/boolean/not_false.leo @@ -1,3 +1,3 @@ function main() -> bool { - return !false + return !false } \ No newline at end of file diff --git a/compiler/tests/boolean/not_true.leo b/compiler/tests/boolean/not_true.leo index 650ec54a77..58d3799aed 100644 --- a/compiler/tests/boolean/not_true.leo +++ b/compiler/tests/boolean/not_true.leo @@ -1,3 +1,3 @@ function main() -> bool { - return !true + return !true } \ No newline at end of file diff --git a/compiler/tests/boolean/not_u32.leo b/compiler/tests/boolean/not_u32.leo index 1d4f7ccc20..04b52860ca 100644 --- a/compiler/tests/boolean/not_u32.leo +++ b/compiler/tests/boolean/not_u32.leo @@ -1,3 +1,3 @@ function main() -> bool { - return !1u32 + return !1u32 } \ No newline at end of file diff --git a/compiler/tests/boolean/true.leo b/compiler/tests/boolean/true.leo index 45da76d407..837a259a92 100644 --- a/compiler/tests/boolean/true.leo +++ b/compiler/tests/boolean/true.leo @@ -1,3 +1,3 @@ function main() -> bool { - return true + return true } \ No newline at end of file diff --git a/compiler/tests/boolean/true_and_false.leo b/compiler/tests/boolean/true_and_false.leo index 58c350aedd..531abc407a 100644 --- a/compiler/tests/boolean/true_and_false.leo +++ b/compiler/tests/boolean/true_and_false.leo @@ -1,3 +1,3 @@ function main() -> bool { - return true && false + return true && false } \ No newline at end of file diff --git a/compiler/tests/boolean/true_and_true.leo b/compiler/tests/boolean/true_and_true.leo index a14a9fc29e..e030515842 100644 --- a/compiler/tests/boolean/true_and_true.leo +++ b/compiler/tests/boolean/true_and_true.leo @@ -1,3 +1,3 @@ function main() -> bool { - return true && true + return true && true } \ No newline at end of file diff --git a/compiler/tests/boolean/true_and_u32.leo b/compiler/tests/boolean/true_and_u32.leo index 9e0cc52314..d466f63a3e 100644 --- a/compiler/tests/boolean/true_and_u32.leo +++ b/compiler/tests/boolean/true_and_u32.leo @@ -1,3 +1,3 @@ function main() -> bool { - return true && 1u32 + return true && 1u32 } \ No newline at end of file diff --git a/compiler/tests/boolean/true_or_false.leo b/compiler/tests/boolean/true_or_false.leo index 0682912527..cdb0ff3484 100644 --- a/compiler/tests/boolean/true_or_false.leo +++ b/compiler/tests/boolean/true_or_false.leo @@ -1,3 +1,3 @@ function main() -> bool { - return true || false + return true || false } \ No newline at end of file diff --git a/compiler/tests/boolean/true_or_true.leo b/compiler/tests/boolean/true_or_true.leo index 33551d2d7d..0451e20b75 100644 --- a/compiler/tests/boolean/true_or_true.leo +++ b/compiler/tests/boolean/true_or_true.leo @@ -1,3 +1,3 @@ function main() -> bool { - return true || true + return true || true } \ No newline at end of file diff --git a/compiler/tests/boolean/true_or_u32.leo b/compiler/tests/boolean/true_or_u32.leo index e96064e747..bd12e19708 100644 --- a/compiler/tests/boolean/true_or_u32.leo +++ b/compiler/tests/boolean/true_or_u32.leo @@ -1,3 +1,3 @@ function main() -> bool { - return true || 1u32 + return true || 1u32 } \ No newline at end of file diff --git a/compiler/tests/circuits/inline.leo b/compiler/tests/circuits/inline.leo index 1c03113446..0a9af217ff 100644 --- a/compiler/tests/circuits/inline.leo +++ b/compiler/tests/circuits/inline.leo @@ -1,7 +1,7 @@ circuit Foo { - x: u32 + x: u32 } function main() -> Foo { - return Foo { x: 1u32 } + return Foo { x: 1u32 } } \ No newline at end of file diff --git a/compiler/tests/circuits/inline_fail.leo b/compiler/tests/circuits/inline_fail.leo index 08492bdad6..d5690cca95 100644 --- a/compiler/tests/circuits/inline_fail.leo +++ b/compiler/tests/circuits/inline_fail.leo @@ -1,7 +1,7 @@ circuit Foo { - x: u32 + x: u32 } function main() { - let c = Foo { y: 0u32 }; + let c = Foo { y: 0u32 }; } \ No newline at end of file diff --git a/compiler/tests/circuits/inline_undefined.leo b/compiler/tests/circuits/inline_undefined.leo index dac349c9c4..2167ed7160 100644 --- a/compiler/tests/circuits/inline_undefined.leo +++ b/compiler/tests/circuits/inline_undefined.leo @@ -1,3 +1,3 @@ function main() { - let c = Foo { }; + let c = Foo { }; } \ No newline at end of file diff --git a/compiler/tests/circuits/member_field.leo b/compiler/tests/circuits/member_field.leo index 574abfdc7e..9cb2955ca3 100644 --- a/compiler/tests/circuits/member_field.leo +++ b/compiler/tests/circuits/member_field.leo @@ -1,9 +1,9 @@ circuit Foo { - x: u32, + x: u32, } function main() -> u32 { - let c = Foo { x: 1u32 }; + let c = Foo { x: 1u32 }; - return c.x + return c.x } \ No newline at end of file diff --git a/compiler/tests/circuits/member_field_fail.leo b/compiler/tests/circuits/member_field_fail.leo index c866f6c48b..643ac3dbff 100644 --- a/compiler/tests/circuits/member_field_fail.leo +++ b/compiler/tests/circuits/member_field_fail.leo @@ -1,9 +1,9 @@ circuit Foo { - x: u32 + x: u32 } function main() -> u32 { - let c = Foo { x: 1u32 }; + let c = Foo { x: 1u32 }; - return c.y + return c.y } \ No newline at end of file diff --git a/compiler/tests/circuits/member_function.leo b/compiler/tests/circuits/member_function.leo index d890a8c321..4528b0e5e0 100644 --- a/compiler/tests/circuits/member_function.leo +++ b/compiler/tests/circuits/member_function.leo @@ -1,10 +1,10 @@ circuit Foo { - function echo(x: u32) -> u32 { - return x - } + function echo(x: u32) -> u32 { + return x + } } function main() -> u32 { - let c = Foo { }; - return c.echo(1u32) + let c = Foo { }; + return c.echo(1u32) } \ No newline at end of file diff --git a/compiler/tests/circuits/member_function_fail.leo b/compiler/tests/circuits/member_function_fail.leo index 49a7aca565..7facc85cd5 100644 --- a/compiler/tests/circuits/member_function_fail.leo +++ b/compiler/tests/circuits/member_function_fail.leo @@ -1,10 +1,10 @@ circuit Foo { - function echo(x: u32) -> u32 { - return x - } + function echo(x: u32) -> u32 { + return x + } } function main() -> u32 { - let c = Foo { }; - return c.echoed(1u32) + let c = Foo { }; + return c.echoed(1u32) } \ No newline at end of file diff --git a/compiler/tests/circuits/member_function_invalid.leo b/compiler/tests/circuits/member_function_invalid.leo index cb1cbde239..b882433dda 100644 --- a/compiler/tests/circuits/member_function_invalid.leo +++ b/compiler/tests/circuits/member_function_invalid.leo @@ -1,10 +1,10 @@ circuit Foo { - static function echo(x: u32) -> u32 { - return x - } + static function echo(x: u32) -> u32 { + return x + } } function main() -> u32 { - let c = Foo { }; - return c.echo(1u32) // echo is a static function and must be accessed using `::` + let c = Foo { }; + return c.echo(1u32) // echo is a static function and must be accessed using `::` } \ No newline at end of file diff --git a/compiler/tests/circuits/member_static_function.leo b/compiler/tests/circuits/member_static_function.leo index ae544fa5a9..34814d15bd 100644 --- a/compiler/tests/circuits/member_static_function.leo +++ b/compiler/tests/circuits/member_static_function.leo @@ -1,9 +1,9 @@ circuit Foo { - static function echo(x: u32) -> u32 { - return x - } + static function echo(x: u32) -> u32 { + return x + } } function main() -> u32 { - return Foo::echo(1u32) + return Foo::echo(1u32) } \ No newline at end of file diff --git a/compiler/tests/circuits/member_static_function_invalid.leo b/compiler/tests/circuits/member_static_function_invalid.leo index 438e4b80a9..54a1879d1a 100644 --- a/compiler/tests/circuits/member_static_function_invalid.leo +++ b/compiler/tests/circuits/member_static_function_invalid.leo @@ -1,9 +1,9 @@ circuit Foo { - function echo(x: u32) -> u32 { - return x - } + function echo(x: u32) -> u32 { + return x + } } function main() -> u32 { - return Foo::echo(1u32) // echo is a non-static function and must be accessed using `.` + return Foo::echo(1u32) // echo is a non-static function and must be accessed using `.` } \ No newline at end of file diff --git a/compiler/tests/circuits/member_static_function_undefined.leo b/compiler/tests/circuits/member_static_function_undefined.leo index 8e34d19c42..8ded0d7619 100644 --- a/compiler/tests/circuits/member_static_function_undefined.leo +++ b/compiler/tests/circuits/member_static_function_undefined.leo @@ -1,9 +1,9 @@ circuit Foo { - static function echo(x: u32) -> u32 { - return x - } + static function echo(x: u32) -> u32 { + return x + } } function main() -> u32 { - return Foo::echoed(1u32) + return Foo::echoed(1u32) } \ No newline at end of file diff --git a/compiler/tests/circuits/self_circuit.leo b/compiler/tests/circuits/self_circuit.leo index 6f87703c5d..12713ed214 100644 --- a/compiler/tests/circuits/self_circuit.leo +++ b/compiler/tests/circuits/self_circuit.leo @@ -1,9 +1,9 @@ circuit Foo { - static function new() -> Self { - return Self { } - } + static function new() -> Self { + return Self { } + } } function main() -> Foo { - return Foo::new() + return Foo::new() } \ No newline at end of file diff --git a/compiler/tests/field/assert_eq.leo b/compiler/tests/field/assert_eq.leo index ebf7eecb1a..a5dbe51c6a 100644 --- a/compiler/tests/field/assert_eq.leo +++ b/compiler/tests/field/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/field/div.leo b/compiler/tests/field/div.leo index 6214073024..f4b3378ebb 100644 --- a/compiler/tests/field/div.leo +++ b/compiler/tests/field/div.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) -> field { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/field/eq.leo b/compiler/tests/field/eq.leo index 839bf5d64e..0739f2baab 100644 --- a/compiler/tests/field/eq.leo +++ b/compiler/tests/field/eq.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/field/ge.leo b/compiler/tests/field/ge.leo index 860cdfc695..914f6795a0 100644 --- a/compiler/tests/field/ge.leo +++ b/compiler/tests/field/ge.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/field/gt.leo b/compiler/tests/field/gt.leo index 4bec88c764..1cd86cd3fc 100644 --- a/compiler/tests/field/gt.leo +++ b/compiler/tests/field/gt.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/field/input.leo b/compiler/tests/field/input.leo index 29ff4f08b2..1b49fb06e3 100644 --- a/compiler/tests/field/input.leo +++ b/compiler/tests/field/input.leo @@ -1,3 +1,3 @@ function main(f: field) -> field{ - return f + return f } \ No newline at end of file diff --git a/compiler/tests/field/le.leo b/compiler/tests/field/le.leo index 8cdc10e5c4..9f01dc0458 100644 --- a/compiler/tests/field/le.leo +++ b/compiler/tests/field/le.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/field/lt.leo b/compiler/tests/field/lt.leo index 4e4acf457c..35e4670245 100644 --- a/compiler/tests/field/lt.leo +++ b/compiler/tests/field/lt.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/field/mod.rs b/compiler/tests/field/mod.rs index 0a1e331025..eff8a46438 100644 --- a/compiler/tests/field/mod.rs +++ b/compiler/tests/field/mod.rs @@ -1,5 +1,5 @@ use crate::{ - boolean::{output_expected_boolean, output_false, output_true}, + boolean::{output_expected_boolean, output_true}, get_error, get_output, parse_program, diff --git a/compiler/tests/field/mul.leo b/compiler/tests/field/mul.leo index 8223cc8bc8..5a383183e8 100644 --- a/compiler/tests/field/mul.leo +++ b/compiler/tests/field/mul.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) -> field { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/field/one.leo b/compiler/tests/field/one.leo index ff579fe6c8..d97c60e14f 100644 --- a/compiler/tests/field/one.leo +++ b/compiler/tests/field/one.leo @@ -1,3 +1,3 @@ function main() -> field { - return 1field + return 1field } \ No newline at end of file diff --git a/compiler/tests/field/sub.leo b/compiler/tests/field/sub.leo index 7c49a87da8..c304200040 100644 --- a/compiler/tests/field/sub.leo +++ b/compiler/tests/field/sub.leo @@ -1,3 +1,3 @@ function main(a: field, b: field) -> field { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/field/ternary.leo b/compiler/tests/field/ternary.leo index c85ac6a764..108ec6cdb1 100644 --- a/compiler/tests/field/ternary.leo +++ b/compiler/tests/field/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, f1: field, f2: field) -> field { - return if b ? f1 : f2 + return if b ? f1 : f2 } \ No newline at end of file diff --git a/compiler/tests/field/zero.leo b/compiler/tests/field/zero.leo index 7794442505..9a12e8aac0 100644 --- a/compiler/tests/field/zero.leo +++ b/compiler/tests/field/zero.leo @@ -1,3 +1,3 @@ function main() -> field { - return 0field + return 0field } \ No newline at end of file diff --git a/compiler/tests/function/empty.leo b/compiler/tests/function/empty.leo index b433132a2f..f06c976158 100644 --- a/compiler/tests/function/empty.leo +++ b/compiler/tests/function/empty.leo @@ -1,5 +1,5 @@ function empty() { } function main() { - empty(); + empty(); } \ No newline at end of file diff --git a/compiler/tests/function/iteration.leo b/compiler/tests/function/iteration.leo index ef967c2b0a..7a0229049f 100644 --- a/compiler/tests/function/iteration.leo +++ b/compiler/tests/function/iteration.leo @@ -1,13 +1,13 @@ function one() -> u32 { - return 1u32 + return 1u32 } function main() -> u32 { - let mut a = 0u32; + let mut a = 0u32; - for i in 0..10 { - a += one(); - } + for i in 0..10 { + a += one(); + } - return a + return a } \ No newline at end of file diff --git a/compiler/tests/function/multiple.leo b/compiler/tests/function/multiple.leo index 6f3ae01715..88baba4a3b 100644 --- a/compiler/tests/function/multiple.leo +++ b/compiler/tests/function/multiple.leo @@ -1,8 +1,8 @@ function tuple() -> (bool, bool) { - return (true, false) + return (true, false) } function main() -> (bool, bool) { - let (a, b) = tuple(); - return (a, b) + let (a, b) = tuple(); + return (a, b) } \ No newline at end of file diff --git a/compiler/tests/function/multiple_main.leo b/compiler/tests/function/multiple_main.leo index 4e00a8743c..c1e5d41276 100644 --- a/compiler/tests/function/multiple_main.leo +++ b/compiler/tests/function/multiple_main.leo @@ -1,3 +1,3 @@ function main() -> (bool, bool) { - return (true, false) + return (true, false) } \ No newline at end of file diff --git a/compiler/tests/function/repeated.leo b/compiler/tests/function/repeated.leo index 542f405a3a..238f6b1931 100644 --- a/compiler/tests/function/repeated.leo +++ b/compiler/tests/function/repeated.leo @@ -1,7 +1,7 @@ function one() -> bool { - return true + return true } function main() -> bool { - return one() && one() + return one() && one() } \ No newline at end of file diff --git a/compiler/tests/function/repeated_iteration.leo b/compiler/tests/function/repeated_iteration.leo index d667e9fc25..5db3b04df7 100644 --- a/compiler/tests/function/repeated_iteration.leo +++ b/compiler/tests/function/repeated_iteration.leo @@ -1,13 +1,13 @@ function iteration() -> u32 { - let mut a = 0u32; + let mut a = 0u32; - for i in 0..10 { - a += 1; - } + for i in 0..10 { + a += 1; + } - return a + return a } function main() -> u32 { - return iteration() + iteration() + return iteration() + iteration() } \ No newline at end of file diff --git a/compiler/tests/function/return.leo b/compiler/tests/function/return.leo index 6cb1dbcb72..a2ccc954c6 100644 --- a/compiler/tests/function/return.leo +++ b/compiler/tests/function/return.leo @@ -1,7 +1,7 @@ function one() -> u32 { - return 1u32 + return 1u32 } function main() -> u32 { - return one() + return one() } \ No newline at end of file diff --git a/compiler/tests/function/scope_fail.leo b/compiler/tests/function/scope_fail.leo index e25a0f1e6b..32777e9ebf 100644 --- a/compiler/tests/function/scope_fail.leo +++ b/compiler/tests/function/scope_fail.leo @@ -1,8 +1,8 @@ function foo() -> field { - return myGlobal + return myGlobal } function main() -> field { - const myGlobal = 42field; - return foo() + const myGlobal = 42field; + return foo() } \ No newline at end of file diff --git a/compiler/tests/function/undefined.leo b/compiler/tests/function/undefined.leo index 8274668d84..e1db3b9f09 100644 --- a/compiler/tests/function/undefined.leo +++ b/compiler/tests/function/undefined.leo @@ -1,3 +1,3 @@ function main() { - my_function(); + my_function(); } \ No newline at end of file diff --git a/compiler/tests/group/add.leo b/compiler/tests/group/add.leo index 28cbcd67b8..fe3839ba47 100644 --- a/compiler/tests/group/add.leo +++ b/compiler/tests/group/add.leo @@ -1,6 +1,6 @@ function main() -> group { - const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; - const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group; + const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; + const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group; - return point_1 + point_2 + return point_1 + point_2 } \ No newline at end of file diff --git a/compiler/tests/group/assert_eq_false.leo b/compiler/tests/group/assert_eq_false.leo index 5e130610aa..63d8d428d2 100644 --- a/compiler/tests/group/assert_eq_false.leo +++ b/compiler/tests/group/assert_eq_false.leo @@ -1,6 +1,6 @@ function main() { - const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; - const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group; + const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; + const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group; - assert_eq!(point_1, point_2); + assert_eq!(point_1, point_2); } \ No newline at end of file diff --git a/compiler/tests/group/assert_eq_true.leo b/compiler/tests/group/assert_eq_true.leo index fecce61611..91b1e560cd 100644 --- a/compiler/tests/group/assert_eq_true.leo +++ b/compiler/tests/group/assert_eq_true.leo @@ -1,6 +1,6 @@ function main() { - const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; - const point_2 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; + const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; + const point_2 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; - assert_eq!(point_1, point_2); + assert_eq!(point_1, point_2); } \ No newline at end of file diff --git a/compiler/tests/group/eq_false.leo b/compiler/tests/group/eq_false.leo index 004c44b731..8aea82b204 100644 --- a/compiler/tests/group/eq_false.leo +++ b/compiler/tests/group/eq_false.leo @@ -1,6 +1,6 @@ function main() -> bool { - const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; - const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group; + const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; + const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group; - return point_1 == point_2 + return point_1 == point_2 } \ No newline at end of file diff --git a/compiler/tests/group/eq_true.leo b/compiler/tests/group/eq_true.leo index 490c0e9432..7759c33fd5 100644 --- a/compiler/tests/group/eq_true.leo +++ b/compiler/tests/group/eq_true.leo @@ -1,6 +1,6 @@ function main() -> bool { - const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; - const point_2 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; + const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; + const point_2 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; - return point_1 == point_2 + return point_1 == point_2 } \ No newline at end of file diff --git a/compiler/tests/group/input.leo b/compiler/tests/group/input.leo index 8191078634..f19fb29b23 100644 --- a/compiler/tests/group/input.leo +++ b/compiler/tests/group/input.leo @@ -1,3 +1,3 @@ function main(g: group) -> group { - return g + return g } \ No newline at end of file diff --git a/compiler/tests/group/sub.leo b/compiler/tests/group/sub.leo index a1f95b5a3c..adf9a4542b 100644 --- a/compiler/tests/group/sub.leo +++ b/compiler/tests/group/sub.leo @@ -1,6 +1,6 @@ function main() -> group { - const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; - const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group; + const point_1 = (7374112779530666882856915975292384652154477718021969292781165691637980424078, 3435195339177955418892975564890903138308061187980579490487898366607011481796)group; + const point_2 = (1005842117974384149622370061042978581211342111653966059496918451529532134799, 79389132189982034519597104273449021362784864778548730890166152019533697186)group; - return point_1 - point_2 + return point_1 - point_2 } \ No newline at end of file diff --git a/compiler/tests/group/zero.leo b/compiler/tests/group/zero.leo index 789937bbad..298cf5fe2e 100644 --- a/compiler/tests/group/zero.leo +++ b/compiler/tests/group/zero.leo @@ -1,3 +1,3 @@ function main() -> group { - return 0group + return 0group } \ No newline at end of file diff --git a/compiler/tests/import/alias.leo b/compiler/tests/import/alias.leo index 8035ee6c76..9236d8f01f 100644 --- a/compiler/tests/import/alias.leo +++ b/compiler/tests/import/alias.leo @@ -1,5 +1,5 @@ import test_import.foo as bar; function main() -> u32 { - return bar() + return bar() } \ No newline at end of file diff --git a/compiler/tests/import/basic.leo b/compiler/tests/import/basic.leo index 8166710c7a..4aa4fa050e 100644 --- a/compiler/tests/import/basic.leo +++ b/compiler/tests/import/basic.leo @@ -1,5 +1,5 @@ import test_import.foo; function main() -> u32 { - return foo() + return foo() } \ No newline at end of file diff --git a/compiler/tests/import/multiple.leo b/compiler/tests/import/multiple.leo index ddf9093347..38b2c2e301 100644 --- a/compiler/tests/import/multiple.leo +++ b/compiler/tests/import/multiple.leo @@ -1,9 +1,9 @@ import test_import.( - Point, - foo + Point, + foo ); function main() -> u32 { - let p = Point { x: 1u32, y: 0u32 }; - return p.x + let p = Point { x: 1u32, y: 0u32 }; + return p.x } \ No newline at end of file diff --git a/compiler/tests/import/star.leo b/compiler/tests/import/star.leo index 113adc7088..ccc876600c 100644 --- a/compiler/tests/import/star.leo +++ b/compiler/tests/import/star.leo @@ -1,6 +1,6 @@ import test_import.*; function main() -> u32 { - let p = Point { x: 1u32, y: 0u32 }; - return foo() + let p = Point { x: 1u32, y: 0u32 }; + return foo() } \ No newline at end of file diff --git a/compiler/tests/inputs/main.leo b/compiler/tests/inputs/main.leo index b1ba0090ef..7e2a1c7e0c 100644 --- a/compiler/tests/inputs/main.leo +++ b/compiler/tests/inputs/main.leo @@ -1,3 +1,3 @@ function main(b: bool) -> bool { - return b + return b } \ No newline at end of file diff --git a/compiler/tests/inputs/main_multiple.leo b/compiler/tests/inputs/main_multiple.leo index 90c58d23d2..e2231f14bc 100644 --- a/compiler/tests/inputs/main_multiple.leo +++ b/compiler/tests/inputs/main_multiple.leo @@ -1,3 +1,3 @@ function main(a: bool, b: bool) -> bool { - return a || b + return a || b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/add.leo b/compiler/tests/integers/i128/add.leo index 9d6ceea8a3..1a90ea377d 100644 --- a/compiler/tests/integers/i128/add.leo +++ b/compiler/tests/integers/i128/add.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> i128 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/assert_eq.leo b/compiler/tests/integers/i128/assert_eq.leo index 2d50f08cdf..a6dc495a84 100644 --- a/compiler/tests/integers/i128/assert_eq.leo +++ b/compiler/tests/integers/i128/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/i128/div.leo b/compiler/tests/integers/i128/div.leo index 16f92be545..e2f9f2853e 100644 --- a/compiler/tests/integers/i128/div.leo +++ b/compiler/tests/integers/i128/div.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> i128 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/eq.leo b/compiler/tests/integers/i128/eq.leo index cdcbce828f..5681aa7263 100644 --- a/compiler/tests/integers/i128/eq.leo +++ b/compiler/tests/integers/i128/eq.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/ge.leo b/compiler/tests/integers/i128/ge.leo index 6d134a4668..05949082f4 100644 --- a/compiler/tests/integers/i128/ge.leo +++ b/compiler/tests/integers/i128/ge.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/gt.leo b/compiler/tests/integers/i128/gt.leo index a636e26031..5eedfa3ec0 100644 --- a/compiler/tests/integers/i128/gt.leo +++ b/compiler/tests/integers/i128/gt.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/input.leo b/compiler/tests/integers/i128/input.leo index 607901c4ef..aa49ca84f8 100644 --- a/compiler/tests/integers/i128/input.leo +++ b/compiler/tests/integers/i128/input.leo @@ -1,3 +1,3 @@ function main(x: i128) -> i128 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/i128/le.leo b/compiler/tests/integers/i128/le.leo index f1dcf57aa2..472e1f53ce 100644 --- a/compiler/tests/integers/i128/le.leo +++ b/compiler/tests/integers/i128/le.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/lt.leo b/compiler/tests/integers/i128/lt.leo index cc435a7693..610a51e55f 100644 --- a/compiler/tests/integers/i128/lt.leo +++ b/compiler/tests/integers/i128/lt.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/max.leo b/compiler/tests/integers/i128/max.leo index 78886944d9..06bf685187 100644 --- a/compiler/tests/integers/i128/max.leo +++ b/compiler/tests/integers/i128/max.leo @@ -1,3 +1,3 @@ function main() -> i128 { - return 170141183460469231731687303715884105727 + return 170141183460469231731687303715884105727 } \ No newline at end of file diff --git a/compiler/tests/integers/i128/min.leo b/compiler/tests/integers/i128/min.leo index 561b2fe366..1f90232344 100644 --- a/compiler/tests/integers/i128/min.leo +++ b/compiler/tests/integers/i128/min.leo @@ -1,3 +1,3 @@ function main() -> i128 { - return -170141183460469231731687303715884105728 + return -170141183460469231731687303715884105728 } \ No newline at end of file diff --git a/compiler/tests/integers/i128/mul.leo b/compiler/tests/integers/i128/mul.leo index 8fa04f0e29..1d2595ca16 100644 --- a/compiler/tests/integers/i128/mul.leo +++ b/compiler/tests/integers/i128/mul.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> i128 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/pow.leo b/compiler/tests/integers/i128/pow.leo index 7f94d84042..c98bdcfe0d 100644 --- a/compiler/tests/integers/i128/pow.leo +++ b/compiler/tests/integers/i128/pow.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> i128 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/sub.leo b/compiler/tests/integers/i128/sub.leo index c8d0906a67..87e617798f 100644 --- a/compiler/tests/integers/i128/sub.leo +++ b/compiler/tests/integers/i128/sub.leo @@ -1,3 +1,3 @@ function main(a: i128, b: i128) -> i128 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/i128/ternary.leo b/compiler/tests/integers/i128/ternary.leo index e566065f9d..cb1ff53c68 100644 --- a/compiler/tests/integers/i128/ternary.leo +++ b/compiler/tests/integers/i128/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: i128, y: i128) -> i128 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/i16/add.leo b/compiler/tests/integers/i16/add.leo index 9e16e43ee7..44486b97ee 100644 --- a/compiler/tests/integers/i16/add.leo +++ b/compiler/tests/integers/i16/add.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> i16 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/assert_eq.leo b/compiler/tests/integers/i16/assert_eq.leo index 4d86af7289..4bc5fffcad 100644 --- a/compiler/tests/integers/i16/assert_eq.leo +++ b/compiler/tests/integers/i16/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/i16/div.leo b/compiler/tests/integers/i16/div.leo index 829e3774de..ea4d4ecded 100644 --- a/compiler/tests/integers/i16/div.leo +++ b/compiler/tests/integers/i16/div.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> i16 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/eq.leo b/compiler/tests/integers/i16/eq.leo index dfc367b414..1ea29bd65e 100644 --- a/compiler/tests/integers/i16/eq.leo +++ b/compiler/tests/integers/i16/eq.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/ge.leo b/compiler/tests/integers/i16/ge.leo index 2f8e1f7662..51bb45b725 100644 --- a/compiler/tests/integers/i16/ge.leo +++ b/compiler/tests/integers/i16/ge.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/gt.leo b/compiler/tests/integers/i16/gt.leo index 2667f2029c..2a6eeac47a 100644 --- a/compiler/tests/integers/i16/gt.leo +++ b/compiler/tests/integers/i16/gt.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/input.leo b/compiler/tests/integers/i16/input.leo index c9277c9df4..c4cb048ff6 100644 --- a/compiler/tests/integers/i16/input.leo +++ b/compiler/tests/integers/i16/input.leo @@ -1,3 +1,3 @@ function main(x: i16) -> i16 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/i16/le.leo b/compiler/tests/integers/i16/le.leo index bc5422bdbe..cd6d0eb87b 100644 --- a/compiler/tests/integers/i16/le.leo +++ b/compiler/tests/integers/i16/le.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/lt.leo b/compiler/tests/integers/i16/lt.leo index 57923d23ee..cfdfd24bcb 100644 --- a/compiler/tests/integers/i16/lt.leo +++ b/compiler/tests/integers/i16/lt.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/max.leo b/compiler/tests/integers/i16/max.leo index d065fba813..df19a40dd2 100644 --- a/compiler/tests/integers/i16/max.leo +++ b/compiler/tests/integers/i16/max.leo @@ -1,3 +1,3 @@ function main() -> i16 { - return 32767 + return 32767 } \ No newline at end of file diff --git a/compiler/tests/integers/i16/min.leo b/compiler/tests/integers/i16/min.leo index 42911c52aa..3d5949f073 100644 --- a/compiler/tests/integers/i16/min.leo +++ b/compiler/tests/integers/i16/min.leo @@ -1,3 +1,3 @@ function main() -> i16 { - return -32768 + return -32768 } \ No newline at end of file diff --git a/compiler/tests/integers/i16/mul.leo b/compiler/tests/integers/i16/mul.leo index bd52e02f34..ce0eb504fc 100644 --- a/compiler/tests/integers/i16/mul.leo +++ b/compiler/tests/integers/i16/mul.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> i16 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/pow.leo b/compiler/tests/integers/i16/pow.leo index 9859121160..ca18827873 100644 --- a/compiler/tests/integers/i16/pow.leo +++ b/compiler/tests/integers/i16/pow.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> i16 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/sub.leo b/compiler/tests/integers/i16/sub.leo index 43a037e18f..608aac1793 100644 --- a/compiler/tests/integers/i16/sub.leo +++ b/compiler/tests/integers/i16/sub.leo @@ -1,3 +1,3 @@ function main(a: i16, b: i16) -> i16 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/i16/ternary.leo b/compiler/tests/integers/i16/ternary.leo index c8b5e7ea53..21d92e0818 100644 --- a/compiler/tests/integers/i16/ternary.leo +++ b/compiler/tests/integers/i16/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: i16, y: i16) -> i16 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/i32/add.leo b/compiler/tests/integers/i32/add.leo index 18a3826571..9c7e8f6433 100644 --- a/compiler/tests/integers/i32/add.leo +++ b/compiler/tests/integers/i32/add.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> i32 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/assert_eq.leo b/compiler/tests/integers/i32/assert_eq.leo index 8981df48c3..326cca12b6 100644 --- a/compiler/tests/integers/i32/assert_eq.leo +++ b/compiler/tests/integers/i32/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/i32/div.leo b/compiler/tests/integers/i32/div.leo index b86b6a0567..3b1392a921 100644 --- a/compiler/tests/integers/i32/div.leo +++ b/compiler/tests/integers/i32/div.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> i32 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/eq.leo b/compiler/tests/integers/i32/eq.leo index a92a53fb09..b3284a07d0 100644 --- a/compiler/tests/integers/i32/eq.leo +++ b/compiler/tests/integers/i32/eq.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/ge.leo b/compiler/tests/integers/i32/ge.leo index 0587fbb02d..073955b53f 100644 --- a/compiler/tests/integers/i32/ge.leo +++ b/compiler/tests/integers/i32/ge.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/gt.leo b/compiler/tests/integers/i32/gt.leo index 0425fc8c81..acf027eade 100644 --- a/compiler/tests/integers/i32/gt.leo +++ b/compiler/tests/integers/i32/gt.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/input.leo b/compiler/tests/integers/i32/input.leo index 3f3f06dfc5..ea6d7f9d30 100644 --- a/compiler/tests/integers/i32/input.leo +++ b/compiler/tests/integers/i32/input.leo @@ -1,3 +1,3 @@ function main(x: i32) -> i32 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/i32/le.leo b/compiler/tests/integers/i32/le.leo index 1ee0a68839..5f2615cd0a 100644 --- a/compiler/tests/integers/i32/le.leo +++ b/compiler/tests/integers/i32/le.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/lt.leo b/compiler/tests/integers/i32/lt.leo index 1bb461b028..aea55410fa 100644 --- a/compiler/tests/integers/i32/lt.leo +++ b/compiler/tests/integers/i32/lt.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/max.leo b/compiler/tests/integers/i32/max.leo index af6d07a72f..d5e3a94dd4 100644 --- a/compiler/tests/integers/i32/max.leo +++ b/compiler/tests/integers/i32/max.leo @@ -1,3 +1,3 @@ function main() -> i32 { - return 2147483647 + return 2147483647 } \ No newline at end of file diff --git a/compiler/tests/integers/i32/min.leo b/compiler/tests/integers/i32/min.leo index 0638ed024e..1625435322 100644 --- a/compiler/tests/integers/i32/min.leo +++ b/compiler/tests/integers/i32/min.leo @@ -1,3 +1,3 @@ function main() -> i32 { - return -2147483648 + return -2147483648 } \ No newline at end of file diff --git a/compiler/tests/integers/i32/mul.leo b/compiler/tests/integers/i32/mul.leo index bb79535b60..8ab0c36205 100644 --- a/compiler/tests/integers/i32/mul.leo +++ b/compiler/tests/integers/i32/mul.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> i32 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/pow.leo b/compiler/tests/integers/i32/pow.leo index 726ac0881b..790da91ead 100644 --- a/compiler/tests/integers/i32/pow.leo +++ b/compiler/tests/integers/i32/pow.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> i32 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/sub.leo b/compiler/tests/integers/i32/sub.leo index dd7a99431c..c446484173 100644 --- a/compiler/tests/integers/i32/sub.leo +++ b/compiler/tests/integers/i32/sub.leo @@ -1,3 +1,3 @@ function main(a: i32, b: i32) -> i32 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/i32/ternary.leo b/compiler/tests/integers/i32/ternary.leo index e5901b40e4..fbff679a00 100644 --- a/compiler/tests/integers/i32/ternary.leo +++ b/compiler/tests/integers/i32/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: i32, y: i32) -> i32 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/i64/add.leo b/compiler/tests/integers/i64/add.leo index bfa486e639..67d83b4193 100644 --- a/compiler/tests/integers/i64/add.leo +++ b/compiler/tests/integers/i64/add.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> i64 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/assert_eq.leo b/compiler/tests/integers/i64/assert_eq.leo index 8488ef8eb8..a9e7b44750 100644 --- a/compiler/tests/integers/i64/assert_eq.leo +++ b/compiler/tests/integers/i64/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/i64/div.leo b/compiler/tests/integers/i64/div.leo index 3ab271bf0a..e61e6f0850 100644 --- a/compiler/tests/integers/i64/div.leo +++ b/compiler/tests/integers/i64/div.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> i64 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/eq.leo b/compiler/tests/integers/i64/eq.leo index bbbbfaebd7..af2017d361 100644 --- a/compiler/tests/integers/i64/eq.leo +++ b/compiler/tests/integers/i64/eq.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/ge.leo b/compiler/tests/integers/i64/ge.leo index 9cc166336c..cbe7fe0635 100644 --- a/compiler/tests/integers/i64/ge.leo +++ b/compiler/tests/integers/i64/ge.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/gt.leo b/compiler/tests/integers/i64/gt.leo index b3e40b4da7..77286d5c82 100644 --- a/compiler/tests/integers/i64/gt.leo +++ b/compiler/tests/integers/i64/gt.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/input.leo b/compiler/tests/integers/i64/input.leo index 0df21aab02..b9e90054a6 100644 --- a/compiler/tests/integers/i64/input.leo +++ b/compiler/tests/integers/i64/input.leo @@ -1,3 +1,3 @@ function main(x: i64) -> i64 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/i64/le.leo b/compiler/tests/integers/i64/le.leo index ada4d64619..e2d31dcac5 100644 --- a/compiler/tests/integers/i64/le.leo +++ b/compiler/tests/integers/i64/le.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/lt.leo b/compiler/tests/integers/i64/lt.leo index 782da7affe..c46123fc42 100644 --- a/compiler/tests/integers/i64/lt.leo +++ b/compiler/tests/integers/i64/lt.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/max.leo b/compiler/tests/integers/i64/max.leo index 938e65bce1..0173b80e94 100644 --- a/compiler/tests/integers/i64/max.leo +++ b/compiler/tests/integers/i64/max.leo @@ -1,3 +1,3 @@ function main() -> i64 { - return 9223372036854775807 + return 9223372036854775807 } \ No newline at end of file diff --git a/compiler/tests/integers/i64/min.leo b/compiler/tests/integers/i64/min.leo index c8f3e38580..3a1817a736 100644 --- a/compiler/tests/integers/i64/min.leo +++ b/compiler/tests/integers/i64/min.leo @@ -1,3 +1,3 @@ function main() -> i64 { - return -9223372036854775808 + return -9223372036854775808 } \ No newline at end of file diff --git a/compiler/tests/integers/i64/mul.leo b/compiler/tests/integers/i64/mul.leo index 6740cd737a..f9d415009b 100644 --- a/compiler/tests/integers/i64/mul.leo +++ b/compiler/tests/integers/i64/mul.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> i64 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/pow.leo b/compiler/tests/integers/i64/pow.leo index 871ba7865c..efad660c04 100644 --- a/compiler/tests/integers/i64/pow.leo +++ b/compiler/tests/integers/i64/pow.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> i64 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/sub.leo b/compiler/tests/integers/i64/sub.leo index 6c8e074071..bc5be06b7a 100644 --- a/compiler/tests/integers/i64/sub.leo +++ b/compiler/tests/integers/i64/sub.leo @@ -1,3 +1,3 @@ function main(a: i64, b: i64) -> i64 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/i64/ternary.leo b/compiler/tests/integers/i64/ternary.leo index 0710cc8490..dc7bf1f81e 100644 --- a/compiler/tests/integers/i64/ternary.leo +++ b/compiler/tests/integers/i64/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: i64, y: i64) -> i64 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/i8/add.leo b/compiler/tests/integers/i8/add.leo index c824a1aa3a..47cd676483 100644 --- a/compiler/tests/integers/i8/add.leo +++ b/compiler/tests/integers/i8/add.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> i8 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/assert_eq.leo b/compiler/tests/integers/i8/assert_eq.leo index d8c664cb86..c397ca8c07 100644 --- a/compiler/tests/integers/i8/assert_eq.leo +++ b/compiler/tests/integers/i8/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/i8/div.leo b/compiler/tests/integers/i8/div.leo index be32185faa..7382b985e9 100644 --- a/compiler/tests/integers/i8/div.leo +++ b/compiler/tests/integers/i8/div.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> i8 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/eq.leo b/compiler/tests/integers/i8/eq.leo index 93be157efa..2b8c3c11bd 100644 --- a/compiler/tests/integers/i8/eq.leo +++ b/compiler/tests/integers/i8/eq.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/ge.leo b/compiler/tests/integers/i8/ge.leo index c95bb677f6..69d9808a09 100644 --- a/compiler/tests/integers/i8/ge.leo +++ b/compiler/tests/integers/i8/ge.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/gt.leo b/compiler/tests/integers/i8/gt.leo index eed5a52640..6346b285cd 100644 --- a/compiler/tests/integers/i8/gt.leo +++ b/compiler/tests/integers/i8/gt.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/input.leo b/compiler/tests/integers/i8/input.leo index a17074bdaf..ae50705338 100644 --- a/compiler/tests/integers/i8/input.leo +++ b/compiler/tests/integers/i8/input.leo @@ -1,3 +1,3 @@ function main(x: i8) -> i8 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/i8/le.leo b/compiler/tests/integers/i8/le.leo index 3bfe8f9512..791e64d793 100644 --- a/compiler/tests/integers/i8/le.leo +++ b/compiler/tests/integers/i8/le.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/lt.leo b/compiler/tests/integers/i8/lt.leo index a69017a7a4..00c6e61324 100644 --- a/compiler/tests/integers/i8/lt.leo +++ b/compiler/tests/integers/i8/lt.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/max.leo b/compiler/tests/integers/i8/max.leo index 693597f065..ed57f26a33 100644 --- a/compiler/tests/integers/i8/max.leo +++ b/compiler/tests/integers/i8/max.leo @@ -1,3 +1,3 @@ function main() -> i8 { - return 127 + return 127 } \ No newline at end of file diff --git a/compiler/tests/integers/i8/min.leo b/compiler/tests/integers/i8/min.leo index 3c6b21f28a..d334e0ad4c 100644 --- a/compiler/tests/integers/i8/min.leo +++ b/compiler/tests/integers/i8/min.leo @@ -1,3 +1,3 @@ function main() -> i8 { - return -128 + return -128 } \ No newline at end of file diff --git a/compiler/tests/integers/i8/mul.leo b/compiler/tests/integers/i8/mul.leo index f95fcd9c0b..88c4fa5b5d 100644 --- a/compiler/tests/integers/i8/mul.leo +++ b/compiler/tests/integers/i8/mul.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> i8 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/pow.leo b/compiler/tests/integers/i8/pow.leo index 9f0723db7b..68837dda70 100644 --- a/compiler/tests/integers/i8/pow.leo +++ b/compiler/tests/integers/i8/pow.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> i8 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/sub.leo b/compiler/tests/integers/i8/sub.leo index eb3fec24b6..234a4f4fee 100644 --- a/compiler/tests/integers/i8/sub.leo +++ b/compiler/tests/integers/i8/sub.leo @@ -1,3 +1,3 @@ function main(a: i8, b: i8) -> i8 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/i8/ternary.leo b/compiler/tests/integers/i8/ternary.leo index c7a368e366..68bcbd1a03 100644 --- a/compiler/tests/integers/i8/ternary.leo +++ b/compiler/tests/integers/i8/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: i8, y: i8) -> i8 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/u128/add.leo b/compiler/tests/integers/u128/add.leo index 276fa2acd5..7f35c07751 100644 --- a/compiler/tests/integers/u128/add.leo +++ b/compiler/tests/integers/u128/add.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> u128 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/assert_eq.leo b/compiler/tests/integers/u128/assert_eq.leo index 5648ca37d3..9ee2ff0f12 100644 --- a/compiler/tests/integers/u128/assert_eq.leo +++ b/compiler/tests/integers/u128/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/u128/div.leo b/compiler/tests/integers/u128/div.leo index b016441bb4..a9c65e885c 100644 --- a/compiler/tests/integers/u128/div.leo +++ b/compiler/tests/integers/u128/div.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> u128 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/eq.leo b/compiler/tests/integers/u128/eq.leo index 3d11fb9a62..c1fd10e66b 100644 --- a/compiler/tests/integers/u128/eq.leo +++ b/compiler/tests/integers/u128/eq.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/ge.leo b/compiler/tests/integers/u128/ge.leo index 8e5b955ca4..8488e49b55 100644 --- a/compiler/tests/integers/u128/ge.leo +++ b/compiler/tests/integers/u128/ge.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/gt.leo b/compiler/tests/integers/u128/gt.leo index 2bb088ae4c..d67b008595 100644 --- a/compiler/tests/integers/u128/gt.leo +++ b/compiler/tests/integers/u128/gt.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/input.leo b/compiler/tests/integers/u128/input.leo index 0ca95d5844..4424cccda9 100644 --- a/compiler/tests/integers/u128/input.leo +++ b/compiler/tests/integers/u128/input.leo @@ -1,3 +1,3 @@ function main(x: u128) -> u128 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/u128/le.leo b/compiler/tests/integers/u128/le.leo index e987cd22ac..cfc4fb9d7c 100644 --- a/compiler/tests/integers/u128/le.leo +++ b/compiler/tests/integers/u128/le.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/lt.leo b/compiler/tests/integers/u128/lt.leo index 44c7682712..35fdd5dd6b 100644 --- a/compiler/tests/integers/u128/lt.leo +++ b/compiler/tests/integers/u128/lt.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/max.leo b/compiler/tests/integers/u128/max.leo index 4e80deb7ff..91965c2bc4 100644 --- a/compiler/tests/integers/u128/max.leo +++ b/compiler/tests/integers/u128/max.leo @@ -1,3 +1,3 @@ function main() -> u128 { - return 340282366920938463463374607431768211455 + return 340282366920938463463374607431768211455 } \ No newline at end of file diff --git a/compiler/tests/integers/u128/min.leo b/compiler/tests/integers/u128/min.leo index 871132de06..cd626f2125 100644 --- a/compiler/tests/integers/u128/min.leo +++ b/compiler/tests/integers/u128/min.leo @@ -1,3 +1,3 @@ function main() -> u128 { - return 0 + return 0 } \ No newline at end of file diff --git a/compiler/tests/integers/u128/mul.leo b/compiler/tests/integers/u128/mul.leo index f611cc3e56..69f5787c02 100644 --- a/compiler/tests/integers/u128/mul.leo +++ b/compiler/tests/integers/u128/mul.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> u128 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/pow.leo b/compiler/tests/integers/u128/pow.leo index ce84e423f6..b18fad1df3 100644 --- a/compiler/tests/integers/u128/pow.leo +++ b/compiler/tests/integers/u128/pow.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> u128 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/sub.leo b/compiler/tests/integers/u128/sub.leo index bc9ea56a86..408ff755ff 100644 --- a/compiler/tests/integers/u128/sub.leo +++ b/compiler/tests/integers/u128/sub.leo @@ -1,3 +1,3 @@ function main(a: u128, b: u128) -> u128 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/u128/ternary.leo b/compiler/tests/integers/u128/ternary.leo index 4a41327776..2ebc800648 100644 --- a/compiler/tests/integers/u128/ternary.leo +++ b/compiler/tests/integers/u128/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: u128, y: u128) -> u128 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/u16/add.leo b/compiler/tests/integers/u16/add.leo index eca13e6b46..93b807afda 100644 --- a/compiler/tests/integers/u16/add.leo +++ b/compiler/tests/integers/u16/add.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> u16 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/assert_eq.leo b/compiler/tests/integers/u16/assert_eq.leo index 719cfe789c..38f850139c 100644 --- a/compiler/tests/integers/u16/assert_eq.leo +++ b/compiler/tests/integers/u16/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/u16/div.leo b/compiler/tests/integers/u16/div.leo index 1f210c1373..1290856935 100644 --- a/compiler/tests/integers/u16/div.leo +++ b/compiler/tests/integers/u16/div.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> u16 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/eq.leo b/compiler/tests/integers/u16/eq.leo index 2709c5f52b..bb643aca0b 100644 --- a/compiler/tests/integers/u16/eq.leo +++ b/compiler/tests/integers/u16/eq.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/ge.leo b/compiler/tests/integers/u16/ge.leo index 915cf30ee3..4f4d2b8a79 100644 --- a/compiler/tests/integers/u16/ge.leo +++ b/compiler/tests/integers/u16/ge.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/gt.leo b/compiler/tests/integers/u16/gt.leo index c092d3ef1b..4c234b4c9a 100644 --- a/compiler/tests/integers/u16/gt.leo +++ b/compiler/tests/integers/u16/gt.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/input.leo b/compiler/tests/integers/u16/input.leo index f2a19fd7ee..2a4801074f 100644 --- a/compiler/tests/integers/u16/input.leo +++ b/compiler/tests/integers/u16/input.leo @@ -1,3 +1,3 @@ function main(x: u16) -> u16 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/u16/le.leo b/compiler/tests/integers/u16/le.leo index 98a29babb0..b463e929a4 100644 --- a/compiler/tests/integers/u16/le.leo +++ b/compiler/tests/integers/u16/le.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/lt.leo b/compiler/tests/integers/u16/lt.leo index cb59ad5fda..05cb9b54b5 100644 --- a/compiler/tests/integers/u16/lt.leo +++ b/compiler/tests/integers/u16/lt.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/max.leo b/compiler/tests/integers/u16/max.leo index a713f34abe..2e87cbac0e 100644 --- a/compiler/tests/integers/u16/max.leo +++ b/compiler/tests/integers/u16/max.leo @@ -1,3 +1,3 @@ function main() -> u16 { - return 65535 + return 65535 } \ No newline at end of file diff --git a/compiler/tests/integers/u16/min.leo b/compiler/tests/integers/u16/min.leo index 41dbdf8422..d3f9ed6824 100644 --- a/compiler/tests/integers/u16/min.leo +++ b/compiler/tests/integers/u16/min.leo @@ -1,3 +1,3 @@ function main() -> u16 { - return 0 + return 0 } \ No newline at end of file diff --git a/compiler/tests/integers/u16/mul.leo b/compiler/tests/integers/u16/mul.leo index 846d186653..4eba72e95e 100644 --- a/compiler/tests/integers/u16/mul.leo +++ b/compiler/tests/integers/u16/mul.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> u16 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/pow.leo b/compiler/tests/integers/u16/pow.leo index 1d938456e5..d772278ddc 100644 --- a/compiler/tests/integers/u16/pow.leo +++ b/compiler/tests/integers/u16/pow.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> u16 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/sub.leo b/compiler/tests/integers/u16/sub.leo index 07d27a8c12..6c3f358a67 100644 --- a/compiler/tests/integers/u16/sub.leo +++ b/compiler/tests/integers/u16/sub.leo @@ -1,3 +1,3 @@ function main(a: u16, b: u16) -> u16 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/u16/ternary.leo b/compiler/tests/integers/u16/ternary.leo index cf0f66b05d..2c45a21b4f 100644 --- a/compiler/tests/integers/u16/ternary.leo +++ b/compiler/tests/integers/u16/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: u16, y: u16) -> u16 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/u32/add.leo b/compiler/tests/integers/u32/add.leo index 853227e557..63b288881e 100644 --- a/compiler/tests/integers/u32/add.leo +++ b/compiler/tests/integers/u32/add.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> u32 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/assert_eq.leo b/compiler/tests/integers/u32/assert_eq.leo index 768816d9c8..b95ae3bef0 100644 --- a/compiler/tests/integers/u32/assert_eq.leo +++ b/compiler/tests/integers/u32/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/u32/div.leo b/compiler/tests/integers/u32/div.leo index e75a9e425e..fe9f4b4c30 100644 --- a/compiler/tests/integers/u32/div.leo +++ b/compiler/tests/integers/u32/div.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> u32 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/eq.leo b/compiler/tests/integers/u32/eq.leo index 65c5501219..5a4810ded2 100644 --- a/compiler/tests/integers/u32/eq.leo +++ b/compiler/tests/integers/u32/eq.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/ge.leo b/compiler/tests/integers/u32/ge.leo index d08a3e8708..d0fdfe346d 100644 --- a/compiler/tests/integers/u32/ge.leo +++ b/compiler/tests/integers/u32/ge.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/gt.leo b/compiler/tests/integers/u32/gt.leo index abd9832804..87aef82e4a 100644 --- a/compiler/tests/integers/u32/gt.leo +++ b/compiler/tests/integers/u32/gt.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/input.leo b/compiler/tests/integers/u32/input.leo index 904b6ca60a..1d6d071c2c 100644 --- a/compiler/tests/integers/u32/input.leo +++ b/compiler/tests/integers/u32/input.leo @@ -1,3 +1,3 @@ function main(x: u32) -> u32 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/u32/le.leo b/compiler/tests/integers/u32/le.leo index c16b861679..229ecdf340 100644 --- a/compiler/tests/integers/u32/le.leo +++ b/compiler/tests/integers/u32/le.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/lt.leo b/compiler/tests/integers/u32/lt.leo index 3d06c38456..31093aaa28 100644 --- a/compiler/tests/integers/u32/lt.leo +++ b/compiler/tests/integers/u32/lt.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/max.leo b/compiler/tests/integers/u32/max.leo index c15a4852e6..b08a1b5ef7 100644 --- a/compiler/tests/integers/u32/max.leo +++ b/compiler/tests/integers/u32/max.leo @@ -1,3 +1,3 @@ function main() -> u32 { - return 4294967295 + return 4294967295 } \ No newline at end of file diff --git a/compiler/tests/integers/u32/min.leo b/compiler/tests/integers/u32/min.leo index db6446d5c5..2bda23cdc5 100644 --- a/compiler/tests/integers/u32/min.leo +++ b/compiler/tests/integers/u32/min.leo @@ -1,3 +1,3 @@ function main() -> u32 { - return 0 + return 0 } \ No newline at end of file diff --git a/compiler/tests/integers/u32/mul.leo b/compiler/tests/integers/u32/mul.leo index 14e6ad10a9..c549375c63 100644 --- a/compiler/tests/integers/u32/mul.leo +++ b/compiler/tests/integers/u32/mul.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> u32 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/pow.leo b/compiler/tests/integers/u32/pow.leo index 5bf0811693..6a9b24e424 100644 --- a/compiler/tests/integers/u32/pow.leo +++ b/compiler/tests/integers/u32/pow.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> u32 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/sub.leo b/compiler/tests/integers/u32/sub.leo index d95eceea1e..aa430d5b46 100644 --- a/compiler/tests/integers/u32/sub.leo +++ b/compiler/tests/integers/u32/sub.leo @@ -1,3 +1,3 @@ function main(a: u32, b: u32) -> u32 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/u32/ternary.leo b/compiler/tests/integers/u32/ternary.leo index ffbeec8a3b..cd957c2a38 100644 --- a/compiler/tests/integers/u32/ternary.leo +++ b/compiler/tests/integers/u32/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: u32, y: u32) -> u32 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/u64/add.leo b/compiler/tests/integers/u64/add.leo index 6101f0c9fe..d7850737fe 100644 --- a/compiler/tests/integers/u64/add.leo +++ b/compiler/tests/integers/u64/add.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> u64 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/assert_eq.leo b/compiler/tests/integers/u64/assert_eq.leo index 0858ffbc54..5ea21a4097 100644 --- a/compiler/tests/integers/u64/assert_eq.leo +++ b/compiler/tests/integers/u64/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/u64/div.leo b/compiler/tests/integers/u64/div.leo index a0b39d3f13..3ee457c9f6 100644 --- a/compiler/tests/integers/u64/div.leo +++ b/compiler/tests/integers/u64/div.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> u64 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/eq.leo b/compiler/tests/integers/u64/eq.leo index 3e4d311918..658fc442fa 100644 --- a/compiler/tests/integers/u64/eq.leo +++ b/compiler/tests/integers/u64/eq.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/ge.leo b/compiler/tests/integers/u64/ge.leo index 0997be8f64..696501c52f 100644 --- a/compiler/tests/integers/u64/ge.leo +++ b/compiler/tests/integers/u64/ge.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/gt.leo b/compiler/tests/integers/u64/gt.leo index b894ff2e99..5aa797aba6 100644 --- a/compiler/tests/integers/u64/gt.leo +++ b/compiler/tests/integers/u64/gt.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/input.leo b/compiler/tests/integers/u64/input.leo index b570511bf3..b12c15e14f 100644 --- a/compiler/tests/integers/u64/input.leo +++ b/compiler/tests/integers/u64/input.leo @@ -1,3 +1,3 @@ function main(x: u64) -> u64 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/u64/le.leo b/compiler/tests/integers/u64/le.leo index 2c89a0c3c7..a9dfdf1ed1 100644 --- a/compiler/tests/integers/u64/le.leo +++ b/compiler/tests/integers/u64/le.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/lt.leo b/compiler/tests/integers/u64/lt.leo index 58a86b078d..a50a8f8ee3 100644 --- a/compiler/tests/integers/u64/lt.leo +++ b/compiler/tests/integers/u64/lt.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/max.leo b/compiler/tests/integers/u64/max.leo index 35ddbbb5fb..004816a9ce 100644 --- a/compiler/tests/integers/u64/max.leo +++ b/compiler/tests/integers/u64/max.leo @@ -1,3 +1,3 @@ function main() -> u64 { - return 18446744073709551615 + return 18446744073709551615 } \ No newline at end of file diff --git a/compiler/tests/integers/u64/min.leo b/compiler/tests/integers/u64/min.leo index caeef76946..20e2cf3518 100644 --- a/compiler/tests/integers/u64/min.leo +++ b/compiler/tests/integers/u64/min.leo @@ -1,3 +1,3 @@ function main() -> u64 { - return 0 + return 0 } \ No newline at end of file diff --git a/compiler/tests/integers/u64/mul.leo b/compiler/tests/integers/u64/mul.leo index 06d64a6507..fb64709694 100644 --- a/compiler/tests/integers/u64/mul.leo +++ b/compiler/tests/integers/u64/mul.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> u64 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/pow.leo b/compiler/tests/integers/u64/pow.leo index 4b86849892..a2267f64e1 100644 --- a/compiler/tests/integers/u64/pow.leo +++ b/compiler/tests/integers/u64/pow.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> u64 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/sub.leo b/compiler/tests/integers/u64/sub.leo index 6efe830937..55479de911 100644 --- a/compiler/tests/integers/u64/sub.leo +++ b/compiler/tests/integers/u64/sub.leo @@ -1,3 +1,3 @@ function main(a: u64, b: u64) -> u64 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/u64/ternary.leo b/compiler/tests/integers/u64/ternary.leo index 99923eb1fd..befa05ef7a 100644 --- a/compiler/tests/integers/u64/ternary.leo +++ b/compiler/tests/integers/u64/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: u64, y: u64) -> u64 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/integers/u8/add.leo b/compiler/tests/integers/u8/add.leo index 2ac7260c91..297820fb7e 100644 --- a/compiler/tests/integers/u8/add.leo +++ b/compiler/tests/integers/u8/add.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> u8 { - return a + b + return a + b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/assert_eq.leo b/compiler/tests/integers/u8/assert_eq.leo index c97b89b054..c4ffe7b4a0 100644 --- a/compiler/tests/integers/u8/assert_eq.leo +++ b/compiler/tests/integers/u8/assert_eq.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) { - assert_eq!(a, b); + assert_eq!(a, b); } \ No newline at end of file diff --git a/compiler/tests/integers/u8/div.leo b/compiler/tests/integers/u8/div.leo index 1592968545..97a6546b8f 100644 --- a/compiler/tests/integers/u8/div.leo +++ b/compiler/tests/integers/u8/div.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> u8 { - return a / b + return a / b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/eq.leo b/compiler/tests/integers/u8/eq.leo index a9b0a57d5b..0a8bd1fd8d 100644 --- a/compiler/tests/integers/u8/eq.leo +++ b/compiler/tests/integers/u8/eq.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> bool { - return a == b + return a == b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/ge.leo b/compiler/tests/integers/u8/ge.leo index eb0abe5666..8e00f7575a 100644 --- a/compiler/tests/integers/u8/ge.leo +++ b/compiler/tests/integers/u8/ge.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> bool { - return a >= b + return a >= b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/gt.leo b/compiler/tests/integers/u8/gt.leo index 058bedfced..5af71ef04d 100644 --- a/compiler/tests/integers/u8/gt.leo +++ b/compiler/tests/integers/u8/gt.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> bool { - return a > b + return a > b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/input.leo b/compiler/tests/integers/u8/input.leo index d962c67be9..28d6f3e80e 100644 --- a/compiler/tests/integers/u8/input.leo +++ b/compiler/tests/integers/u8/input.leo @@ -1,3 +1,3 @@ function main(x: u8) -> u8 { - return x + return x } \ No newline at end of file diff --git a/compiler/tests/integers/u8/le.leo b/compiler/tests/integers/u8/le.leo index d3a4631982..bfe459dcd1 100644 --- a/compiler/tests/integers/u8/le.leo +++ b/compiler/tests/integers/u8/le.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> bool { - return a <= b + return a <= b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/lt.leo b/compiler/tests/integers/u8/lt.leo index 1f92818dd6..1434643dde 100644 --- a/compiler/tests/integers/u8/lt.leo +++ b/compiler/tests/integers/u8/lt.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> bool { - return a < b + return a < b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/max.leo b/compiler/tests/integers/u8/max.leo index 9ffefc95fa..06aebc3936 100644 --- a/compiler/tests/integers/u8/max.leo +++ b/compiler/tests/integers/u8/max.leo @@ -1,3 +1,3 @@ function main() -> u8 { - return 255 + return 255 } \ No newline at end of file diff --git a/compiler/tests/integers/u8/min.leo b/compiler/tests/integers/u8/min.leo index 6e680d5c52..fe2a219c54 100644 --- a/compiler/tests/integers/u8/min.leo +++ b/compiler/tests/integers/u8/min.leo @@ -1,3 +1,3 @@ function main() -> u8 { - return 0 + return 0 } \ No newline at end of file diff --git a/compiler/tests/integers/u8/mul.leo b/compiler/tests/integers/u8/mul.leo index 5cfc59387c..51d11c8b58 100644 --- a/compiler/tests/integers/u8/mul.leo +++ b/compiler/tests/integers/u8/mul.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> u8 { - return a * b + return a * b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/pow.leo b/compiler/tests/integers/u8/pow.leo index 9430e1b931..2e4c4fef95 100644 --- a/compiler/tests/integers/u8/pow.leo +++ b/compiler/tests/integers/u8/pow.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> u8 { - return a ** b + return a ** b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/sub.leo b/compiler/tests/integers/u8/sub.leo index e8b28396b4..e1420f05bb 100644 --- a/compiler/tests/integers/u8/sub.leo +++ b/compiler/tests/integers/u8/sub.leo @@ -1,3 +1,3 @@ function main(a: u8, b: u8) -> u8 { - return a - b + return a - b } \ No newline at end of file diff --git a/compiler/tests/integers/u8/ternary.leo b/compiler/tests/integers/u8/ternary.leo index 0a9db649c5..1a4ca0ba5f 100644 --- a/compiler/tests/integers/u8/ternary.leo +++ b/compiler/tests/integers/u8/ternary.leo @@ -1,3 +1,3 @@ function main(b: bool, x: u8, y: u8) -> u8 { - return if b ? x : y + return if b ? x : y } \ No newline at end of file diff --git a/compiler/tests/mutability/array.leo b/compiler/tests/mutability/array.leo index 7475b636ab..1d51c15271 100644 --- a/compiler/tests/mutability/array.leo +++ b/compiler/tests/mutability/array.leo @@ -1,5 +1,5 @@ // Arrays are immutable by default. function main() { - let a = [1u32]; - a[0] = 0; + let a = [1u32]; + a[0] = 0; } \ No newline at end of file diff --git a/compiler/tests/mutability/array_mut.leo b/compiler/tests/mutability/array_mut.leo index 3f01b1e1ac..768f8fb092 100644 --- a/compiler/tests/mutability/array_mut.leo +++ b/compiler/tests/mutability/array_mut.leo @@ -1,7 +1,7 @@ // Adding the `mut` keyword makes an array variable mutable. function main() -> u32 { - let mut a = [1u32]; - a[0] = 0; + let mut a = [1u32]; + a[0] = 0; - return a[0] + return a[0] } \ No newline at end of file diff --git a/compiler/tests/mutability/circuit.leo b/compiler/tests/mutability/circuit.leo index c7cd738b6b..be1c568836 100644 --- a/compiler/tests/mutability/circuit.leo +++ b/compiler/tests/mutability/circuit.leo @@ -1,9 +1,9 @@ // Circuits are immutable by default. circuit Foo { - x: u32 + x: u32 } function main() { - let a = Foo { x: 1 }; - a.x = 0; + let a = Foo { x: 1 }; + a.x = 0; } \ No newline at end of file diff --git a/compiler/tests/mutability/circuit_mut.leo b/compiler/tests/mutability/circuit_mut.leo index 082b22b346..5d4ba9f14f 100644 --- a/compiler/tests/mutability/circuit_mut.leo +++ b/compiler/tests/mutability/circuit_mut.leo @@ -1,11 +1,11 @@ // Adding the `mut` keyword makes a circuit variable mutable. circuit Foo { - x: u32 + x: u32 } function main() -> u32 { - let mut a = Foo { x: 1 }; - a.x = 0; + let mut a = Foo { x: 1 }; + a.x = 0; - return a.x + return a.x } \ No newline at end of file diff --git a/compiler/tests/mutability/const.leo b/compiler/tests/mutability/const.leo index a167625c02..44f9279085 100644 --- a/compiler/tests/mutability/const.leo +++ b/compiler/tests/mutability/const.leo @@ -1,5 +1,5 @@ // Constant variables are immutable by default. function main() { - const a = 1u32; - a = 0; + const a = 1u32; + a = 0; } \ No newline at end of file diff --git a/compiler/tests/mutability/const_mut.leo b/compiler/tests/mutability/const_mut.leo index 06dc51c222..ef194ae178 100644 --- a/compiler/tests/mutability/const_mut.leo +++ b/compiler/tests/mutability/const_mut.leo @@ -1,4 +1,4 @@ // Adding the `mut` keyword to a constant variable is illegal function main() { - const mut a = 1u32; + const mut a = 1u32; } \ No newline at end of file diff --git a/compiler/tests/mutability/function_input.leo b/compiler/tests/mutability/function_input.leo index 2096092c68..c3cef38959 100644 --- a/compiler/tests/mutability/function_input.leo +++ b/compiler/tests/mutability/function_input.leo @@ -1,4 +1,4 @@ // Function inputs are immutable by default. function main(a: u32) { - a = 0; + a = 0; } \ No newline at end of file diff --git a/compiler/tests/mutability/function_input_mut.leo b/compiler/tests/mutability/function_input_mut.leo index 760f2c4e25..accd891cfd 100644 --- a/compiler/tests/mutability/function_input_mut.leo +++ b/compiler/tests/mutability/function_input_mut.leo @@ -1,6 +1,6 @@ // Adding the `mut` keyword makes a function variable mutable. function main(mut a: u32) -> u32 { - a = 0; + a = 0; - return a + return a } \ No newline at end of file diff --git a/compiler/tests/mutability/let.leo b/compiler/tests/mutability/let.leo index fd2b5e1dbc..477e6b35f5 100644 --- a/compiler/tests/mutability/let.leo +++ b/compiler/tests/mutability/let.leo @@ -1,5 +1,5 @@ // Variables are immutable by default. function main() { - let a = 1u32; - a = 0; + let a = 1u32; + a = 0; } \ No newline at end of file diff --git a/compiler/tests/mutability/let_mut.leo b/compiler/tests/mutability/let_mut.leo index cf30e5223e..59af4c461a 100644 --- a/compiler/tests/mutability/let_mut.leo +++ b/compiler/tests/mutability/let_mut.leo @@ -1,7 +1,7 @@ // Adding the `mut` keyword makes a variable mutable. function main() -> u32 { - let mut a = 1u32; - a = 0; + let mut a = 1u32; + a = 0; - return a + return a } \ No newline at end of file diff --git a/compiler/tests/statements/assertion_basic.leo b/compiler/tests/statements/assertion_basic.leo index bcdf923c0b..6c1fe116d0 100644 --- a/compiler/tests/statements/assertion_basic.leo +++ b/compiler/tests/statements/assertion_basic.leo @@ -1,3 +1,3 @@ function main(b: bool) { - assert_eq!(b, true); + assert_eq!(b, true); } \ No newline at end of file diff --git a/compiler/tests/statements/conditional/assert.leo b/compiler/tests/statements/conditional/assert.leo index db9f1f2fed..c0c24db693 100644 --- a/compiler/tests/statements/conditional/assert.leo +++ b/compiler/tests/statements/conditional/assert.leo @@ -1,7 +1,7 @@ function main(bit: u32) { if bit == 1 { - assert_eq!(bit, 1); + assert_eq!(bit, 1); } else { - assert_eq!(bit, 0); + assert_eq!(bit, 0); } } diff --git a/compiler/tests/statements/conditional/chain.leo b/compiler/tests/statements/conditional/chain.leo index 159c94be8b..65b391c1e8 100644 --- a/compiler/tests/statements/conditional/chain.leo +++ b/compiler/tests/statements/conditional/chain.leo @@ -1,13 +1,13 @@ function main(bit: u32) -> u32 { - let mut result = 0u32; + let mut result = 0u32; - if bit == 1 { - result = 1; - } else if bit == 2 { - result = 2; - } else { - result = 3; - } + if bit == 1 { + result = 1; + } else if bit == 2 { + result = 2; + } else { + result = 3; + } - return result + return result } \ No newline at end of file diff --git a/compiler/tests/statements/conditional/for_loop.leo b/compiler/tests/statements/conditional/for_loop.leo index 2728e2d302..b8228333a2 100644 --- a/compiler/tests/statements/conditional/for_loop.leo +++ b/compiler/tests/statements/conditional/for_loop.leo @@ -1,11 +1,11 @@ function main(cond: bool) -> u32 { - let mut a = 0u32; + let mut a = 0u32; - if cond { - for i in 0..4 { - a += i; + if cond { + for i in 0..4 { + a += i; + } } - } - return a + return a } diff --git a/compiler/tests/statements/conditional/mutate.leo b/compiler/tests/statements/conditional/mutate.leo index b0309f958b..67ec956874 100644 --- a/compiler/tests/statements/conditional/mutate.leo +++ b/compiler/tests/statements/conditional/mutate.leo @@ -1,11 +1,11 @@ function main(bit: u32) -> u32 { - let mut a = 5u32; + let mut a = 5u32; - if bit == 1 { - a = 1; - } else { - a = 0; - } + if bit == 1 { + a = 1; + } else { + a = 0; + } - return a + return a } diff --git a/compiler/tests/statements/conditional/nested.leo b/compiler/tests/statements/conditional/nested.leo index 7eb814c9f1..b4570077fc 100644 --- a/compiler/tests/statements/conditional/nested.leo +++ b/compiler/tests/statements/conditional/nested.leo @@ -1,12 +1,12 @@ function main(a: bool, b: bool) -> u32 { - let mut result = 0u32; + let mut result = 0u32; - if a { - result += 1; - if b { - result += 2; + if a { + result += 1; + if b { + result += 2; + } } - } - return result + return result } \ No newline at end of file diff --git a/compiler/tests/statements/iteration_basic.leo b/compiler/tests/statements/iteration_basic.leo index 0289a22795..19460cc543 100644 --- a/compiler/tests/statements/iteration_basic.leo +++ b/compiler/tests/statements/iteration_basic.leo @@ -1,8 +1,8 @@ function main() -> u32 { - let mut x = 4u32; - for i in 0..3 { - x -= 1; - } + let mut x = 4u32; + for i in 0..3 { + x -= 1; + } - return x + return x } \ No newline at end of file diff --git a/compiler/tests/statements/num_returns_fail.leo b/compiler/tests/statements/num_returns_fail.leo index 64cfa7b3e2..14b2fe6ad0 100644 --- a/compiler/tests/statements/num_returns_fail.leo +++ b/compiler/tests/statements/num_returns_fail.leo @@ -1,3 +1,3 @@ function main() -> (bool, bool) { - return true + return true } \ No newline at end of file diff --git a/compiler/tests/statements/ternary_basic.leo b/compiler/tests/statements/ternary_basic.leo index 2fd76fa0e8..26909325e0 100644 --- a/compiler/tests/statements/ternary_basic.leo +++ b/compiler/tests/statements/ternary_basic.leo @@ -1,3 +1,3 @@ function main(b: bool) -> u32 { - return if b ? 1 : 0 + return if b ? 1 : 0 } \ No newline at end of file diff --git a/compiler/tests/syntax/mod.rs b/compiler/tests/syntax/mod.rs index 7bd068c503..b851bfafb1 100644 --- a/compiler/tests/syntax/mod.rs +++ b/compiler/tests/syntax/mod.rs @@ -28,10 +28,10 @@ fn test_undefined() { assert_eq!( format!("{}", error), vec![ - " --> \"/test/src/main.leo\": 2:10", + " --> \"/test/src/main.leo\": 2:12", " |", - " 2 | return a", - " | ^", + " 2 | return a", + " | ^", " |", " = cannot find value `a` in this scope", ] diff --git a/compiler/tests/syntax/semicolon.leo b/compiler/tests/syntax/semicolon.leo index 63de5d217d..68cfa7cbe0 100644 --- a/compiler/tests/syntax/semicolon.leo +++ b/compiler/tests/syntax/semicolon.leo @@ -1,3 +1,3 @@ function main() { - let a = 0 + let a = 0 } \ No newline at end of file diff --git a/compiler/tests/syntax/undefined.leo b/compiler/tests/syntax/undefined.leo index 504ecc580c..856b07589a 100644 --- a/compiler/tests/syntax/undefined.leo +++ b/compiler/tests/syntax/undefined.leo @@ -1,3 +1,3 @@ function main() -> bool { - return a + return a } \ No newline at end of file