From e5da76abaf49951e8ae1cb83c7afbb6cf868bdb0 Mon Sep 17 00:00:00 2001 From: collin <16715212+collinc97@users.noreply.github.com> Date: Wed, 3 Aug 2022 13:35:58 -0700 Subject: [PATCH 1/5] impl nonce --- Cargo.lock | 361 ++------- Cargo.toml | 4 +- compiler/ast/src/expressions/circuit_init.rs | 34 + compiler/ast/src/input/input_ast.rs | 11 +- compiler/compiler/Cargo.toml | 2 +- compiler/parser/Cargo.toml | 5 +- compiler/parser/src/parser/context.rs | 3 + compiler/parser/src/parser/expression.rs | 20 +- compiler/parser/src/parser/input.rs | 5 + compiler/parser/src/tokenizer/lexer.rs | 10 +- compiler/span/src/symbol.rs | 1 + examples/token/inputs/token.in | 1 + tests/compiler/records/inputs/address.in | 0 .../expectations/compiler/address/binary.out | 9 - .../expectations/compiler/address/branch.out | 9 - tests/expectations/compiler/address/equal.out | 9 - .../expectations/compiler/address/gt_fail.out | 5 - .../compiler/address/gte_fail.out | 5 - .../expectations/compiler/address/lt_fail.out | 5 - .../compiler/address/lte_fail.out | 5 - .../expectations/compiler/address/ternary.out | 10 - tests/expectations/compiler/boolean/and.out | 12 - .../compiler/boolean/conditional.out | 12 - tests/expectations/compiler/boolean/equal.out | 12 - .../compiler/boolean/not_equal.out | 12 - .../compiler/boolean/operator_methods.out | 12 - tests/expectations/compiler/boolean/or.out | 12 - ...rcuit_function_namespace_conflict_fail.out | 5 - .../circuits/duplicate_circuit_variable.out | 5 - .../circuits/duplicate_name_context.out | 5 - .../expectations/compiler/circuits/inline.out | 9 - .../compiler/circuits/inline_fail.out | 5 - .../compiler/circuits/inline_member_fail.out | 5 - .../compiler/circuits/inline_member_pass.out | 5 - .../compiler/circuits/inline_undefined.out | 5 - .../compiler/circuits/member_variable.out | 9 - .../circuits/member_variable_fail.out | 5 - .../expectations/compiler/console/assert.out | 9 - tests/expectations/compiler/console/error.out | 9 - tests/expectations/compiler/console/log.out | 9 - .../compiler/console/log_conditional.out | 10 - .../compiler/console/log_fail.out | 5 - .../compiler/console/log_input.out | 9 - .../compiler/console/log_parameter.out | 9 - .../compiler/console/log_parameter_many.out | 9 - .../console/log_parameter_unkown_fail.out | 5 - .../compiler/console/log_string.out | 5 - .../core/algorithms/bhp1024_commit.out | 9 - .../compiler/core/algorithms/bhp1024_hash.out | 9 - .../core/algorithms/bhp256_commit.out | 9 - .../compiler/core/algorithms/bhp256_hash.out | 9 - .../core/algorithms/bhp512_commit.out | 9 - .../compiler/core/algorithms/bhp512_hash.out | 9 - .../core/algorithms/bhp768_commit.out | 9 - .../compiler/core/algorithms/bhp768_hash.out | 9 - .../core/algorithms/pedersen128_hash.out | 9 - .../core/algorithms/pedersen64_hash.out | 9 - .../core/algorithms/pedersen_fail.out | 5 - .../core/algorithms/poseidon2_hash.out | 9 - .../core/algorithms/poseidon4_hash.out | 9 - .../core/algorithms/poseidon8_hash.out | 9 - .../compiler/definition/out_of_order.out | 9 - .../use_decl_variable_as_assign_fail.out | 5 - tests/expectations/compiler/field/add.out | 9 - tests/expectations/compiler/field/div.out | 9 - tests/expectations/compiler/field/eq.out | 9 - tests/expectations/compiler/field/field.out | 9 - tests/expectations/compiler/field/mul.out | 9 - tests/expectations/compiler/field/negate.out | 9 - .../field/no_space_between_literal.out | 5 - .../compiler/field/operator_methods.out | 9 - tests/expectations/compiler/field/pow.out | 9 - tests/expectations/compiler/field/sub.out | 9 - tests/expectations/compiler/field/ternary.out | 9 - .../compiler/function/9_inputs_fail.out | 5 - .../compiler/function/conditional_return.out | 9 - .../function/duplicate_definition_fail.out | 5 - .../function/duplicate_parameter_fail.out | 5 - .../compiler/function/no_return_fail.out | 5 - .../compiler/function/scope_fail.out | 5 - .../shadow_function_with_input_fail.out | 5 - .../function/shadow_parameter_fail.out | 5 - .../compiler/function/undefined_fail.out | 5 - tests/expectations/compiler/group/add.out | 9 - .../expectations/compiler/group/assert_eq.out | 9 - tests/expectations/compiler/group/eq.out | 9 - .../expectations/compiler/group/group_mul.out | 9 - tests/expectations/compiler/group/input.out | 9 - tests/expectations/compiler/group/mul.out | 9 - .../compiler/group/mult_by_group_fail.out | 5 - .../compiler/group/mult_by_scalar.out | 9 - tests/expectations/compiler/group/negate.out | 9 - .../group/no_space_between_literal.out | 5 - .../compiler/group/operator_methods.out | 9 - .../compiler/group/point_input.out | 9 - tests/expectations/compiler/group/sub.out | 9 - tests/expectations/compiler/group/ternary.out | 9 - tests/expectations/compiler/group/x_and_y.out | 9 - .../compiler/group/x_sign_high.out | 9 - .../compiler/group/x_sign_inferred.out | 9 - .../compiler/group/x_sign_low.out | 9 - tests/expectations/compiler/group/zero.out | 9 - tests/expectations/compiler/input/main.out | 9 - .../compiler/input/main_field.out | 9 - .../compiler/integers/i128/add.out | 9 - .../compiler/integers/i128/and.out | 9 - .../compiler/integers/i128/console_assert.out | 9 - .../compiler/integers/i128/div.out | 9 - .../compiler/integers/i128/eq.out | 9 - .../compiler/integers/i128/ge.out | 10 - .../compiler/integers/i128/gt.out | 10 - .../compiler/integers/i128/le.out | 10 - .../compiler/integers/i128/lt.out | 10 - .../compiler/integers/i128/max.out | 9 - .../compiler/integers/i128/max_fail.out | 5 - .../compiler/integers/i128/min.out | 9 - .../compiler/integers/i128/min_fail.out | 5 - .../compiler/integers/i128/mul.out | 9 - .../compiler/integers/i128/ne.out | 10 - .../compiler/integers/i128/negate.out | 10 - .../integers/i128/negate_min_fail.out | 5 - .../compiler/integers/i128/negate_zero.out | 9 - .../i128/no_space_between_literal.out | 5 - .../integers/i128/operator_methods.out | 9 - .../compiler/integers/i128/or.out | 9 - .../compiler/integers/i128/pow.out | 9 - .../compiler/integers/i128/shl.out | 9 - .../compiler/integers/i128/shr.out | 9 - .../compiler/integers/i128/sub.out | 9 - .../compiler/integers/i128/ternary.out | 10 - .../compiler/integers/i128/xor.out | 9 - .../compiler/integers/i16/add.out | 9 - .../compiler/integers/i16/and.out | 9 - .../compiler/integers/i16/console_assert.out | 9 - .../compiler/integers/i16/div.out | 9 - .../expectations/compiler/integers/i16/eq.out | 9 - .../expectations/compiler/integers/i16/ge.out | 10 - .../expectations/compiler/integers/i16/gt.out | 10 - .../expectations/compiler/integers/i16/le.out | 10 - .../expectations/compiler/integers/i16/lt.out | 10 - .../compiler/integers/i16/max.out | 9 - .../compiler/integers/i16/max_fail.out | 5 - .../compiler/integers/i16/min.out | 9 - .../compiler/integers/i16/min_fail.out | 5 - .../compiler/integers/i16/mul.out | 9 - .../expectations/compiler/integers/i16/ne.out | 10 - .../compiler/integers/i16/negate.out | 10 - .../compiler/integers/i16/negate_min_fail.out | 5 - .../compiler/integers/i16/negate_zero.out | 9 - .../integers/i16/no_space_between_literal.out | 5 - .../integers/i16/operator_methods.out | 9 - .../expectations/compiler/integers/i16/or.out | 9 - .../compiler/integers/i16/pow.out | 9 - .../compiler/integers/i16/shl.out | 9 - .../compiler/integers/i16/shr.out | 9 - .../compiler/integers/i16/sub.out | 9 - .../compiler/integers/i16/ternary.out | 10 - .../compiler/integers/i16/xor.out | 9 - .../compiler/integers/i32/add.out | 9 - .../compiler/integers/i32/and.out | 9 - .../compiler/integers/i32/console_assert.out | 9 - .../compiler/integers/i32/div.out | 9 - .../expectations/compiler/integers/i32/eq.out | 9 - .../expectations/compiler/integers/i32/ge.out | 10 - .../expectations/compiler/integers/i32/gt.out | 10 - .../expectations/compiler/integers/i32/le.out | 10 - .../expectations/compiler/integers/i32/lt.out | 10 - .../compiler/integers/i32/max.out | 9 - .../compiler/integers/i32/max_fail.out | 5 - .../compiler/integers/i32/min.out | 9 - .../compiler/integers/i32/min_fail.out | 5 - .../compiler/integers/i32/mul.out | 9 - .../expectations/compiler/integers/i32/ne.out | 10 - .../compiler/integers/i32/negate.out | 10 - .../compiler/integers/i32/negate_min_fail.out | 5 - .../compiler/integers/i32/negate_zero.out | 9 - .../integers/i32/no_space_between_literal.out | 5 - .../integers/i32/operator_methods.out | 9 - .../expectations/compiler/integers/i32/or.out | 9 - .../compiler/integers/i32/pow.out | 9 - .../compiler/integers/i32/shl.out | 9 - .../compiler/integers/i32/shr.out | 9 - .../compiler/integers/i32/sub.out | 9 - .../compiler/integers/i32/ternary.out | 10 - .../compiler/integers/i32/xor.out | 9 - .../compiler/integers/i64/add.out | 9 - .../compiler/integers/i64/and.out | 9 - .../compiler/integers/i64/console_assert.out | 9 - .../compiler/integers/i64/div.out | 9 - .../expectations/compiler/integers/i64/eq.out | 9 - .../expectations/compiler/integers/i64/ge.out | 10 - .../expectations/compiler/integers/i64/gt.out | 10 - .../expectations/compiler/integers/i64/le.out | 10 - .../expectations/compiler/integers/i64/lt.out | 10 - .../compiler/integers/i64/max.out | 9 - .../compiler/integers/i64/max_fail.out | 5 - .../compiler/integers/i64/min.out | 9 - .../compiler/integers/i64/min_fail.out | 5 - .../compiler/integers/i64/mul.out | 9 - .../expectations/compiler/integers/i64/ne.out | 10 - .../compiler/integers/i64/negate.out | 10 - .../compiler/integers/i64/negate_min_fail.out | 5 - .../compiler/integers/i64/negate_zero.out | 9 - .../integers/i64/no_space_between_literal.out | 5 - .../integers/i64/operator_methods.out | 9 - .../expectations/compiler/integers/i64/or.out | 9 - .../compiler/integers/i64/pow.out | 9 - .../compiler/integers/i64/shl.out | 9 - .../compiler/integers/i64/shr.out | 9 - .../compiler/integers/i64/sub.out | 9 - .../compiler/integers/i64/ternary.out | 10 - .../compiler/integers/i64/xor.out | 9 - .../expectations/compiler/integers/i8/add.out | 9 - .../expectations/compiler/integers/i8/and.out | 9 - .../compiler/integers/i8/console_assert.out | 9 - .../expectations/compiler/integers/i8/div.out | 9 - .../expectations/compiler/integers/i8/eq.out | 9 - .../expectations/compiler/integers/i8/ge.out | 10 - .../expectations/compiler/integers/i8/gt.out | 10 - .../expectations/compiler/integers/i8/le.out | 10 - .../expectations/compiler/integers/i8/lt.out | 10 - .../expectations/compiler/integers/i8/max.out | 9 - .../compiler/integers/i8/max_fail.out | 5 - .../expectations/compiler/integers/i8/min.out | 9 - .../compiler/integers/i8/min_fail.out | 5 - .../expectations/compiler/integers/i8/mul.out | 9 - .../expectations/compiler/integers/i8/ne.out | 10 - .../compiler/integers/i8/negate.out | 10 - .../compiler/integers/i8/negate_min_fail.out | 5 - .../compiler/integers/i8/negate_zero.out | 9 - .../integers/i8/no_space_between_literal.out | 5 - .../compiler/integers/i8/operator_methods.out | 9 - .../expectations/compiler/integers/i8/or.out | 9 - .../expectations/compiler/integers/i8/pow.out | 9 - .../expectations/compiler/integers/i8/shl.out | 9 - .../expectations/compiler/integers/i8/shr.out | 9 - .../expectations/compiler/integers/i8/sub.out | 9 - .../compiler/integers/i8/ternary.out | 10 - .../expectations/compiler/integers/i8/xor.out | 9 - .../compiler/integers/u128/add.out | 9 - .../compiler/integers/u128/and.out | 9 - .../compiler/integers/u128/console_assert.out | 9 - .../compiler/integers/u128/div.out | 9 - .../compiler/integers/u128/eq.out | 9 - .../compiler/integers/u128/ge.out | 10 - .../compiler/integers/u128/gt.out | 10 - .../compiler/integers/u128/le.out | 10 - .../compiler/integers/u128/lt.out | 10 - .../compiler/integers/u128/max.out | 9 - .../compiler/integers/u128/max_fail.out | 5 - .../compiler/integers/u128/min.out | 9 - .../compiler/integers/u128/min_fail.out | 5 - .../compiler/integers/u128/mul.out | 9 - .../compiler/integers/u128/ne.out | 10 - .../u128/no_space_between_literal.out | 5 - .../integers/u128/operator_methods.out | 9 - .../compiler/integers/u128/or.out | 9 - .../compiler/integers/u128/pow.out | 9 - .../compiler/integers/u128/shl.out | 9 - .../compiler/integers/u128/shr.out | 9 - .../compiler/integers/u128/sub.out | 9 - .../compiler/integers/u128/ternary.out | 10 - .../compiler/integers/u128/xor.out | 9 - .../compiler/integers/u16/add.out | 9 - .../compiler/integers/u16/and.out | 9 - .../compiler/integers/u16/console_assert.out | 9 - .../compiler/integers/u16/div.out | 9 - .../expectations/compiler/integers/u16/eq.out | 9 - .../expectations/compiler/integers/u16/ge.out | 10 - .../expectations/compiler/integers/u16/gt.out | 10 - .../expectations/compiler/integers/u16/le.out | 10 - .../expectations/compiler/integers/u16/lt.out | 10 - .../compiler/integers/u16/max.out | 9 - .../compiler/integers/u16/max_fail.out | 5 - .../compiler/integers/u16/min.out | 9 - .../compiler/integers/u16/min_fail.out | 5 - .../compiler/integers/u16/mul.out | 9 - .../expectations/compiler/integers/u16/ne.out | 10 - .../integers/u16/no_space_between_literal.out | 5 - .../integers/u16/operator_methods.out | 9 - .../expectations/compiler/integers/u16/or.out | 9 - .../compiler/integers/u16/pow.out | 9 - .../compiler/integers/u16/shl.out | 9 - .../compiler/integers/u16/shr.out | 9 - .../compiler/integers/u16/sub.out | 9 - .../compiler/integers/u16/ternary.out | 10 - .../compiler/integers/u16/xor.out | 9 - .../compiler/integers/u32/add.out | 9 - .../compiler/integers/u32/and.out | 9 - .../compiler/integers/u32/console_assert.out | 9 - .../compiler/integers/u32/div.out | 9 - .../expectations/compiler/integers/u32/eq.out | 9 - .../expectations/compiler/integers/u32/ge.out | 10 - .../expectations/compiler/integers/u32/gt.out | 10 - .../expectations/compiler/integers/u32/le.out | 10 - .../expectations/compiler/integers/u32/lt.out | 10 - .../compiler/integers/u32/max.out | 9 - .../compiler/integers/u32/max_fail.out | 5 - .../compiler/integers/u32/min.out | 9 - .../compiler/integers/u32/min_fail.out | 5 - .../compiler/integers/u32/mul.out | 9 - .../expectations/compiler/integers/u32/ne.out | 10 - .../integers/u32/no_space_between_literal.out | 5 - .../integers/u32/operator_methods.out | 9 - .../expectations/compiler/integers/u32/or.out | 9 - .../compiler/integers/u32/pow.out | 9 - .../compiler/integers/u32/shl.out | 9 - .../compiler/integers/u32/shr.out | 9 - .../compiler/integers/u32/sub.out | 9 - .../compiler/integers/u32/ternary.out | 10 - .../compiler/integers/u32/xor.out | 9 - .../compiler/integers/u64/add.out | 9 - .../compiler/integers/u64/and.out | 9 - .../compiler/integers/u64/console_assert.out | 9 - .../compiler/integers/u64/div.out | 9 - .../expectations/compiler/integers/u64/eq.out | 9 - .../expectations/compiler/integers/u64/ge.out | 10 - .../expectations/compiler/integers/u64/gt.out | 10 - .../expectations/compiler/integers/u64/le.out | 10 - .../expectations/compiler/integers/u64/lt.out | 10 - .../compiler/integers/u64/max.out | 9 - .../compiler/integers/u64/max_fail.out | 5 - .../compiler/integers/u64/min.out | 9 - .../compiler/integers/u64/min_fail.out | 5 - .../compiler/integers/u64/mul.out | 9 - .../expectations/compiler/integers/u64/ne.out | 10 - .../integers/u64/no_space_between_literal.out | 5 - .../integers/u64/operator_methods.out | 9 - .../expectations/compiler/integers/u64/or.out | 9 - .../compiler/integers/u64/pow.out | 9 - .../compiler/integers/u64/shl.out | 9 - .../compiler/integers/u64/shr.out | 9 - .../compiler/integers/u64/sub.out | 9 - .../compiler/integers/u64/ternary.out | 10 - .../compiler/integers/u64/xor.out | 9 - .../expectations/compiler/integers/u8/add.out | 9 - .../expectations/compiler/integers/u8/and.out | 9 - .../compiler/integers/u8/console_assert.out | 9 - .../expectations/compiler/integers/u8/div.out | 9 - .../expectations/compiler/integers/u8/eq.out | 9 - .../expectations/compiler/integers/u8/ge.out | 10 - .../expectations/compiler/integers/u8/gt.out | 10 - .../expectations/compiler/integers/u8/le.out | 10 - .../expectations/compiler/integers/u8/lt.out | 10 - .../expectations/compiler/integers/u8/max.out | 9 - .../compiler/integers/u8/max_fail.out | 5 - .../expectations/compiler/integers/u8/min.out | 9 - .../compiler/integers/u8/min_fail.out | 5 - .../expectations/compiler/integers/u8/mul.out | 9 - .../expectations/compiler/integers/u8/ne.out | 10 - .../integers/u8/no_space_between_literal.out | 5 - .../compiler/integers/u8/operator_methods.out | 9 - .../expectations/compiler/integers/u8/or.out | 9 - .../expectations/compiler/integers/u8/pow.out | 9 - .../expectations/compiler/integers/u8/shl.out | 9 - .../expectations/compiler/integers/u8/shr.out | 9 - .../expectations/compiler/integers/u8/sub.out | 9 - .../compiler/integers/u8/ternary.out | 10 - .../expectations/compiler/integers/u8/xor.out | 9 - .../compiler/records/balance_wrong_ty.out | 5 - .../compiler/records/declaration.out | 9 - .../records/duplicate_circuit_name_fail.out | 5 - .../compiler/records/duplicate_var_fail.out | 5 - .../compiler/records/init_expression.out | 9 - .../records/init_expression_shorthand.out | 9 - .../records/init_expression_type_fail.out | 5 - .../records/init_expression_var_fail.out | 5 - .../compiler/records/no_owner_fail.out | 5 - .../compiler/records/owner_wrong_ty.out | 5 - tests/expectations/compiler/scalar/add.out | 9 - tests/expectations/compiler/scalar/cmp.out | 9 - .../expectations/compiler/scalar/div_fail.out | 5 - tests/expectations/compiler/scalar/eq.out | 9 - .../scalar/no_space_between_literal.out | 5 - .../compiler/scalar/operator_methods.out | 9 - tests/expectations/compiler/scalar/scalar.out | 9 - .../compiler/scalar/square_root_fail.out | 5 - .../expectations/compiler/scalar/ternary.out | 9 - .../compiler/statements/all_loops_fail.out | 5 - .../compiler/statements/assign.out | 9 - .../compiler/statements/assign_fail.out | 5 - .../compiler/statements/assign_ternary.out | 5 - .../compiler/statements/block.out | 9 - .../compiler/statements/chain.out | 11 - .../statements/compare_diff_types_fail.out | 5 - .../compare_invalid_negates_fail.out | 5 - .../statements/duplicate_variable.out | 5 - .../compiler/statements/iteration_basic.out | 9 - .../compiler/statements/iteration_nested.out | 9 - .../compiler/statements/loop_returns_fail.out | 5 - .../compiler/statements/multiple_returns.out | 10 - .../multiple_returns_in_one_block_fail.out | 5 - .../compiler/statements/mutate.out | 10 - .../statements/non_existant_var_exp_fail.out | 5 - .../statements/non_existant_vars_mul_fail.out | 5 - .../statements/operations/add_assign.out | 9 - .../statements/operations/and_assign.out | 9 - .../statements/operations/bitand_assign.out | 9 - .../statements/operations/bitor_assign.out | 9 - .../statements/operations/bitxor_assign.out | 9 - .../statements/operations/div_assign.out | 9 - .../statements/operations/mul_assign.out | 9 - .../statements/operations/or_assign.out | 9 - .../statements/operations/pow_assign.out | 9 - .../statements/operations/shl_assign.out | 9 - .../statements/operations/shr_assign.out | 9 - .../statements/operations/sub_assign.out | 9 - ...after_complete_conditional_return_fail.out | 5 - .../ternary_explicit_and_implicit.out | 9 - .../compiler/tuple/access_negative_fail.out | 5 - .../tuple/access_out_of_bounds_fail.out | 5 - .../compiler/tuple/declare_fail.out | 5 - .../compiler/tuple/function_return.out | 9 - .../tuple/function_return_single_fail.out | 5 - .../tuple/function_return_zero_fail.out | 5 - .../compiler/tuple/return_statement_fail.out | 5 - .../compiler/tuple/tuple_not_allowed.out | 5 - .../expectations/compiler/tuple/type_fail.out | 5 - .../parser/expression/access/call.out | 45 -- .../parser/expression/array_init_fail.out | 8 - .../parser/expression/array_inline_fail.out | 9 - .../parser/expression/binary/add.out | 461 ----------- .../parser/expression/binary/add_wrapped.out | 243 ------ .../parser/expression/binary/and.out | 313 -------- .../parser/expression/binary/bit_and.out | 461 ----------- .../parser/expression/binary/bit_or.out | 461 ----------- .../parser/expression/binary/bit_xor.out | 461 ----------- .../parser/expression/binary/div.out | 358 --------- .../parser/expression/binary/div_wrapped.out | 243 ------ .../parser/expression/binary/eq.out | 423 ---------- .../parser/expression/binary/eq_fail.out | 5 - .../parser/expression/binary/ge.out | 326 -------- .../parser/expression/binary/ge_fail.out | 7 - .../parser/expression/binary/gt.out | 326 -------- .../parser/expression/binary/gt_fail.out | 7 - .../parser/expression/binary/le.out | 326 -------- .../parser/expression/binary/le_fail.out | 7 - .../parser/expression/binary/lt.out | 326 -------- .../parser/expression/binary/lt_fail.out | 7 - .../parser/expression/binary/mul.out | 429 ---------- .../parser/expression/binary/mul_wrapped.out | 243 ------ .../parser/expression/binary/nand.out | 243 ------ .../parser/expression/binary/neq.out | 423 ---------- .../parser/expression/binary/neq_fail.out | 5 - .../parser/expression/binary/nor.out | 243 ------ .../parser/expression/binary/or.out | 164 ---- .../parser/expression/binary/pow.out | 313 -------- .../parser/expression/binary/pow_wrapped.out | 243 ------ .../parser/expression/binary/shl.out | 461 ----------- .../parser/expression/binary/shl_wrapped.out | 243 ------ .../parser/expression/binary/shr.out | 461 ----------- .../parser/expression/binary/shr_wrapped.out | 243 ------ .../parser/expression/binary/sub.out | 358 --------- .../parser/expression/binary/sub_wrapped.out | 243 ------ .../parser/expression/circuit_init_fail.out | 16 - .../expectations/parser/expression/ident.out | 23 - .../parser/expression/literal/address.out | 10 - .../expression/literal/address_fail.out | 14 - .../expression/literal/address_parse.out | 10 - .../parser/expression/literal/bool.out | 12 - .../parser/expression/literal/bool_parse.out | 16 - .../parser/expression/literal/char.out | 57 -- .../parser/expression/literal/char_fail.out | 51 -- .../parser/expression/literal/char_parse.out | 55 -- .../parser/expression/literal/comment.out | 10 - .../expression/literal/comment_fail.out | 15 - .../expression/literal/formatted_string.out | 24 - .../parser/expression/literal/group.out | 442 ----------- .../parser/expression/literal/group_fail.out | 16 - .../parser/expression/literal/int.out | 111 --- .../parser/expression/literal/int_fail.out | 7 - .../expression/literal/int_parse/field.out | 634 --------------- .../literal/int_parse/field_fail.out | 5 - .../expression/literal/int_parse/i128.out | 634 --------------- .../expression/literal/int_parse/i16.out | 634 --------------- .../expression/literal/int_parse/i32.out | 634 --------------- .../expression/literal/int_parse/i64.out | 634 --------------- .../expression/literal/int_parse/i8.out | 634 --------------- .../expression/literal/int_parse/implicit.out | 109 --- .../literal/int_parse/mono_group.out | 739 ------------------ .../expression/literal/int_parse/scalar.out | 634 --------------- .../expression/literal/int_parse/u128.out | 634 --------------- .../expression/literal/int_parse/u16.out | 634 --------------- .../expression/literal/int_parse/u32.out | 634 --------------- .../expression/literal/int_parse/u64.out | 634 --------------- .../expression/literal/int_parse/u8.out | 634 --------------- .../expression/literal/postfix_types.out | 62 -- .../parser/expression/literal/string.out | 25 - .../parser/expression/literal/string_fail.out | 8 - .../parser/expression/ternary.out | 52 -- .../parser/expression/token_format.out | 74 -- .../parser/expression/unary/abs.out | 146 ---- .../parser/expression/unary/abs_wrapped.out | 146 ---- .../parser/expression/unary/double.out | 146 ---- .../parser/expression/unary/inv.out | 146 ---- .../parser/expression/unary/neg.out | 204 ----- .../parser/expression/unary/not.out | 191 ----- .../parser/expression/unary/sqrt.out | 158 ---- .../parser/expression/unary/square.out | 158 ---- .../functions/annotated_arg_not_ident.out | 5 - .../functions/annotated_context_fail.out | 5 - .../parser/functions/bounded_recursion.out | 5 - .../parser/functions/const_input.out | 50 -- .../parser/functions/const_param.out | 86 -- .../functions/const_public_param_fail.out | 5 - .../expectations/parser/functions/empty2.out | 23 - .../parser/functions/escape_fail.out | 5 - .../parser/functions/ident_token_fail.out | 5 - .../parser/functions/infinite_recursion.out | 5 - .../parser/functions/mut_input_fail.out | 5 - .../expectations/parser/functions/params.out | 48 -- .../parser/functions/params_return.out | 48 -- .../functions/public_const_param_fail.out | 5 - .../parser/functions/public_param.out | 86 -- .../expectations/parser/functions/return.out | 34 - .../parser/functions/test_keyword_fail.out | 5 - .../parser/inputs/input_const.out | 207 ----- .../parser/inputs/input_constant.out | 207 ----- .../inputs/input_constant_public_fail.out | 5 - .../expectations/parser/inputs/input_fail.out | 5 - .../parser/inputs/input_public.out | 207 ----- .../inputs/input_public_constant_fail.out | 5 - .../parser/program/backslash_eof.out | 5 - .../parser/program/bidi_comment_2_fail.out | 5 - .../parser/program/bidi_comment_fail.out | 5 - .../parser/program/dollar_eof.out | 5 - .../parser/program/escape_u8_eof.out | 5 - tests/expectations/parser/program/hex_eof.out | 5 - .../expectations/parser/program/pipe_eof.out | 5 - tests/expectations/parser/program/q_eof.out | 5 - tests/expectations/parser/program/sq_eof.out | 5 - .../expectations/parser/program/tilde_eof.out | 5 - .../program/unclosed_unicode_eof_fail.out | 5 - .../parser/serialize/one_plus_one.out | 27 - .../parser/serialize/parser_error.out | 5 - .../expectations/parser/statement/assign.out | 45 -- tests/expectations/parser/statement/block.out | 84 -- .../parser/statement/conditional.out | 143 ---- .../parser/statement/conditional_fail.out | 5 - .../expectations/parser/statement/console.out | 83 -- .../parser/statement/console_fail.out | 7 - .../parser/statement/definition.out | 200 ----- .../parser/statement/definition_fail.out | 47 -- .../parser/statement/expression.out | 7 - .../parser/statement/expression_fail.out | 10 - .../parser/statement/hex_int_fail.out | 7 - .../parser/statement/iteration.out | 136 ---- .../parser/statement/let_mut_recover.out | 5 - .../expectations/parser/statement/return.out | 21 - .../parser/statement/return_fail.out | 7 - .../parser/unreachable/define.out | 49 -- .../parser/unreachable/eat_ident.out | 5 - .../parser/unreachable/eat_int.out | 56 -- .../equality_and_order_expression.out | 56 -- .../parser/unreachable/expect_ident.out | 56 -- .../parser/unreachable/math_op_fail.out | 63 -- .../parser/unreachable/math_op_pass.out | 312 -------- .../parser/unreachable/postfix_fail.out | 24 - .../parser/unreachable/postfix_pass.out | 229 ------ 559 files changed, 154 insertions(+), 26478 deletions(-) delete mode 100644 tests/compiler/records/inputs/address.in delete mode 100644 tests/expectations/compiler/address/binary.out delete mode 100644 tests/expectations/compiler/address/branch.out delete mode 100644 tests/expectations/compiler/address/equal.out delete mode 100644 tests/expectations/compiler/address/gt_fail.out delete mode 100644 tests/expectations/compiler/address/gte_fail.out delete mode 100644 tests/expectations/compiler/address/lt_fail.out delete mode 100644 tests/expectations/compiler/address/lte_fail.out delete mode 100644 tests/expectations/compiler/address/ternary.out delete mode 100644 tests/expectations/compiler/boolean/and.out delete mode 100644 tests/expectations/compiler/boolean/conditional.out delete mode 100644 tests/expectations/compiler/boolean/equal.out delete mode 100644 tests/expectations/compiler/boolean/not_equal.out delete mode 100644 tests/expectations/compiler/boolean/operator_methods.out delete mode 100644 tests/expectations/compiler/boolean/or.out delete mode 100644 tests/expectations/compiler/circuits/circuit_function_namespace_conflict_fail.out delete mode 100644 tests/expectations/compiler/circuits/duplicate_circuit_variable.out delete mode 100644 tests/expectations/compiler/circuits/duplicate_name_context.out delete mode 100644 tests/expectations/compiler/circuits/inline.out delete mode 100644 tests/expectations/compiler/circuits/inline_fail.out delete mode 100644 tests/expectations/compiler/circuits/inline_member_fail.out delete mode 100644 tests/expectations/compiler/circuits/inline_member_pass.out delete mode 100644 tests/expectations/compiler/circuits/inline_undefined.out delete mode 100644 tests/expectations/compiler/circuits/member_variable.out delete mode 100644 tests/expectations/compiler/circuits/member_variable_fail.out delete mode 100644 tests/expectations/compiler/console/assert.out delete mode 100644 tests/expectations/compiler/console/error.out delete mode 100644 tests/expectations/compiler/console/log.out delete mode 100644 tests/expectations/compiler/console/log_conditional.out delete mode 100644 tests/expectations/compiler/console/log_fail.out delete mode 100644 tests/expectations/compiler/console/log_input.out delete mode 100644 tests/expectations/compiler/console/log_parameter.out delete mode 100644 tests/expectations/compiler/console/log_parameter_many.out delete mode 100644 tests/expectations/compiler/console/log_parameter_unkown_fail.out delete mode 100644 tests/expectations/compiler/console/log_string.out delete mode 100644 tests/expectations/compiler/core/algorithms/bhp1024_commit.out delete mode 100644 tests/expectations/compiler/core/algorithms/bhp1024_hash.out delete mode 100644 tests/expectations/compiler/core/algorithms/bhp256_commit.out delete mode 100644 tests/expectations/compiler/core/algorithms/bhp256_hash.out delete mode 100644 tests/expectations/compiler/core/algorithms/bhp512_commit.out delete mode 100644 tests/expectations/compiler/core/algorithms/bhp512_hash.out delete mode 100644 tests/expectations/compiler/core/algorithms/bhp768_commit.out delete mode 100644 tests/expectations/compiler/core/algorithms/bhp768_hash.out delete mode 100644 tests/expectations/compiler/core/algorithms/pedersen128_hash.out delete mode 100644 tests/expectations/compiler/core/algorithms/pedersen64_hash.out delete mode 100644 tests/expectations/compiler/core/algorithms/pedersen_fail.out delete mode 100644 tests/expectations/compiler/core/algorithms/poseidon2_hash.out delete mode 100644 tests/expectations/compiler/core/algorithms/poseidon4_hash.out delete mode 100644 tests/expectations/compiler/core/algorithms/poseidon8_hash.out delete mode 100644 tests/expectations/compiler/definition/out_of_order.out delete mode 100644 tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out delete mode 100644 tests/expectations/compiler/field/add.out delete mode 100644 tests/expectations/compiler/field/div.out delete mode 100644 tests/expectations/compiler/field/eq.out delete mode 100644 tests/expectations/compiler/field/field.out delete mode 100644 tests/expectations/compiler/field/mul.out delete mode 100644 tests/expectations/compiler/field/negate.out delete mode 100644 tests/expectations/compiler/field/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/field/operator_methods.out delete mode 100644 tests/expectations/compiler/field/pow.out delete mode 100644 tests/expectations/compiler/field/sub.out delete mode 100644 tests/expectations/compiler/field/ternary.out delete mode 100644 tests/expectations/compiler/function/9_inputs_fail.out delete mode 100644 tests/expectations/compiler/function/conditional_return.out delete mode 100644 tests/expectations/compiler/function/duplicate_definition_fail.out delete mode 100644 tests/expectations/compiler/function/duplicate_parameter_fail.out delete mode 100644 tests/expectations/compiler/function/no_return_fail.out delete mode 100644 tests/expectations/compiler/function/scope_fail.out delete mode 100644 tests/expectations/compiler/function/shadow_function_with_input_fail.out delete mode 100644 tests/expectations/compiler/function/shadow_parameter_fail.out delete mode 100644 tests/expectations/compiler/function/undefined_fail.out delete mode 100644 tests/expectations/compiler/group/add.out delete mode 100644 tests/expectations/compiler/group/assert_eq.out delete mode 100644 tests/expectations/compiler/group/eq.out delete mode 100644 tests/expectations/compiler/group/group_mul.out delete mode 100644 tests/expectations/compiler/group/input.out delete mode 100644 tests/expectations/compiler/group/mul.out delete mode 100644 tests/expectations/compiler/group/mult_by_group_fail.out delete mode 100644 tests/expectations/compiler/group/mult_by_scalar.out delete mode 100644 tests/expectations/compiler/group/negate.out delete mode 100644 tests/expectations/compiler/group/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/group/operator_methods.out delete mode 100644 tests/expectations/compiler/group/point_input.out delete mode 100644 tests/expectations/compiler/group/sub.out delete mode 100644 tests/expectations/compiler/group/ternary.out delete mode 100644 tests/expectations/compiler/group/x_and_y.out delete mode 100644 tests/expectations/compiler/group/x_sign_high.out delete mode 100644 tests/expectations/compiler/group/x_sign_inferred.out delete mode 100644 tests/expectations/compiler/group/x_sign_low.out delete mode 100644 tests/expectations/compiler/group/zero.out delete mode 100644 tests/expectations/compiler/input/main.out delete mode 100644 tests/expectations/compiler/input/main_field.out delete mode 100644 tests/expectations/compiler/integers/i128/add.out delete mode 100644 tests/expectations/compiler/integers/i128/and.out delete mode 100644 tests/expectations/compiler/integers/i128/console_assert.out delete mode 100644 tests/expectations/compiler/integers/i128/div.out delete mode 100644 tests/expectations/compiler/integers/i128/eq.out delete mode 100644 tests/expectations/compiler/integers/i128/ge.out delete mode 100644 tests/expectations/compiler/integers/i128/gt.out delete mode 100644 tests/expectations/compiler/integers/i128/le.out delete mode 100644 tests/expectations/compiler/integers/i128/lt.out delete mode 100644 tests/expectations/compiler/integers/i128/max.out delete mode 100644 tests/expectations/compiler/integers/i128/max_fail.out delete mode 100644 tests/expectations/compiler/integers/i128/min.out delete mode 100644 tests/expectations/compiler/integers/i128/min_fail.out delete mode 100644 tests/expectations/compiler/integers/i128/mul.out delete mode 100644 tests/expectations/compiler/integers/i128/ne.out delete mode 100644 tests/expectations/compiler/integers/i128/negate.out delete mode 100644 tests/expectations/compiler/integers/i128/negate_min_fail.out delete mode 100644 tests/expectations/compiler/integers/i128/negate_zero.out delete mode 100644 tests/expectations/compiler/integers/i128/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/i128/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/i128/or.out delete mode 100644 tests/expectations/compiler/integers/i128/pow.out delete mode 100644 tests/expectations/compiler/integers/i128/shl.out delete mode 100644 tests/expectations/compiler/integers/i128/shr.out delete mode 100644 tests/expectations/compiler/integers/i128/sub.out delete mode 100644 tests/expectations/compiler/integers/i128/ternary.out delete mode 100644 tests/expectations/compiler/integers/i128/xor.out delete mode 100644 tests/expectations/compiler/integers/i16/add.out delete mode 100644 tests/expectations/compiler/integers/i16/and.out delete mode 100644 tests/expectations/compiler/integers/i16/console_assert.out delete mode 100644 tests/expectations/compiler/integers/i16/div.out delete mode 100644 tests/expectations/compiler/integers/i16/eq.out delete mode 100644 tests/expectations/compiler/integers/i16/ge.out delete mode 100644 tests/expectations/compiler/integers/i16/gt.out delete mode 100644 tests/expectations/compiler/integers/i16/le.out delete mode 100644 tests/expectations/compiler/integers/i16/lt.out delete mode 100644 tests/expectations/compiler/integers/i16/max.out delete mode 100644 tests/expectations/compiler/integers/i16/max_fail.out delete mode 100644 tests/expectations/compiler/integers/i16/min.out delete mode 100644 tests/expectations/compiler/integers/i16/min_fail.out delete mode 100644 tests/expectations/compiler/integers/i16/mul.out delete mode 100644 tests/expectations/compiler/integers/i16/ne.out delete mode 100644 tests/expectations/compiler/integers/i16/negate.out delete mode 100644 tests/expectations/compiler/integers/i16/negate_min_fail.out delete mode 100644 tests/expectations/compiler/integers/i16/negate_zero.out delete mode 100644 tests/expectations/compiler/integers/i16/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/i16/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/i16/or.out delete mode 100644 tests/expectations/compiler/integers/i16/pow.out delete mode 100644 tests/expectations/compiler/integers/i16/shl.out delete mode 100644 tests/expectations/compiler/integers/i16/shr.out delete mode 100644 tests/expectations/compiler/integers/i16/sub.out delete mode 100644 tests/expectations/compiler/integers/i16/ternary.out delete mode 100644 tests/expectations/compiler/integers/i16/xor.out delete mode 100644 tests/expectations/compiler/integers/i32/add.out delete mode 100644 tests/expectations/compiler/integers/i32/and.out delete mode 100644 tests/expectations/compiler/integers/i32/console_assert.out delete mode 100644 tests/expectations/compiler/integers/i32/div.out delete mode 100644 tests/expectations/compiler/integers/i32/eq.out delete mode 100644 tests/expectations/compiler/integers/i32/ge.out delete mode 100644 tests/expectations/compiler/integers/i32/gt.out delete mode 100644 tests/expectations/compiler/integers/i32/le.out delete mode 100644 tests/expectations/compiler/integers/i32/lt.out delete mode 100644 tests/expectations/compiler/integers/i32/max.out delete mode 100644 tests/expectations/compiler/integers/i32/max_fail.out delete mode 100644 tests/expectations/compiler/integers/i32/min.out delete mode 100644 tests/expectations/compiler/integers/i32/min_fail.out delete mode 100644 tests/expectations/compiler/integers/i32/mul.out delete mode 100644 tests/expectations/compiler/integers/i32/ne.out delete mode 100644 tests/expectations/compiler/integers/i32/negate.out delete mode 100644 tests/expectations/compiler/integers/i32/negate_min_fail.out delete mode 100644 tests/expectations/compiler/integers/i32/negate_zero.out delete mode 100644 tests/expectations/compiler/integers/i32/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/i32/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/i32/or.out delete mode 100644 tests/expectations/compiler/integers/i32/pow.out delete mode 100644 tests/expectations/compiler/integers/i32/shl.out delete mode 100644 tests/expectations/compiler/integers/i32/shr.out delete mode 100644 tests/expectations/compiler/integers/i32/sub.out delete mode 100644 tests/expectations/compiler/integers/i32/ternary.out delete mode 100644 tests/expectations/compiler/integers/i32/xor.out delete mode 100644 tests/expectations/compiler/integers/i64/add.out delete mode 100644 tests/expectations/compiler/integers/i64/and.out delete mode 100644 tests/expectations/compiler/integers/i64/console_assert.out delete mode 100644 tests/expectations/compiler/integers/i64/div.out delete mode 100644 tests/expectations/compiler/integers/i64/eq.out delete mode 100644 tests/expectations/compiler/integers/i64/ge.out delete mode 100644 tests/expectations/compiler/integers/i64/gt.out delete mode 100644 tests/expectations/compiler/integers/i64/le.out delete mode 100644 tests/expectations/compiler/integers/i64/lt.out delete mode 100644 tests/expectations/compiler/integers/i64/max.out delete mode 100644 tests/expectations/compiler/integers/i64/max_fail.out delete mode 100644 tests/expectations/compiler/integers/i64/min.out delete mode 100644 tests/expectations/compiler/integers/i64/min_fail.out delete mode 100644 tests/expectations/compiler/integers/i64/mul.out delete mode 100644 tests/expectations/compiler/integers/i64/ne.out delete mode 100644 tests/expectations/compiler/integers/i64/negate.out delete mode 100644 tests/expectations/compiler/integers/i64/negate_min_fail.out delete mode 100644 tests/expectations/compiler/integers/i64/negate_zero.out delete mode 100644 tests/expectations/compiler/integers/i64/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/i64/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/i64/or.out delete mode 100644 tests/expectations/compiler/integers/i64/pow.out delete mode 100644 tests/expectations/compiler/integers/i64/shl.out delete mode 100644 tests/expectations/compiler/integers/i64/shr.out delete mode 100644 tests/expectations/compiler/integers/i64/sub.out delete mode 100644 tests/expectations/compiler/integers/i64/ternary.out delete mode 100644 tests/expectations/compiler/integers/i64/xor.out delete mode 100644 tests/expectations/compiler/integers/i8/add.out delete mode 100644 tests/expectations/compiler/integers/i8/and.out delete mode 100644 tests/expectations/compiler/integers/i8/console_assert.out delete mode 100644 tests/expectations/compiler/integers/i8/div.out delete mode 100644 tests/expectations/compiler/integers/i8/eq.out delete mode 100644 tests/expectations/compiler/integers/i8/ge.out delete mode 100644 tests/expectations/compiler/integers/i8/gt.out delete mode 100644 tests/expectations/compiler/integers/i8/le.out delete mode 100644 tests/expectations/compiler/integers/i8/lt.out delete mode 100644 tests/expectations/compiler/integers/i8/max.out delete mode 100644 tests/expectations/compiler/integers/i8/max_fail.out delete mode 100644 tests/expectations/compiler/integers/i8/min.out delete mode 100644 tests/expectations/compiler/integers/i8/min_fail.out delete mode 100644 tests/expectations/compiler/integers/i8/mul.out delete mode 100644 tests/expectations/compiler/integers/i8/ne.out delete mode 100644 tests/expectations/compiler/integers/i8/negate.out delete mode 100644 tests/expectations/compiler/integers/i8/negate_min_fail.out delete mode 100644 tests/expectations/compiler/integers/i8/negate_zero.out delete mode 100644 tests/expectations/compiler/integers/i8/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/i8/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/i8/or.out delete mode 100644 tests/expectations/compiler/integers/i8/pow.out delete mode 100644 tests/expectations/compiler/integers/i8/shl.out delete mode 100644 tests/expectations/compiler/integers/i8/shr.out delete mode 100644 tests/expectations/compiler/integers/i8/sub.out delete mode 100644 tests/expectations/compiler/integers/i8/ternary.out delete mode 100644 tests/expectations/compiler/integers/i8/xor.out delete mode 100644 tests/expectations/compiler/integers/u128/add.out delete mode 100644 tests/expectations/compiler/integers/u128/and.out delete mode 100644 tests/expectations/compiler/integers/u128/console_assert.out delete mode 100644 tests/expectations/compiler/integers/u128/div.out delete mode 100644 tests/expectations/compiler/integers/u128/eq.out delete mode 100644 tests/expectations/compiler/integers/u128/ge.out delete mode 100644 tests/expectations/compiler/integers/u128/gt.out delete mode 100644 tests/expectations/compiler/integers/u128/le.out delete mode 100644 tests/expectations/compiler/integers/u128/lt.out delete mode 100644 tests/expectations/compiler/integers/u128/max.out delete mode 100644 tests/expectations/compiler/integers/u128/max_fail.out delete mode 100644 tests/expectations/compiler/integers/u128/min.out delete mode 100644 tests/expectations/compiler/integers/u128/min_fail.out delete mode 100644 tests/expectations/compiler/integers/u128/mul.out delete mode 100644 tests/expectations/compiler/integers/u128/ne.out delete mode 100644 tests/expectations/compiler/integers/u128/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/u128/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/u128/or.out delete mode 100644 tests/expectations/compiler/integers/u128/pow.out delete mode 100644 tests/expectations/compiler/integers/u128/shl.out delete mode 100644 tests/expectations/compiler/integers/u128/shr.out delete mode 100644 tests/expectations/compiler/integers/u128/sub.out delete mode 100644 tests/expectations/compiler/integers/u128/ternary.out delete mode 100644 tests/expectations/compiler/integers/u128/xor.out delete mode 100644 tests/expectations/compiler/integers/u16/add.out delete mode 100644 tests/expectations/compiler/integers/u16/and.out delete mode 100644 tests/expectations/compiler/integers/u16/console_assert.out delete mode 100644 tests/expectations/compiler/integers/u16/div.out delete mode 100644 tests/expectations/compiler/integers/u16/eq.out delete mode 100644 tests/expectations/compiler/integers/u16/ge.out delete mode 100644 tests/expectations/compiler/integers/u16/gt.out delete mode 100644 tests/expectations/compiler/integers/u16/le.out delete mode 100644 tests/expectations/compiler/integers/u16/lt.out delete mode 100644 tests/expectations/compiler/integers/u16/max.out delete mode 100644 tests/expectations/compiler/integers/u16/max_fail.out delete mode 100644 tests/expectations/compiler/integers/u16/min.out delete mode 100644 tests/expectations/compiler/integers/u16/min_fail.out delete mode 100644 tests/expectations/compiler/integers/u16/mul.out delete mode 100644 tests/expectations/compiler/integers/u16/ne.out delete mode 100644 tests/expectations/compiler/integers/u16/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/u16/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/u16/or.out delete mode 100644 tests/expectations/compiler/integers/u16/pow.out delete mode 100644 tests/expectations/compiler/integers/u16/shl.out delete mode 100644 tests/expectations/compiler/integers/u16/shr.out delete mode 100644 tests/expectations/compiler/integers/u16/sub.out delete mode 100644 tests/expectations/compiler/integers/u16/ternary.out delete mode 100644 tests/expectations/compiler/integers/u16/xor.out delete mode 100644 tests/expectations/compiler/integers/u32/add.out delete mode 100644 tests/expectations/compiler/integers/u32/and.out delete mode 100644 tests/expectations/compiler/integers/u32/console_assert.out delete mode 100644 tests/expectations/compiler/integers/u32/div.out delete mode 100644 tests/expectations/compiler/integers/u32/eq.out delete mode 100644 tests/expectations/compiler/integers/u32/ge.out delete mode 100644 tests/expectations/compiler/integers/u32/gt.out delete mode 100644 tests/expectations/compiler/integers/u32/le.out delete mode 100644 tests/expectations/compiler/integers/u32/lt.out delete mode 100644 tests/expectations/compiler/integers/u32/max.out delete mode 100644 tests/expectations/compiler/integers/u32/max_fail.out delete mode 100644 tests/expectations/compiler/integers/u32/min.out delete mode 100644 tests/expectations/compiler/integers/u32/min_fail.out delete mode 100644 tests/expectations/compiler/integers/u32/mul.out delete mode 100644 tests/expectations/compiler/integers/u32/ne.out delete mode 100644 tests/expectations/compiler/integers/u32/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/u32/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/u32/or.out delete mode 100644 tests/expectations/compiler/integers/u32/pow.out delete mode 100644 tests/expectations/compiler/integers/u32/shl.out delete mode 100644 tests/expectations/compiler/integers/u32/shr.out delete mode 100644 tests/expectations/compiler/integers/u32/sub.out delete mode 100644 tests/expectations/compiler/integers/u32/ternary.out delete mode 100644 tests/expectations/compiler/integers/u32/xor.out delete mode 100644 tests/expectations/compiler/integers/u64/add.out delete mode 100644 tests/expectations/compiler/integers/u64/and.out delete mode 100644 tests/expectations/compiler/integers/u64/console_assert.out delete mode 100644 tests/expectations/compiler/integers/u64/div.out delete mode 100644 tests/expectations/compiler/integers/u64/eq.out delete mode 100644 tests/expectations/compiler/integers/u64/ge.out delete mode 100644 tests/expectations/compiler/integers/u64/gt.out delete mode 100644 tests/expectations/compiler/integers/u64/le.out delete mode 100644 tests/expectations/compiler/integers/u64/lt.out delete mode 100644 tests/expectations/compiler/integers/u64/max.out delete mode 100644 tests/expectations/compiler/integers/u64/max_fail.out delete mode 100644 tests/expectations/compiler/integers/u64/min.out delete mode 100644 tests/expectations/compiler/integers/u64/min_fail.out delete mode 100644 tests/expectations/compiler/integers/u64/mul.out delete mode 100644 tests/expectations/compiler/integers/u64/ne.out delete mode 100644 tests/expectations/compiler/integers/u64/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/u64/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/u64/or.out delete mode 100644 tests/expectations/compiler/integers/u64/pow.out delete mode 100644 tests/expectations/compiler/integers/u64/shl.out delete mode 100644 tests/expectations/compiler/integers/u64/shr.out delete mode 100644 tests/expectations/compiler/integers/u64/sub.out delete mode 100644 tests/expectations/compiler/integers/u64/ternary.out delete mode 100644 tests/expectations/compiler/integers/u64/xor.out delete mode 100644 tests/expectations/compiler/integers/u8/add.out delete mode 100644 tests/expectations/compiler/integers/u8/and.out delete mode 100644 tests/expectations/compiler/integers/u8/console_assert.out delete mode 100644 tests/expectations/compiler/integers/u8/div.out delete mode 100644 tests/expectations/compiler/integers/u8/eq.out delete mode 100644 tests/expectations/compiler/integers/u8/ge.out delete mode 100644 tests/expectations/compiler/integers/u8/gt.out delete mode 100644 tests/expectations/compiler/integers/u8/le.out delete mode 100644 tests/expectations/compiler/integers/u8/lt.out delete mode 100644 tests/expectations/compiler/integers/u8/max.out delete mode 100644 tests/expectations/compiler/integers/u8/max_fail.out delete mode 100644 tests/expectations/compiler/integers/u8/min.out delete mode 100644 tests/expectations/compiler/integers/u8/min_fail.out delete mode 100644 tests/expectations/compiler/integers/u8/mul.out delete mode 100644 tests/expectations/compiler/integers/u8/ne.out delete mode 100644 tests/expectations/compiler/integers/u8/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/integers/u8/operator_methods.out delete mode 100644 tests/expectations/compiler/integers/u8/or.out delete mode 100644 tests/expectations/compiler/integers/u8/pow.out delete mode 100644 tests/expectations/compiler/integers/u8/shl.out delete mode 100644 tests/expectations/compiler/integers/u8/shr.out delete mode 100644 tests/expectations/compiler/integers/u8/sub.out delete mode 100644 tests/expectations/compiler/integers/u8/ternary.out delete mode 100644 tests/expectations/compiler/integers/u8/xor.out delete mode 100644 tests/expectations/compiler/records/balance_wrong_ty.out delete mode 100644 tests/expectations/compiler/records/declaration.out delete mode 100644 tests/expectations/compiler/records/duplicate_circuit_name_fail.out delete mode 100644 tests/expectations/compiler/records/duplicate_var_fail.out delete mode 100644 tests/expectations/compiler/records/init_expression.out delete mode 100644 tests/expectations/compiler/records/init_expression_shorthand.out delete mode 100644 tests/expectations/compiler/records/init_expression_type_fail.out delete mode 100644 tests/expectations/compiler/records/init_expression_var_fail.out delete mode 100644 tests/expectations/compiler/records/no_owner_fail.out delete mode 100644 tests/expectations/compiler/records/owner_wrong_ty.out delete mode 100644 tests/expectations/compiler/scalar/add.out delete mode 100644 tests/expectations/compiler/scalar/cmp.out delete mode 100644 tests/expectations/compiler/scalar/div_fail.out delete mode 100644 tests/expectations/compiler/scalar/eq.out delete mode 100644 tests/expectations/compiler/scalar/no_space_between_literal.out delete mode 100644 tests/expectations/compiler/scalar/operator_methods.out delete mode 100644 tests/expectations/compiler/scalar/scalar.out delete mode 100644 tests/expectations/compiler/scalar/square_root_fail.out delete mode 100644 tests/expectations/compiler/scalar/ternary.out delete mode 100644 tests/expectations/compiler/statements/all_loops_fail.out delete mode 100644 tests/expectations/compiler/statements/assign.out delete mode 100644 tests/expectations/compiler/statements/assign_fail.out delete mode 100644 tests/expectations/compiler/statements/assign_ternary.out delete mode 100644 tests/expectations/compiler/statements/block.out delete mode 100644 tests/expectations/compiler/statements/chain.out delete mode 100644 tests/expectations/compiler/statements/compare_diff_types_fail.out delete mode 100644 tests/expectations/compiler/statements/compare_invalid_negates_fail.out delete mode 100644 tests/expectations/compiler/statements/duplicate_variable.out delete mode 100644 tests/expectations/compiler/statements/iteration_basic.out delete mode 100644 tests/expectations/compiler/statements/iteration_nested.out delete mode 100644 tests/expectations/compiler/statements/loop_returns_fail.out delete mode 100644 tests/expectations/compiler/statements/multiple_returns.out delete mode 100644 tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out delete mode 100644 tests/expectations/compiler/statements/mutate.out delete mode 100644 tests/expectations/compiler/statements/non_existant_var_exp_fail.out delete mode 100644 tests/expectations/compiler/statements/non_existant_vars_mul_fail.out delete mode 100644 tests/expectations/compiler/statements/operations/add_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/and_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/bitand_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/bitor_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/bitxor_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/div_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/mul_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/or_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/pow_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/shl_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/shr_assign.out delete mode 100644 tests/expectations/compiler/statements/operations/sub_assign.out delete mode 100644 tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out delete mode 100644 tests/expectations/compiler/statements/ternary_explicit_and_implicit.out delete mode 100644 tests/expectations/compiler/tuple/access_negative_fail.out delete mode 100644 tests/expectations/compiler/tuple/access_out_of_bounds_fail.out delete mode 100644 tests/expectations/compiler/tuple/declare_fail.out delete mode 100644 tests/expectations/compiler/tuple/function_return.out delete mode 100644 tests/expectations/compiler/tuple/function_return_single_fail.out delete mode 100644 tests/expectations/compiler/tuple/function_return_zero_fail.out delete mode 100644 tests/expectations/compiler/tuple/return_statement_fail.out delete mode 100644 tests/expectations/compiler/tuple/tuple_not_allowed.out delete mode 100644 tests/expectations/compiler/tuple/type_fail.out delete mode 100644 tests/expectations/parser/expression/access/call.out delete mode 100644 tests/expectations/parser/expression/array_init_fail.out delete mode 100644 tests/expectations/parser/expression/array_inline_fail.out delete mode 100644 tests/expectations/parser/expression/binary/add.out delete mode 100644 tests/expectations/parser/expression/binary/add_wrapped.out delete mode 100644 tests/expectations/parser/expression/binary/and.out delete mode 100644 tests/expectations/parser/expression/binary/bit_and.out delete mode 100644 tests/expectations/parser/expression/binary/bit_or.out delete mode 100644 tests/expectations/parser/expression/binary/bit_xor.out delete mode 100644 tests/expectations/parser/expression/binary/div.out delete mode 100644 tests/expectations/parser/expression/binary/div_wrapped.out delete mode 100644 tests/expectations/parser/expression/binary/eq.out delete mode 100644 tests/expectations/parser/expression/binary/eq_fail.out delete mode 100644 tests/expectations/parser/expression/binary/ge.out delete mode 100644 tests/expectations/parser/expression/binary/ge_fail.out delete mode 100644 tests/expectations/parser/expression/binary/gt.out delete mode 100644 tests/expectations/parser/expression/binary/gt_fail.out delete mode 100644 tests/expectations/parser/expression/binary/le.out delete mode 100644 tests/expectations/parser/expression/binary/le_fail.out delete mode 100644 tests/expectations/parser/expression/binary/lt.out delete mode 100644 tests/expectations/parser/expression/binary/lt_fail.out delete mode 100644 tests/expectations/parser/expression/binary/mul.out delete mode 100644 tests/expectations/parser/expression/binary/mul_wrapped.out delete mode 100644 tests/expectations/parser/expression/binary/nand.out delete mode 100644 tests/expectations/parser/expression/binary/neq.out delete mode 100644 tests/expectations/parser/expression/binary/neq_fail.out delete mode 100644 tests/expectations/parser/expression/binary/nor.out delete mode 100644 tests/expectations/parser/expression/binary/or.out delete mode 100644 tests/expectations/parser/expression/binary/pow.out delete mode 100644 tests/expectations/parser/expression/binary/pow_wrapped.out delete mode 100644 tests/expectations/parser/expression/binary/shl.out delete mode 100644 tests/expectations/parser/expression/binary/shl_wrapped.out delete mode 100644 tests/expectations/parser/expression/binary/shr.out delete mode 100644 tests/expectations/parser/expression/binary/shr_wrapped.out delete mode 100644 tests/expectations/parser/expression/binary/sub.out delete mode 100644 tests/expectations/parser/expression/binary/sub_wrapped.out delete mode 100644 tests/expectations/parser/expression/circuit_init_fail.out delete mode 100644 tests/expectations/parser/expression/ident.out delete mode 100644 tests/expectations/parser/expression/literal/address.out delete mode 100644 tests/expectations/parser/expression/literal/address_fail.out delete mode 100644 tests/expectations/parser/expression/literal/address_parse.out delete mode 100644 tests/expectations/parser/expression/literal/bool.out delete mode 100644 tests/expectations/parser/expression/literal/bool_parse.out delete mode 100644 tests/expectations/parser/expression/literal/char.out delete mode 100644 tests/expectations/parser/expression/literal/char_fail.out delete mode 100644 tests/expectations/parser/expression/literal/char_parse.out delete mode 100644 tests/expectations/parser/expression/literal/comment.out delete mode 100644 tests/expectations/parser/expression/literal/comment_fail.out delete mode 100644 tests/expectations/parser/expression/literal/formatted_string.out delete mode 100644 tests/expectations/parser/expression/literal/group.out delete mode 100644 tests/expectations/parser/expression/literal/group_fail.out delete mode 100644 tests/expectations/parser/expression/literal/int.out delete mode 100644 tests/expectations/parser/expression/literal/int_fail.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/field.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/field_fail.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/i128.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/i16.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/i32.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/i64.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/i8.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/implicit.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/mono_group.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/scalar.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/u128.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/u16.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/u32.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/u64.out delete mode 100644 tests/expectations/parser/expression/literal/int_parse/u8.out delete mode 100644 tests/expectations/parser/expression/literal/postfix_types.out delete mode 100644 tests/expectations/parser/expression/literal/string.out delete mode 100644 tests/expectations/parser/expression/literal/string_fail.out delete mode 100644 tests/expectations/parser/expression/ternary.out delete mode 100644 tests/expectations/parser/expression/token_format.out delete mode 100644 tests/expectations/parser/expression/unary/abs.out delete mode 100644 tests/expectations/parser/expression/unary/abs_wrapped.out delete mode 100644 tests/expectations/parser/expression/unary/double.out delete mode 100644 tests/expectations/parser/expression/unary/inv.out delete mode 100644 tests/expectations/parser/expression/unary/neg.out delete mode 100644 tests/expectations/parser/expression/unary/not.out delete mode 100644 tests/expectations/parser/expression/unary/sqrt.out delete mode 100644 tests/expectations/parser/expression/unary/square.out delete mode 100644 tests/expectations/parser/functions/annotated_arg_not_ident.out delete mode 100644 tests/expectations/parser/functions/annotated_context_fail.out delete mode 100644 tests/expectations/parser/functions/bounded_recursion.out delete mode 100644 tests/expectations/parser/functions/const_input.out delete mode 100644 tests/expectations/parser/functions/const_param.out delete mode 100644 tests/expectations/parser/functions/const_public_param_fail.out delete mode 100644 tests/expectations/parser/functions/empty2.out delete mode 100644 tests/expectations/parser/functions/escape_fail.out delete mode 100644 tests/expectations/parser/functions/ident_token_fail.out delete mode 100644 tests/expectations/parser/functions/infinite_recursion.out delete mode 100644 tests/expectations/parser/functions/mut_input_fail.out delete mode 100644 tests/expectations/parser/functions/params.out delete mode 100644 tests/expectations/parser/functions/params_return.out delete mode 100644 tests/expectations/parser/functions/public_const_param_fail.out delete mode 100644 tests/expectations/parser/functions/public_param.out delete mode 100644 tests/expectations/parser/functions/return.out delete mode 100644 tests/expectations/parser/functions/test_keyword_fail.out delete mode 100644 tests/expectations/parser/inputs/input_const.out delete mode 100644 tests/expectations/parser/inputs/input_constant.out delete mode 100644 tests/expectations/parser/inputs/input_constant_public_fail.out delete mode 100644 tests/expectations/parser/inputs/input_fail.out delete mode 100644 tests/expectations/parser/inputs/input_public.out delete mode 100644 tests/expectations/parser/inputs/input_public_constant_fail.out delete mode 100644 tests/expectations/parser/program/backslash_eof.out delete mode 100644 tests/expectations/parser/program/bidi_comment_2_fail.out delete mode 100644 tests/expectations/parser/program/bidi_comment_fail.out delete mode 100644 tests/expectations/parser/program/dollar_eof.out delete mode 100644 tests/expectations/parser/program/escape_u8_eof.out delete mode 100644 tests/expectations/parser/program/hex_eof.out delete mode 100644 tests/expectations/parser/program/pipe_eof.out delete mode 100644 tests/expectations/parser/program/q_eof.out delete mode 100644 tests/expectations/parser/program/sq_eof.out delete mode 100644 tests/expectations/parser/program/tilde_eof.out delete mode 100644 tests/expectations/parser/program/unclosed_unicode_eof_fail.out delete mode 100644 tests/expectations/parser/serialize/one_plus_one.out delete mode 100644 tests/expectations/parser/serialize/parser_error.out delete mode 100644 tests/expectations/parser/statement/assign.out delete mode 100644 tests/expectations/parser/statement/block.out delete mode 100644 tests/expectations/parser/statement/conditional.out delete mode 100644 tests/expectations/parser/statement/conditional_fail.out delete mode 100644 tests/expectations/parser/statement/console.out delete mode 100644 tests/expectations/parser/statement/console_fail.out delete mode 100644 tests/expectations/parser/statement/definition.out delete mode 100644 tests/expectations/parser/statement/definition_fail.out delete mode 100644 tests/expectations/parser/statement/expression.out delete mode 100644 tests/expectations/parser/statement/expression_fail.out delete mode 100644 tests/expectations/parser/statement/hex_int_fail.out delete mode 100644 tests/expectations/parser/statement/iteration.out delete mode 100644 tests/expectations/parser/statement/let_mut_recover.out delete mode 100644 tests/expectations/parser/statement/return.out delete mode 100644 tests/expectations/parser/statement/return_fail.out delete mode 100644 tests/expectations/parser/unreachable/define.out delete mode 100644 tests/expectations/parser/unreachable/eat_ident.out delete mode 100644 tests/expectations/parser/unreachable/eat_int.out delete mode 100644 tests/expectations/parser/unreachable/equality_and_order_expression.out delete mode 100644 tests/expectations/parser/unreachable/expect_ident.out delete mode 100644 tests/expectations/parser/unreachable/math_op_fail.out delete mode 100644 tests/expectations/parser/unreachable/math_op_pass.out delete mode 100644 tests/expectations/parser/unreachable/postfix_fail.out delete mode 100644 tests/expectations/parser/unreachable/postfix_pass.out diff --git a/Cargo.lock b/Cargo.lock index aa6ddf3da8..876e2e1997 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -71,7 +71,7 @@ dependencies = [ [[package]] name = "aleo" version = "0.2.0" -source = "git+https://github.com/AleoHQ/aleo.git?rev=38e9d91#38e9d9135795db1dd40d6b4d97a3dcb6f6f4228f" +source = "git+https://github.com/AleoHQ/aleo.git?rev=cbbe6c4#cbbe6c4a4041da6d5c55a88bd73ca6fcd63f317d" dependencies = [ "anyhow", "clap 3.2.16", @@ -240,12 +240,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" -[[package]] -name = "bech32" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf9ff0bbfd639f15c74af777d81383cf53efb7c93613f6cab67c6c11e05bbf8b" - [[package]] name = "bech32" version = "0.9.0" @@ -267,15 +261,6 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" -[[package]] -name = "blake2" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9cf849ee05b2ee5fba5e36f97ff8ec2533916700fc0758d40d92136a42f3388" -dependencies = [ - "digest", -] - [[package]] name = "blake2s_simd" version = "1.0.0" @@ -1267,7 +1252,7 @@ dependencies = [ "serde_json", "serde_yaml", "smallvec", - "snarkvm-dpc", + "snarkvm-console", "tracing", ] @@ -1743,15 +1728,6 @@ dependencies = [ "termtree", ] -[[package]] -name = "proc-macro-crate" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" -dependencies = [ - "toml", -] - [[package]] name = "proc-macro-crate" version = "1.1.3" @@ -2297,7 +2273,7 @@ dependencies = [ [[package]] name = "snarkvm" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "anyhow", "clap 3.2.16", @@ -2312,10 +2288,10 @@ dependencies = [ "snarkvm-circuit", "snarkvm-compiler", "snarkvm-console", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-fields", + "snarkvm-parameters", + "snarkvm-utilities", "thiserror", - "tracing", "ureq", "walkdir", ] @@ -2323,12 +2299,11 @@ dependencies = [ [[package]] name = "snarkvm-algorithms" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "aleo-std", "anyhow", "bincode", - "blake2s_simd", "crossbeam-channel", "curl", "derivative", @@ -2347,52 +2322,18 @@ dependencies = [ "serde", "sha2", "smallvec", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-parameters 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-r1cs 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "thiserror", -] - -[[package]] -name = "snarkvm-algorithms" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "aleo-std", - "anyhow", - "bincode", - "blake2s_simd", - "crossbeam-channel", - "curl", - "derivative", - "digest", - "hashbrown", - "hex", - "itertools", - "lazy_static", - "num_cpus", - "once_cell", - "parking_lot", - "rand", - "rand_chacha", - "rand_core", - "rayon", - "serde", - "sha2", - "smallvec", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-r1cs 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", + "snarkvm-curves", + "snarkvm-fields", + "snarkvm-parameters", + "snarkvm-r1cs", + "snarkvm-utilities", "thiserror", ] [[package]] name = "snarkvm-circuit" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-account", "snarkvm-circuit-algorithms", @@ -2406,7 +2347,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-account" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-network", @@ -2417,17 +2358,17 @@ dependencies = [ [[package]] name = "snarkvm-circuit-algorithms" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-types", "snarkvm-console-algorithms", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-fields", ] [[package]] name = "snarkvm-circuit-collections" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-types", @@ -2437,7 +2378,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-environment" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "indexmap", "itertools", @@ -2446,45 +2387,45 @@ dependencies = [ "once_cell", "snarkvm-circuit-environment-witness", "snarkvm-console-network", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-r1cs 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-curves", + "snarkvm-fields", + "snarkvm-r1cs", + "snarkvm-utilities", ] [[package]] name = "snarkvm-circuit-environment-witness" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" [[package]] name = "snarkvm-circuit-network" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-algorithms", "snarkvm-circuit-collections", "snarkvm-circuit-types", "snarkvm-console-network", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-fields", ] [[package]] name = "snarkvm-circuit-program" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-account", "snarkvm-circuit-network", "snarkvm-circuit-types", "snarkvm-console-program", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-utilities", ] [[package]] name = "snarkvm-circuit-types" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-address", @@ -2499,7 +2440,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-address" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -2512,7 +2453,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-boolean" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-environment", "snarkvm-console-types-boolean", @@ -2521,7 +2462,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-field" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -2531,20 +2472,20 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-group" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", "snarkvm-circuit-types-field", "snarkvm-circuit-types-scalar", "snarkvm-console-types-group", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-curves", ] [[package]] name = "snarkvm-circuit-types-integers" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -2555,7 +2496,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-scalar" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -2566,7 +2507,7 @@ dependencies = [ [[package]] name = "snarkvm-circuit-types-string" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-circuit-environment", "snarkvm-circuit-types-boolean", @@ -2578,7 +2519,7 @@ dependencies = [ [[package]] name = "snarkvm-compiler" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "anyhow", "colored", @@ -2589,20 +2530,21 @@ dependencies = [ "rand", "rayon", "serde_json", - "snarkvm-algorithms 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-algorithms", "snarkvm-circuit", "snarkvm-console", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-parameters 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-curves", + "snarkvm-fields", + "snarkvm-parameters", + "snarkvm-utilities", + "time", "tracing", ] [[package]] name = "snarkvm-console" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-account", "snarkvm-console-algorithms", @@ -2615,7 +2557,7 @@ dependencies = [ [[package]] name = "snarkvm-console-account" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "base58", "snarkvm-console-network", @@ -2625,19 +2567,19 @@ dependencies = [ [[package]] name = "snarkvm-console-algorithms" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "blake2s_simd", "smallvec", "snarkvm-console-types", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-fields", + "snarkvm-utilities", ] [[package]] name = "snarkvm-console-collections" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "aleo-std", "rayon", @@ -2648,7 +2590,7 @@ dependencies = [ [[package]] name = "snarkvm-console-network" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "anyhow", "itertools", @@ -2658,33 +2600,33 @@ dependencies = [ "snarkvm-console-collections", "snarkvm-console-network-environment", "snarkvm-console-types", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-curves", + "snarkvm-fields", + "snarkvm-utilities", ] [[package]] name = "snarkvm-console-network-environment" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "anyhow", - "bech32 0.9.0", + "bech32", "itertools", "nom", "num-traits", "rand", "rand_xorshift", "serde", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-curves", + "snarkvm-fields", + "snarkvm-utilities", ] [[package]] name = "snarkvm-console-program" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "enum_index", "enum_index_derive", @@ -2701,7 +2643,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-address", @@ -2716,7 +2658,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-address" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2727,7 +2669,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-boolean" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-network-environment", ] @@ -2735,7 +2677,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-field" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2744,7 +2686,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-group" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2755,7 +2697,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-integers" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2765,7 +2707,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-scalar" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2775,7 +2717,7 @@ dependencies = [ [[package]] name = "snarkvm-console-types-string" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "snarkvm-console-network-environment", "snarkvm-console-types-boolean", @@ -2786,64 +2728,21 @@ dependencies = [ [[package]] name = "snarkvm-curves" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "derivative", "rand", "rustc_version", "serde", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", + "snarkvm-fields", + "snarkvm-utilities", "thiserror", ] -[[package]] -name = "snarkvm-curves" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "derivative", - "rand", - "rustc_version", - "serde", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "thiserror", -] - -[[package]] -name = "snarkvm-dpc" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "anyhow", - "base58", - "bech32 0.8.1", - "bincode", - "blake2", - "derivative", - "hex", - "itertools", - "once_cell", - "rand", - "rayon", - "serde", - "serde_json", - "snarkvm-algorithms 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-gadgets", - "snarkvm-parameters 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-r1cs 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "thiserror", - "time", -] - [[package]] name = "snarkvm-fields" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "anyhow", "derivative", @@ -2851,45 +2750,14 @@ dependencies = [ "rand", "rayon", "serde", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "thiserror", -] - -[[package]] -name = "snarkvm-fields" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "anyhow", - "derivative", - "rand", - "rayon", - "serde", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "thiserror", -] - -[[package]] -name = "snarkvm-gadgets" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "anyhow", - "derivative", - "itertools", - "num-traits", - "snarkvm-algorithms 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-r1cs 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", + "snarkvm-utilities", "thiserror", ] [[package]] name = "snarkvm-parameters" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "aleo-std", "anyhow", @@ -2903,64 +2771,31 @@ dependencies = [ "rand", "serde_json", "sha2", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "thiserror", -] - -[[package]] -name = "snarkvm-parameters" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "aleo-std", - "anyhow", - "cfg-if", - "curl", - "hex", - "paste", - "serde_json", - "snarkvm-algorithms 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", + "snarkvm-curves", + "snarkvm-utilities", "thiserror", ] [[package]] name = "snarkvm-r1cs" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "anyhow", "cfg-if", "fxhash", "indexmap", "itertools", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "thiserror", -] - -[[package]] -name = "snarkvm-r1cs" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "anyhow", - "cfg-if", - "fxhash", - "indexmap", - "itertools", - "snarkvm-curves 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-fields 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", - "snarkvm-utilities 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", + "snarkvm-curves", + "snarkvm-fields", + "snarkvm-utilities", "thiserror", ] [[package]] name = "snarkvm-utilities" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ "aleo-std", "anyhow", @@ -2971,46 +2806,16 @@ dependencies = [ "rand_xorshift", "rayon", "serde", - "snarkvm-utilities-derives 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20)", - "thiserror", -] - -[[package]] -name = "snarkvm-utilities" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "aleo-std", - "anyhow", - "bincode", - "num-bigint", - "num_cpus", - "rand", - "rand_xorshift", - "rayon", - "serde", - "snarkvm-utilities-derives 0.7.5 (git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79)", + "snarkvm-utilities-derives", "thiserror", ] [[package]] name = "snarkvm-utilities-derives" version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=84c3e20#84c3e20742f9136ac112639da6ee46aa5a0eaf6f" +source = "git+https://github.com/AleoHQ/snarkVM.git?rev=62de4cf#62de4cfe5a7fabb68b14d0175e922c5414ec19a8" dependencies = [ - "proc-macro-crate 1.1.3", - "proc-macro-error", - "proc-macro2 1.0.40", - "quote 1.0.20", - "syn 1.0.98", -] - -[[package]] -name = "snarkvm-utilities-derives" -version = "0.7.5" -source = "git+https://github.com/AleoHQ/snarkVM.git?rev=85b7a79#85b7a790659168d693ebb93bfe49e3b8808fbb41" -dependencies = [ - "proc-macro-crate 0.1.5", + "proc-macro-crate", "proc-macro-error", "proc-macro2 1.0.40", "quote 1.0.20", diff --git a/Cargo.toml b/Cargo.toml index 5209198cf8..c35b9a872b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,11 +62,11 @@ version = "1.5.3" [dependencies.aleo] git = "https://github.com/AleoHQ/aleo.git" -rev = "38e9d91" +rev = "cbbe6c4" [dependencies.snarkvm] git = "https://github.com/AleoHQ/snarkVM.git" -rev = "84c3e20" +rev = "62de4cf" features = ["circuit", "console", "parallel"] [dependencies.backtrace] diff --git a/compiler/ast/src/expressions/circuit_init.rs b/compiler/ast/src/expressions/circuit_init.rs index a1e59ab4b4..e201c398a0 100644 --- a/compiler/ast/src/expressions/circuit_init.rs +++ b/compiler/ast/src/expressions/circuit_init.rs @@ -13,6 +13,8 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . + +use leo_span::sym; use super::*; /// An initializer for a single field / variable of a circuit initializer expression. @@ -50,6 +52,38 @@ pub struct CircuitExpression { pub span: Span, } +impl CircuitExpression { + /// Returns true if the record has all required fields and visibility. + pub fn check_record(&self) -> bool { + let has_member = |symbol| self + .members + .iter() + .any(|variable| variable.identifier.name == symbol); + + has_member(sym::owner) + && has_member(sym::gates) + && has_member(sym::_nonce) + } + + /// Returns the circuit as a record interface with visibility. + pub fn to_record_string(&self) -> String { + format!( + "{{{}}}", + self.members + .iter() + .map(|variable| { + // Write default visibility. + if variable.identifier.name == sym::_nonce { + format!("{}.public", variable) + } else { + format!("{}.private", variable) + } + }) + .collect::>() + .join(", ")) + } +} + impl fmt::Display for CircuitExpression { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!( diff --git a/compiler/ast/src/input/input_ast.rs b/compiler/ast/src/input/input_ast.rs index ad8922305b..6eea381613 100644 --- a/compiler/ast/src/input/input_ast.rs +++ b/compiler/ast/src/input/input_ast.rs @@ -58,16 +58,9 @@ impl InputAst { Some(circuit) => match circuit.is_record { false => definition.value.to_string(), true => match &definition.value { + // Print out the record interface with visibility. Expression::Circuit(circuit_expression) => { - format!( - "{{{}}}", - circuit_expression - .members - .iter() - .map(|x| format!("{}.private", x)) - .collect::>() - .join(", ") - ) + circuit_expression.to_record_string() } _ => panic!("Input error: Expected a circuit expression."), }, diff --git a/compiler/compiler/Cargo.toml b/compiler/compiler/Cargo.toml index c9a75de03a..1ab8c211c2 100644 --- a/compiler/compiler/Cargo.toml +++ b/compiler/compiler/Cargo.toml @@ -47,7 +47,7 @@ version = "1.4.0" [dev-dependencies.snarkvm] git = "https://github.com/AleoHQ/snarkVM.git" -rev = "84c3e20" +rev = "62de4cf" features = ["circuit", "console", "parallel"] [dev-dependencies.serde] diff --git a/compiler/parser/Cargo.toml b/compiler/parser/Cargo.toml index 7ee71979b6..418a518103 100644 --- a/compiler/parser/Cargo.toml +++ b/compiler/parser/Cargo.toml @@ -30,9 +30,10 @@ version = "1.5.3" path = "../span" version = "1.5.3" -[dependencies.snarkvm-dpc] +[dependencies.snarkvm-console] git = "https://github.com/AleoHQ/snarkVM.git" -rev = "85b7a79" +rev = "62de4cf" +features = ["account", "network"] [dependencies.clap] version = "3.2" diff --git a/compiler/parser/src/parser/context.rs b/compiler/parser/src/parser/context.rs index 23e19e5a1d..0e43a02c08 100644 --- a/compiler/parser/src/parser/context.rs +++ b/compiler/parser/src/parser/context.rs @@ -39,6 +39,8 @@ pub(crate) struct ParserContext<'a> { pub(crate) prev_token: SpannedToken, /// true if parsing an expression for if and loop statements -- means circuit inits are not legal pub(crate) disallow_circuit_construction: bool, + /// true if parsing an identifier inside an input file. + pub(crate) allow_identifier_underscores: bool, } /// Dummy span used to appease borrow checker. @@ -59,6 +61,7 @@ impl<'a> ParserContext<'a> { let mut p = Self { handler, disallow_circuit_construction: false, + allow_identifier_underscores: false, prev_token: token.clone(), token, tokens, diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index 6c47d5fcbf..fc7c965eba 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -17,7 +17,8 @@ use super::*; use leo_errors::{ParserError, Result}; -use snarkvm_dpc::{prelude::Address, testnet2::Testnet2}; +use snarkvm_console::{account::Address, network::Testnet3}; +use leo_span::Symbol; const INT_TYPES: &[Token] = &[ Token::I8, @@ -459,7 +460,14 @@ impl ParserContext<'_> { } fn parse_circuit_member(&mut self) -> Result { - let identifier = self.expect_identifier()?; + let identifier = if self.allow_identifier_underscores && self.eat(&Token::Underscore) { + // Allow `_nonce` for circuit records. + let identifier_without_underscore = self.expect_identifier()?; + Identifier::new(Symbol::intern(&format!("_{}", identifier_without_underscore.name))) + } else { + self.expect_identifier()? + }; + let expression = if self.eat(&Token::Colon) { // Parse individual circuit variable declarations. Some(self.parse_expression()?) @@ -543,11 +551,11 @@ impl ParserContext<'_> { } Token::True => Expression::Literal(Literal::Boolean(true, span)), Token::False => Expression::Literal(Literal::Boolean(false, span)), - Token::AddressLit(addr) => { - if addr.parse::>().is_err() { - self.emit_err(ParserError::invalid_address_lit(&addr, span)); + Token::AddressLit(address_string) => { + if address_string.parse::>().is_err() { + self.emit_err(ParserError::invalid_address_lit(&address_string, span)); } - Expression::Literal(Literal::Address(addr, span)) + Expression::Literal(Literal::Address(address_string, span)) } Token::StaticString(value) => Expression::Literal(Literal::String(value, span)), Token::Identifier(name) => { diff --git a/compiler/parser/src/parser/input.rs b/compiler/parser/src/parser/input.rs index 70edcec25d..1db4e3d824 100644 --- a/compiler/parser/src/parser/input.rs +++ b/compiler/parser/src/parser/input.rs @@ -21,6 +21,8 @@ use leo_errors::{ParserError, Result}; impl ParserContext<'_> { /// Returns a [`ParsedInputFile`] struct filled with the data acquired in the file. pub(crate) fn parse_input(&mut self) -> Result { + // Allow underscores in identifiers for input record declarations. + self.allow_identifier_underscores = true; let mut sections = Vec::new(); while self.has_next() { @@ -31,6 +33,9 @@ impl ParserContext<'_> { } } + // Do not allow underscores in identifiers outside of input files. + self.allow_identifier_underscores = false; + Ok(InputAst { sections }) } diff --git a/compiler/parser/src/tokenizer/lexer.rs b/compiler/parser/src/tokenizer/lexer.rs index c76112876d..49cc54c040 100644 --- a/compiler/parser/src/tokenizer/lexer.rs +++ b/compiler/parser/src/tokenizer/lexer.rs @@ -385,12 +385,12 @@ impl Token { '^' => return match_two(&mut input, Token::BitXor, '=', Token::BitXorAssign), _ => (), } - if let Some(ident) = eat_identifier(&mut input) { + if let Some(identifier) = eat_identifier(&mut input) { return Ok(( - ident.len(), + identifier.len(), // todo: match on symbols instead of hard-coded &str's - match &*ident { - x if x.starts_with("aleo1") => Token::AddressLit(ident), + match &*identifier { + x if x.starts_with("aleo1") => Token::AddressLit(identifier), "address" => Token::Address, "bool" => Token::Bool, "circuit" => Token::Circuit, @@ -423,7 +423,7 @@ impl Token { "u32" => Token::U32, "u64" => Token::U64, "u128" => Token::U128, - _ => Token::Identifier(Symbol::intern(&ident)), + _ => Token::Identifier(Symbol::intern(&identifier)), }, )); } diff --git a/compiler/span/src/symbol.rs b/compiler/span/src/symbol.rs index d20a3ad7cf..cd74fca9fd 100644 --- a/compiler/span/src/symbol.rs +++ b/compiler/span/src/symbol.rs @@ -214,6 +214,7 @@ symbols! { private, owner, gates, + _nonce, // input file registers, diff --git a/examples/token/inputs/token.in b/examples/token/inputs/token.in index 026e9c28b6..6e69f24922 100644 --- a/examples/token/inputs/token.in +++ b/examples/token/inputs/token.in @@ -8,6 +8,7 @@ token: Token = Token { owner: aleo1ht2a9q0gsd38j0se4t9lsfulxgqrens2vgzgry3pkvs93xrrzu8s892zn7, gates: 0u64, amount: 100u64, + _nonce: 0group, }; to: address = aleo1mgfq6g40l6zkhsm063n3uhr43qk5e0zsua5aszeq5080dsvlcvxsn0rrau; amount: u64 = 50u64; \ No newline at end of file diff --git a/tests/compiler/records/inputs/address.in b/tests/compiler/records/inputs/address.in deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tests/expectations/compiler/address/binary.out b/tests/expectations/compiler/address/binary.out deleted file mode 100644 index e2c1307824..0000000000 --- a/tests/expectations/compiler/address/binary.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: fe880c907d0257c9fc8314b8b98cabd8a8282b587d2d618408cc3cd8e528fda5 - initial_ast: c177fab4c6cc5eed0d032d8e8cd7524696c9e25b926e1201bf387f1d45eedd77 - unrolled_ast: c177fab4c6cc5eed0d032d8e8cd7524696c9e25b926e1201bf387f1d45eedd77 - ssa_ast: 3c0eb3cb1422b94d43c2f2448a6d46d7709710c553dbbb090bcd9d5155670095 diff --git a/tests/expectations/compiler/address/branch.out b/tests/expectations/compiler/address/branch.out deleted file mode 100644 index 1ba16c5a24..0000000000 --- a/tests/expectations/compiler/address/branch.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 00f5aba05e4efae5a125eb52f02f16400132085b8a34919d910aa40c6c405a22 - initial_ast: 6bb20402ba03af83e6df6d5f98c7ff2fdde0035089f88f8d07d3c876e42931c8 - unrolled_ast: 6bb20402ba03af83e6df6d5f98c7ff2fdde0035089f88f8d07d3c876e42931c8 - ssa_ast: b0ed5ffb139d6666e4cf2f54dcd972ed9deeb2fa61fd7974dc21841a25edbb0a diff --git a/tests/expectations/compiler/address/equal.out b/tests/expectations/compiler/address/equal.out deleted file mode 100644 index 7e052e70ed..0000000000 --- a/tests/expectations/compiler/address/equal.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 03e9df3bd1409f4af9e2a7f55130bc52f27d41f32a624ffa27f0ab114bf6fbf4 - initial_ast: f982c042353b69179f192a11adca20cb7b43121af83a3f2711246f49e639d486 - unrolled_ast: f982c042353b69179f192a11adca20cb7b43121af83a3f2711246f49e639d486 - ssa_ast: bcb19c84428c7c5aa1f71e688512d56287291770dfaea831fd6a649b7c4257b3 diff --git a/tests/expectations/compiler/address/gt_fail.out b/tests/expectations/compiler/address/gt_fail.out deleted file mode 100644 index 39b023698d..0000000000 --- a/tests/expectations/compiler/address/gt_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372021]: Comparison `>` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x > sender;\n | ^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/gte_fail.out b/tests/expectations/compiler/address/gte_fail.out deleted file mode 100644 index ddc0dce8d6..0000000000 --- a/tests/expectations/compiler/address/gte_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372021]: Comparison `>=` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x >= sender;\n | ^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/lt_fail.out b/tests/expectations/compiler/address/lt_fail.out deleted file mode 100644 index a145767772..0000000000 --- a/tests/expectations/compiler/address/lt_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372021]: Comparison `<` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x < sender;\n | ^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/lte_fail.out b/tests/expectations/compiler/address/lte_fail.out deleted file mode 100644 index a6631826f8..0000000000 --- a/tests/expectations/compiler/address/lte_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372021]: Comparison `<=` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x <= sender;\n | ^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/ternary.out b/tests/expectations/compiler/address/ternary.out deleted file mode 100644 index 1e195726ca..0000000000 --- a/tests/expectations/compiler/address/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ec3cfeb93ea66a530150a5c5e2bd396688b3ef9b9fb0bcb961c62dac4daa064e - - initial_input_ast: cb1d48114c10b2b732ad47a46fc8d05bf7a3e783da89e7f00065244bfc8d15c8 - initial_ast: 34fa13578b50765e2d6e3ccd007bf8d92a036c93269a135001862b00c25191fb - unrolled_ast: 34fa13578b50765e2d6e3ccd007bf8d92a036c93269a135001862b00c25191fb - ssa_ast: 7b6e63a841b22403748da3a1e959fc112526c89c1f594b0c53e658fe6f725806 diff --git a/tests/expectations/compiler/boolean/and.out b/tests/expectations/compiler/boolean/and.out deleted file mode 100644 index ff50953dae..0000000000 --- a/tests/expectations/compiler/boolean/and.out +++ /dev/null @@ -1,12 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: da1d028d28792f9625d528ebee6f3abd09b21a7bfa6bb3be5d8c3ad01d974558 - - initial_input_ast: 5f19f0086b0509628dc64db0f69000d599bc761cb8e3125144de44367081126a - - initial_input_ast: 4c5eeffd0306b20c8deece509782b81ea8583245f650e40a4a300d517f6ed5f4 - - initial_input_ast: a56b3f9908dec2acaed302691d4fe0c2cf046f0deb8f188f617e042e75502f71 - initial_ast: 55d744a3c33451d66b14c795dc447e41de0cf5639b0ebef7b69edf54c5d89093 - unrolled_ast: 55d744a3c33451d66b14c795dc447e41de0cf5639b0ebef7b69edf54c5d89093 - ssa_ast: 8d64b5c090f828416d6468f309ce7266cc91b115f50bd4189edb5555b60f3b3c diff --git a/tests/expectations/compiler/boolean/conditional.out b/tests/expectations/compiler/boolean/conditional.out deleted file mode 100644 index 64b16a5df1..0000000000 --- a/tests/expectations/compiler/boolean/conditional.out +++ /dev/null @@ -1,12 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 194c39c41573171b5ba154f70577279b4c535465fe4475c889ea693a81b316c7 - - initial_input_ast: 9af3ce639269ea18073cb3b1a19520ba98f0484a04b20526584131d18c54712c - - initial_input_ast: 7a1c39dec2388ab801496ceb17ca85665d2f515269929925b7cc9018e14297ea - - initial_input_ast: 650984ca5077d11a815889421656b7735b4c6bd320bdf68b4deb87dfc0f49388 - initial_ast: 83c406dac8e86b59a28af6e4ea4b26682e27d54d2f4388e5a07241b5c65cb3fb - unrolled_ast: 83c406dac8e86b59a28af6e4ea4b26682e27d54d2f4388e5a07241b5c65cb3fb - ssa_ast: 60c54965341cc24a373b1725e9bb5b06c4866b718cc447bbbbd471db3a3eb7f1 diff --git a/tests/expectations/compiler/boolean/equal.out b/tests/expectations/compiler/boolean/equal.out deleted file mode 100644 index bfdeb855b5..0000000000 --- a/tests/expectations/compiler/boolean/equal.out +++ /dev/null @@ -1,12 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: da1d028d28792f9625d528ebee6f3abd09b21a7bfa6bb3be5d8c3ad01d974558 - - initial_input_ast: 5f19f0086b0509628dc64db0f69000d599bc761cb8e3125144de44367081126a - - initial_input_ast: 4c5eeffd0306b20c8deece509782b81ea8583245f650e40a4a300d517f6ed5f4 - - initial_input_ast: a56b3f9908dec2acaed302691d4fe0c2cf046f0deb8f188f617e042e75502f71 - initial_ast: cebfbbe734699586c7aecb5658acb031a5575b451bfa73d0705c1760eaff4794 - unrolled_ast: cebfbbe734699586c7aecb5658acb031a5575b451bfa73d0705c1760eaff4794 - ssa_ast: 6f816b2cad1190d363074dc040aad24e814e72902f0a87c93c9a0c3a400aa15a diff --git a/tests/expectations/compiler/boolean/not_equal.out b/tests/expectations/compiler/boolean/not_equal.out deleted file mode 100644 index a4b7ea5d8c..0000000000 --- a/tests/expectations/compiler/boolean/not_equal.out +++ /dev/null @@ -1,12 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: da1d028d28792f9625d528ebee6f3abd09b21a7bfa6bb3be5d8c3ad01d974558 - - initial_input_ast: 5f19f0086b0509628dc64db0f69000d599bc761cb8e3125144de44367081126a - - initial_input_ast: 4c5eeffd0306b20c8deece509782b81ea8583245f650e40a4a300d517f6ed5f4 - - initial_input_ast: a56b3f9908dec2acaed302691d4fe0c2cf046f0deb8f188f617e042e75502f71 - initial_ast: 799b12d7d00d994098c55ad350d9e6dcecc8ac5c094005a121c5a0b2fd97d14d - unrolled_ast: 799b12d7d00d994098c55ad350d9e6dcecc8ac5c094005a121c5a0b2fd97d14d - ssa_ast: 2d3f104901633eeda4a94848c0015d1ebcfb130052b8ce947354cb67a6a9e53c diff --git a/tests/expectations/compiler/boolean/operator_methods.out b/tests/expectations/compiler/boolean/operator_methods.out deleted file mode 100644 index 3570c046f7..0000000000 --- a/tests/expectations/compiler/boolean/operator_methods.out +++ /dev/null @@ -1,12 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e0fdf4f304b80e670735af85014968ae21f78d309ab9ad55bdc5e02167dcbb54 - - initial_input_ast: 3254bbbc78ad3eec1c6667ade0b3d3da5ee17c7e569118cc1c771ba607e79ab0 - - initial_input_ast: 19f1be52a19445695f23724e1979b362dd3fcf31aace997c829e2206dc1cccbe - - initial_input_ast: d2fc1992beaf062678bbf6c3e862820dbbea39926589afcdc46c19c8669f0e37 - initial_ast: 183ddb57bc8f209613ad3d93465ec5ca782268d62748ef090312b90c378e50ce - unrolled_ast: 183ddb57bc8f209613ad3d93465ec5ca782268d62748ef090312b90c378e50ce - ssa_ast: 6c71c2d58a2748b9f349fcf0c7d095d13777587c79c0a43f3d93c53e957b26f1 diff --git a/tests/expectations/compiler/boolean/or.out b/tests/expectations/compiler/boolean/or.out deleted file mode 100644 index 2bba97b286..0000000000 --- a/tests/expectations/compiler/boolean/or.out +++ /dev/null @@ -1,12 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: da1d028d28792f9625d528ebee6f3abd09b21a7bfa6bb3be5d8c3ad01d974558 - - initial_input_ast: 5f19f0086b0509628dc64db0f69000d599bc761cb8e3125144de44367081126a - - initial_input_ast: 4c5eeffd0306b20c8deece509782b81ea8583245f650e40a4a300d517f6ed5f4 - - initial_input_ast: a56b3f9908dec2acaed302691d4fe0c2cf046f0deb8f188f617e042e75502f71 - initial_ast: 05f3b4b5be5b81f6ba33041f135a04caeea5733c41ed1c8d9890ca2ae9807b80 - unrolled_ast: 05f3b4b5be5b81f6ba33041f135a04caeea5733c41ed1c8d9890ca2ae9807b80 - ssa_ast: bf96cc9a3e0c84f6ac7e49b34823628e5f43dcaeaf888bf78186b9d618c1e313 diff --git a/tests/expectations/compiler/circuits/circuit_function_namespace_conflict_fail.out b/tests/expectations/compiler/circuits/circuit_function_namespace_conflict_fail.out deleted file mode 100644 index 6db7ce9cdb..0000000000 --- a/tests/expectations/compiler/circuits/circuit_function_namespace_conflict_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:7:16\n |\n 7 | function Foo() {}\n | ^" diff --git a/tests/expectations/compiler/circuits/duplicate_circuit_variable.out b/tests/expectations/compiler/circuits/duplicate_circuit_variable.out deleted file mode 100644 index 1beb7652ae..0000000000 --- a/tests/expectations/compiler/circuits/duplicate_circuit_variable.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372015]: Circuit Bar defined with more than one member with the same name.\n --> compiler-test:3:1\n |\n 3 | circuit Bar {\n 4 | x: u32,\n 5 | x: u32,\n 6 | }\n | ^\n" diff --git a/tests/expectations/compiler/circuits/duplicate_name_context.out b/tests/expectations/compiler/circuits/duplicate_name_context.out deleted file mode 100644 index 02541292d0..0000000000 --- a/tests/expectations/compiler/circuits/duplicate_name_context.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EAST0372009]: circuit `Bar` shadowed by\n --> compiler-test:8:5\n |\n 8 | const Bar: u32 = 66u32;\n | ^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/circuits/inline.out b/tests/expectations/compiler/circuits/inline.out deleted file mode 100644 index e3964a99ba..0000000000 --- a/tests/expectations/compiler/circuits/inline.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: ab13abfe19f1ce1a3bdc6e632f34bba90b1534dae5b3354d22b0c659ecfa5fde - unrolled_ast: ab13abfe19f1ce1a3bdc6e632f34bba90b1534dae5b3354d22b0c659ecfa5fde - ssa_ast: 8379d97641e8e302534294f0a6215d095bdd3ba554d704c2e8c7d1e8c258a21d diff --git a/tests/expectations/compiler/circuits/inline_fail.out b/tests/expectations/compiler/circuits/inline_fail.out deleted file mode 100644 index 98cea7a383..0000000000 --- a/tests/expectations/compiler/circuits/inline_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:7:17\n |\n 7 | function main() {\n | ^" diff --git a/tests/expectations/compiler/circuits/inline_member_fail.out b/tests/expectations/compiler/circuits/inline_member_fail.out deleted file mode 100644 index 98cea7a383..0000000000 --- a/tests/expectations/compiler/circuits/inline_member_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:7:17\n |\n 7 | function main() {\n | ^" diff --git a/tests/expectations/compiler/circuits/inline_member_pass.out b/tests/expectations/compiler/circuits/inline_member_pass.out deleted file mode 100644 index 64a8608844..0000000000 --- a/tests/expectations/compiler/circuits/inline_member_pass.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^\nError [ETYC0372004]: Could not determine the type of `b`\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^\nError [ETYC0372003]: Expected type `u8` but type `no type` was found\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/circuits/inline_undefined.out b/tests/expectations/compiler/circuits/inline_undefined.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/circuits/inline_undefined.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/circuits/member_variable.out b/tests/expectations/compiler/circuits/member_variable.out deleted file mode 100644 index f98f5533ec..0000000000 --- a/tests/expectations/compiler/circuits/member_variable.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 29f6139d908d390f890f04d8ee620757d29b7f71cd48c46ff65bc1e70aae840c - initial_ast: d99ea689ff68e085c40b86f1a018b05bf96cdfa82e9828d1df08c3294edc900e - unrolled_ast: d99ea689ff68e085c40b86f1a018b05bf96cdfa82e9828d1df08c3294edc900e - ssa_ast: d3501b6d89b4191d24bab8ca2f11ab665e5fe48f254aafd21e832824f322be00 diff --git a/tests/expectations/compiler/circuits/member_variable_fail.out b/tests/expectations/compiler/circuits/member_variable_fail.out deleted file mode 100644 index 98cea7a383..0000000000 --- a/tests/expectations/compiler/circuits/member_variable_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:7:17\n |\n 7 | function main() {\n | ^" diff --git a/tests/expectations/compiler/console/assert.out b/tests/expectations/compiler/console/assert.out deleted file mode 100644 index d62969441f..0000000000 --- a/tests/expectations/compiler/console/assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 15a1f00a6c0ca8141202e45e534b7afd196e9391c184a4efd94f0d0ccf04a59d - initial_ast: 517671a3a7da0848144f535dde8d28aefcabefa62d9938bccac16c786b15c8d2 - unrolled_ast: 517671a3a7da0848144f535dde8d28aefcabefa62d9938bccac16c786b15c8d2 - ssa_ast: 030306c3161e8b351028499e05e69fe56f093b174be4d2a76181a06383318b2c diff --git a/tests/expectations/compiler/console/error.out b/tests/expectations/compiler/console/error.out deleted file mode 100644 index d975994073..0000000000 --- a/tests/expectations/compiler/console/error.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 14cd2c781b154a9037de84e945cfb348e9c587cef94d3e1f3be83e4306f92a0e - initial_ast: 4c992083d0b9bc51d1600eb3841c838936cf9669cdd46ea65bfb5bd22e07b591 - unrolled_ast: 4c992083d0b9bc51d1600eb3841c838936cf9669cdd46ea65bfb5bd22e07b591 - ssa_ast: 3df2ca289184727370d8660e6ff607bcb810291e08db1e0b0211897814962c2a diff --git a/tests/expectations/compiler/console/log.out b/tests/expectations/compiler/console/log.out deleted file mode 100644 index 72bcd7d540..0000000000 --- a/tests/expectations/compiler/console/log.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: fd19d82c3aba921f01b37174e3eb7fb603438506fe511657e21235b9fb3647d2 - initial_ast: 7c157486b4b4de54001520eaad505a8a4d7d33bd43cfc239fc6136df2e11db6e - unrolled_ast: 7c157486b4b4de54001520eaad505a8a4d7d33bd43cfc239fc6136df2e11db6e - ssa_ast: 5d2be7fa1f3c6fae4f9997c1193377f73c52ef8cec3371e7b7f238e783d66028 diff --git a/tests/expectations/compiler/console/log_conditional.out b/tests/expectations/compiler/console/log_conditional.out deleted file mode 100644 index 9d4188d271..0000000000 --- a/tests/expectations/compiler/console/log_conditional.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 12a0efa27e9b65c045088e471e6c254bb71c60cca4eb369f41e83a29301130cf - - initial_input_ast: 5622eb396c2aea656e3bfa6b1ad0d39fce6bc221978a13c9be4d750da46cfc48 - initial_ast: bed59c01a4008b6d778a8d0712db49e6649249d3e56f23705689ed477e70b188 - unrolled_ast: bed59c01a4008b6d778a8d0712db49e6649249d3e56f23705689ed477e70b188 - ssa_ast: c590c29fcf41b5f9c532cf5f62ab960079ad16743265e47d41dcc20dc62b1513 diff --git a/tests/expectations/compiler/console/log_fail.out b/tests/expectations/compiler/console/log_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/console/log_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/console/log_input.out b/tests/expectations/compiler/console/log_input.out deleted file mode 100644 index 46f3858c15..0000000000 --- a/tests/expectations/compiler/console/log_input.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 0961f603812e241567b6e3ef5adb458309f1829eb2c08a216efccb17bea89faf - initial_ast: 3b65cb5a74cdc704921cc74196298d9eeb4c6aad4e583bf68cf97967fdb10c8d - unrolled_ast: 3b65cb5a74cdc704921cc74196298d9eeb4c6aad4e583bf68cf97967fdb10c8d - ssa_ast: e536ba2e6e50e4e54e01868b443411be1522bf12a4671d10c5ec01459b1ee6ca diff --git a/tests/expectations/compiler/console/log_parameter.out b/tests/expectations/compiler/console/log_parameter.out deleted file mode 100644 index 53f94d9267..0000000000 --- a/tests/expectations/compiler/console/log_parameter.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: f18a0e019ca4719c4c4ef5b7313f562c3bc9581819d161d84566e706f3765249 - initial_ast: 0948ec0eab95b6e7505d1dc57171d331d4761a5862aba39a824d8eae4fc7ca0f - unrolled_ast: 0948ec0eab95b6e7505d1dc57171d331d4761a5862aba39a824d8eae4fc7ca0f - ssa_ast: 29599104b1235b24eed567663d0ea40c667df5759033297767f3e0cebadd7f93 diff --git a/tests/expectations/compiler/console/log_parameter_many.out b/tests/expectations/compiler/console/log_parameter_many.out deleted file mode 100644 index 36ab7b80c0..0000000000 --- a/tests/expectations/compiler/console/log_parameter_many.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 16910a94cf1f803ae6425ae6bee9422b01651c2c243b5e46807dc3191d169e64 - initial_ast: 67374111d3b6104af14a6a9246b1c5151171512d98c904e62183d29ed0b1e62f - unrolled_ast: 67374111d3b6104af14a6a9246b1c5151171512d98c904e62183d29ed0b1e62f - ssa_ast: 5ecb75e68a6ee324e63efba97a9bb5d4ab1f453be77dd781542c31fe23587aa2 diff --git a/tests/expectations/compiler/console/log_parameter_unkown_fail.out b/tests/expectations/compiler/console/log_parameter_unkown_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/console/log_parameter_unkown_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/console/log_string.out b/tests/expectations/compiler/console/log_string.out deleted file mode 100644 index 4924c283fb..0000000000 --- a/tests/expectations/compiler/console/log_string.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'formatted static_string', found 'hello'\n --> compiler-test:5:17\n |\n 5 | console.log(hello);\n | ^^^^^" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_commit.out b/tests/expectations/compiler/core/algorithms/bhp1024_commit.out deleted file mode 100644 index 790888e063..0000000000 --- a/tests/expectations/compiler/core/algorithms/bhp1024_commit.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 27bbdd2fe5dc1a75a4bd2aa543e12b7c284ab950028657fc0087dfef631664b9 - initial_ast: 679d4f1ad4a54d3821e5f85c64e5e253dbf8ee07aaac7fc7ec2e086f2cbaa909 - unrolled_ast: 679d4f1ad4a54d3821e5f85c64e5e253dbf8ee07aaac7fc7ec2e086f2cbaa909 - ssa_ast: 6860f1b6b49a9bd0bf1c0f4afa8ad0067036196b5de4b17b26bbae9657f204f9 diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_hash.out b/tests/expectations/compiler/core/algorithms/bhp1024_hash.out deleted file mode 100644 index 2e069d2501..0000000000 --- a/tests/expectations/compiler/core/algorithms/bhp1024_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4a84cbe8cc7ea360153e9da6f2d475dcbb4921c329fe8dd3b4cdca617b6d38a6 - initial_ast: 8a961f82417010275495fdcc212292b809a71969396604e49e745fef94b3086f - unrolled_ast: 8a961f82417010275495fdcc212292b809a71969396604e49e745fef94b3086f - ssa_ast: 3d31265bf4923378c3202c852c599fad1dcd196920c23b4596186f1dcff0abe9 diff --git a/tests/expectations/compiler/core/algorithms/bhp256_commit.out b/tests/expectations/compiler/core/algorithms/bhp256_commit.out deleted file mode 100644 index a8291606ab..0000000000 --- a/tests/expectations/compiler/core/algorithms/bhp256_commit.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 71055ce4ed5911b2afac14a8719573d4ffb9a72959e060f284122350dbda53df - initial_ast: 46df628c79eeda6fe31fdee9cd1dccb921b45efc9bc203d5d9ce6bda069f6be2 - unrolled_ast: 46df628c79eeda6fe31fdee9cd1dccb921b45efc9bc203d5d9ce6bda069f6be2 - ssa_ast: b2911915da86b51ed768cd8eb81f6b0c6aeda73de1e76278a75db44c3cc3fd76 diff --git a/tests/expectations/compiler/core/algorithms/bhp256_hash.out b/tests/expectations/compiler/core/algorithms/bhp256_hash.out deleted file mode 100644 index 8e9639ff5c..0000000000 --- a/tests/expectations/compiler/core/algorithms/bhp256_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5fa4b39f9cd209357769110ef49f609e2acce0c38f9def3f2ed7fcb4ce1b2240 - initial_ast: 78c14952814d10190e26fa2fa4470e6af854fd6cff96e8c3c768662daa2aa005 - unrolled_ast: 78c14952814d10190e26fa2fa4470e6af854fd6cff96e8c3c768662daa2aa005 - ssa_ast: 484e4cbfade2151163bc2c09b542c6746fc9fbcf208473454aa08002c1e13c1f diff --git a/tests/expectations/compiler/core/algorithms/bhp512_commit.out b/tests/expectations/compiler/core/algorithms/bhp512_commit.out deleted file mode 100644 index 8046ac7d3a..0000000000 --- a/tests/expectations/compiler/core/algorithms/bhp512_commit.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 71055ce4ed5911b2afac14a8719573d4ffb9a72959e060f284122350dbda53df - initial_ast: 505d1cdcee0dac47f49fea5f7af40c20a2262677aa7d8caf3b7051f4b5c70a6e - unrolled_ast: 505d1cdcee0dac47f49fea5f7af40c20a2262677aa7d8caf3b7051f4b5c70a6e - ssa_ast: cdccc90d8023edcf5e6ef7ab7dc42fe8812889cbbf6bb5bcf74a5628edc7d2eb diff --git a/tests/expectations/compiler/core/algorithms/bhp512_hash.out b/tests/expectations/compiler/core/algorithms/bhp512_hash.out deleted file mode 100644 index 76b005620b..0000000000 --- a/tests/expectations/compiler/core/algorithms/bhp512_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5fa4b39f9cd209357769110ef49f609e2acce0c38f9def3f2ed7fcb4ce1b2240 - initial_ast: 0f72dc8f0fe5a8bf44067f5928a1835d0fc58551cda0280400060ff3519e02e2 - unrolled_ast: 0f72dc8f0fe5a8bf44067f5928a1835d0fc58551cda0280400060ff3519e02e2 - ssa_ast: 3da7df0dd03e5215a9df1095f875ecaaa2c549810b961b3444a168fe5cccde9a diff --git a/tests/expectations/compiler/core/algorithms/bhp768_commit.out b/tests/expectations/compiler/core/algorithms/bhp768_commit.out deleted file mode 100644 index ce4b77c210..0000000000 --- a/tests/expectations/compiler/core/algorithms/bhp768_commit.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 71055ce4ed5911b2afac14a8719573d4ffb9a72959e060f284122350dbda53df - initial_ast: 1697ade1991b3fe9489d04a4b1c9d2f85defceea27455664a8dd6aad9d67c363 - unrolled_ast: 1697ade1991b3fe9489d04a4b1c9d2f85defceea27455664a8dd6aad9d67c363 - ssa_ast: ebb84c20196355f32d94db47d1b594ffd6c8ae078f47cf5f05986aa32b894185 diff --git a/tests/expectations/compiler/core/algorithms/bhp768_hash.out b/tests/expectations/compiler/core/algorithms/bhp768_hash.out deleted file mode 100644 index 787f56316d..0000000000 --- a/tests/expectations/compiler/core/algorithms/bhp768_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5fa4b39f9cd209357769110ef49f609e2acce0c38f9def3f2ed7fcb4ce1b2240 - initial_ast: af795006736c973728c5d91f2ce6a4771dca2b71249e7d2c7d189326918a168f - unrolled_ast: af795006736c973728c5d91f2ce6a4771dca2b71249e7d2c7d189326918a168f - ssa_ast: 60cd32ce055a0a051d8a0894ec014ad4a90b76c27a5ee18463373ec2fb5fc1fe diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_hash.out b/tests/expectations/compiler/core/algorithms/pedersen128_hash.out deleted file mode 100644 index 4a4186e895..0000000000 --- a/tests/expectations/compiler/core/algorithms/pedersen128_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 356dd963e90ec1d3b56f169372c9e9bb2b70d053df96359cfd150679919c758a - initial_ast: 96d1ffc3060c89b3441c0fc5bc8e8b7d9a6982117c6634b0c7c26b1fe0be587a - unrolled_ast: 96d1ffc3060c89b3441c0fc5bc8e8b7d9a6982117c6634b0c7c26b1fe0be587a - ssa_ast: 3788cd3b3b7ffe50fabdaa88d8f61452a14da116622ccdb14a34bdff848e2d17 diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_hash.out b/tests/expectations/compiler/core/algorithms/pedersen64_hash.out deleted file mode 100644 index e65acc61aa..0000000000 --- a/tests/expectations/compiler/core/algorithms/pedersen64_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5395306a6ab6901b3c5df094b3b49dbe5f29fb5886c5f0718097fbe5acd7602e - initial_ast: cf4a7dbbf0e7f4d0518c62104d6e89f4eff178bab8df5417286d9214a2704401 - unrolled_ast: cf4a7dbbf0e7f4d0518c62104d6e89f4eff178bab8df5417286d9214a2704401 - ssa_ast: 663b8b6703900c217dfef21d2b52162c49eb48f2fffc74d7054db99cd5e6d669 diff --git a/tests/expectations/compiler/core/algorithms/pedersen_fail.out b/tests/expectations/compiler/core/algorithms/pedersen_fail.out deleted file mode 100644 index bcfbdf3384..0000000000 --- a/tests/expectations/compiler/core/algorithms/pedersen_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372007]: Expected one type from `boolean, i8, i16, i32, i64, u8, u16, u32, u64, string`, but got `u128`\n --> compiler-test:4:20\n |\n 4 | let a: group = Pedersen64::hash(1u128);\n | ^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372003]: Expected type `group` but type `field` was found\n --> compiler-test:4:20\n |\n 4 | let a: group = Pedersen64::hash(1u128);\n | ^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/core/algorithms/poseidon2_hash.out b/tests/expectations/compiler/core/algorithms/poseidon2_hash.out deleted file mode 100644 index dcf35ec571..0000000000 --- a/tests/expectations/compiler/core/algorithms/poseidon2_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 67384917f58c90880ca198b9a636e84c55d97b1068a3c88c1c4734577c798577 - initial_ast: 58d78478c0f85a019221ebdc21e79083d80f70774210934a18eee5fce7d588d1 - unrolled_ast: 58d78478c0f85a019221ebdc21e79083d80f70774210934a18eee5fce7d588d1 - ssa_ast: 4ee97e337b3cf59243e63f1339f4e5a060cc38d45378e6bb1a040ff4ba5320c6 diff --git a/tests/expectations/compiler/core/algorithms/poseidon4_hash.out b/tests/expectations/compiler/core/algorithms/poseidon4_hash.out deleted file mode 100644 index 79422fcfe8..0000000000 --- a/tests/expectations/compiler/core/algorithms/poseidon4_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 67384917f58c90880ca198b9a636e84c55d97b1068a3c88c1c4734577c798577 - initial_ast: 086408c110059f1af409ca0dfbfadf85b8c3ed55f28bc76e133bc57cf832ed21 - unrolled_ast: 086408c110059f1af409ca0dfbfadf85b8c3ed55f28bc76e133bc57cf832ed21 - ssa_ast: 3681b11adb8495432eb3e13378f5b70030bd7c643d8765ae6251a2f17120139f diff --git a/tests/expectations/compiler/core/algorithms/poseidon8_hash.out b/tests/expectations/compiler/core/algorithms/poseidon8_hash.out deleted file mode 100644 index 6c00b54d13..0000000000 --- a/tests/expectations/compiler/core/algorithms/poseidon8_hash.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 67384917f58c90880ca198b9a636e84c55d97b1068a3c88c1c4734577c798577 - initial_ast: 632a5144ec2fe401dc832a98bb6c8244272fd08799af229fc6fea179a8788ca3 - unrolled_ast: 632a5144ec2fe401dc832a98bb6c8244272fd08799af229fc6fea179a8788ca3 - ssa_ast: 6749addd8071f14f367b8af4514b497c9ae2d19780ae7d68a0a4d1dd359458cf diff --git a/tests/expectations/compiler/definition/out_of_order.out b/tests/expectations/compiler/definition/out_of_order.out deleted file mode 100644 index 5a75fb1fbc..0000000000 --- a/tests/expectations/compiler/definition/out_of_order.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b649852fa2fd7eda05bd0ba261f01dcee93b6b825d5d30fddb8dd5c5710081ca - initial_ast: 840776885448094e9749c6b182ea5c1c37012df4d16366b69d703f742f8c1d70 - unrolled_ast: 840776885448094e9749c6b182ea5c1c37012df4d16366b69d703f742f8c1d70 - ssa_ast: cd2649726e53372f5efb7d47fb3dbf02bdb1157868d13babe19d8b62a3ae897a diff --git a/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out b/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out deleted file mode 100644 index 0d2db82b07..0000000000 --- a/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = b;\n | ^\n" diff --git a/tests/expectations/compiler/field/add.out b/tests/expectations/compiler/field/add.out deleted file mode 100644 index 70cb307adf..0000000000 --- a/tests/expectations/compiler/field/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3f35e74d282a1e5281e7f283d1e572a3dc75dea1a5ef1a0f8c7f46412ef946a7 - initial_ast: a642bb5c7cfb36da9119944a050704e70165ace5a19bff542fe99746c4661caa - unrolled_ast: a642bb5c7cfb36da9119944a050704e70165ace5a19bff542fe99746c4661caa - ssa_ast: 4a6176fd8639ac8fa962d731d70e7ac767b481636742a7c00e3d5b56acae977e diff --git a/tests/expectations/compiler/field/div.out b/tests/expectations/compiler/field/div.out deleted file mode 100644 index cb5bce251e..0000000000 --- a/tests/expectations/compiler/field/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4e3882d83c8044e40258f8414966b09c715b00e08bc3383030cecf2c4a825c60 - initial_ast: a8b947e11bb42d6cec1f00bc4fdeb9a56f0706366b4a01d41939628d5516e29c - unrolled_ast: a8b947e11bb42d6cec1f00bc4fdeb9a56f0706366b4a01d41939628d5516e29c - ssa_ast: 42fda378b7550f678e4efa347978b807801b9109f33d5dea0aa4c01ecc563580 diff --git a/tests/expectations/compiler/field/eq.out b/tests/expectations/compiler/field/eq.out deleted file mode 100644 index 09dafa540a..0000000000 --- a/tests/expectations/compiler/field/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: eeba130bda3ee24f2a4bf92f67fb555ab849173910a647096e28729c2ebd71c2 - initial_ast: 85979e9e3e049b13ee7c03e9d7b109427bb5fdf6a5e333dba3f755de817b13f0 - unrolled_ast: 85979e9e3e049b13ee7c03e9d7b109427bb5fdf6a5e333dba3f755de817b13f0 - ssa_ast: 923467fd53b8d3b54011bbf339d3937cf15c305f6377b7842052783f30d9c3f7 diff --git a/tests/expectations/compiler/field/field.out b/tests/expectations/compiler/field/field.out deleted file mode 100644 index 629cf24fe1..0000000000 --- a/tests/expectations/compiler/field/field.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3a510480221eb323713b4b10cc374ba357f130e8ac2b07bf1c69ad5d8c936f12 - initial_ast: 1bc7e68d6898615de5f7142601fd40112a8604fc4f5bcab01ec058a6763bd9c3 - unrolled_ast: 1bc7e68d6898615de5f7142601fd40112a8604fc4f5bcab01ec058a6763bd9c3 - ssa_ast: a2d126a82860c39719dbeb32ad086aecb5c0506fa871bf3de87bf794c922f2c3 diff --git a/tests/expectations/compiler/field/mul.out b/tests/expectations/compiler/field/mul.out deleted file mode 100644 index 18de6afae2..0000000000 --- a/tests/expectations/compiler/field/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3f35e74d282a1e5281e7f283d1e572a3dc75dea1a5ef1a0f8c7f46412ef946a7 - initial_ast: 7305c64e6febf09dee173facbadaf96a5eeaa441cc52c2218efb62d97884481c - unrolled_ast: 7305c64e6febf09dee173facbadaf96a5eeaa441cc52c2218efb62d97884481c - ssa_ast: a96f78c8bb2bf2aeafcf823cad700552f5abb41dd9e4aafb4c7c381aa8ae64f0 diff --git a/tests/expectations/compiler/field/negate.out b/tests/expectations/compiler/field/negate.out deleted file mode 100644 index 7ecd9ff3f9..0000000000 --- a/tests/expectations/compiler/field/negate.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9206742d7f18345efbd4d9077cd1aca0855d43a2436be0697ec22954650e3737 - initial_ast: 075cd5aba0c52ac0a30ad4f593e2dfbb573655e59f3d8bc858d7aa459585700d - unrolled_ast: 075cd5aba0c52ac0a30ad4f593e2dfbb573655e59f3d8bc858d7aa459585700d - ssa_ast: 0a24ae04ac26dde68cfdb896ccf0859f275b5960ac8b309fb8928e8f7ae27b72 diff --git a/tests/expectations/compiler/field/no_space_between_literal.out b/tests/expectations/compiler/field/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/field/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/field/operator_methods.out b/tests/expectations/compiler/field/operator_methods.out deleted file mode 100644 index 8ae355eb5f..0000000000 --- a/tests/expectations/compiler/field/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 047866515f4dc74cd9966242734984b53e72f87afc21f7171b118e6defa1f166 - initial_ast: d1abbcdea418813712a552d60cfe56bfcdfa25ec3e8d20579e3ccfb190d69090 - unrolled_ast: d1abbcdea418813712a552d60cfe56bfcdfa25ec3e8d20579e3ccfb190d69090 - ssa_ast: 9607ee8d554a5d946cbcc5d599616f403a21da37f1f97d901fbb0c1d34da5bcf diff --git a/tests/expectations/compiler/field/pow.out b/tests/expectations/compiler/field/pow.out deleted file mode 100644 index 77bcbd42f4..0000000000 --- a/tests/expectations/compiler/field/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5e0a61d909d2e94dfbc95775e4c5c356adb61375ceef2d583a5ab927b3b6342e - initial_ast: 6e70939b64b3db3b19754ab75adc3854eccef6a0e0d17923993c5bad0712d6db - unrolled_ast: 6e70939b64b3db3b19754ab75adc3854eccef6a0e0d17923993c5bad0712d6db - ssa_ast: 0de0aacf8a6cfd3eb9c43e84f65c1a3f988e801d0f871cdf7e6bb1a8ddecb7fd diff --git a/tests/expectations/compiler/field/sub.out b/tests/expectations/compiler/field/sub.out deleted file mode 100644 index 3bafd14bcc..0000000000 --- a/tests/expectations/compiler/field/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4e3882d83c8044e40258f8414966b09c715b00e08bc3383030cecf2c4a825c60 - initial_ast: b683bf0a120ac9d6ca333a9f5eba572be5c76d8e50df43496f3a95cf4684ad37 - unrolled_ast: b683bf0a120ac9d6ca333a9f5eba572be5c76d8e50df43496f3a95cf4684ad37 - ssa_ast: 9146f7d13d581ce7b49d9dec7c9f53e3318daf79319262844203514b3880c320 diff --git a/tests/expectations/compiler/field/ternary.out b/tests/expectations/compiler/field/ternary.out deleted file mode 100644 index 1c9bbf1340..0000000000 --- a/tests/expectations/compiler/field/ternary.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e19dcac0064fed4ec8293b9b40ec70cb94b5fdb05f1081fc29f46a023bf79b09 - initial_ast: 90e4661bfe4be03914931788bdaa89b6057d0299019cf4d72c8f59ba80872201 - unrolled_ast: 90e4661bfe4be03914931788bdaa89b6057d0299019cf4d72c8f59ba80872201 - ssa_ast: 747443858f151feff074a55a5535e512fe7933e4b40c7e3c0772db32a3b18d68 diff --git a/tests/expectations/compiler/function/9_inputs_fail.out b/tests/expectations/compiler/function/9_inputs_fail.out deleted file mode 100644 index 0c5854d768..0000000000 --- a/tests/expectations/compiler/function/9_inputs_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected ; -- found '}'\n --> compiler-test:16:1\n |\n 16 | }\n | ^" diff --git a/tests/expectations/compiler/function/conditional_return.out b/tests/expectations/compiler/function/conditional_return.out deleted file mode 100644 index 8dab1248ef..0000000000 --- a/tests/expectations/compiler/function/conditional_return.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ae0703890dbea144e675f85228e958d6903df0d1ebd88f16a531624270205cc2 - initial_ast: 3dac7cf725df154640f7ea5979ac102b14916dc88215a69f555752f1e8051eec - unrolled_ast: 3dac7cf725df154640f7ea5979ac102b14916dc88215a69f555752f1e8051eec - ssa_ast: 866ffe9a91b29ef7e55837c4971c606d60d61561f7bf8078cbc9489912267ed6 diff --git a/tests/expectations/compiler/function/duplicate_definition_fail.out b/tests/expectations/compiler/function/duplicate_definition_fail.out deleted file mode 100644 index 58c592c7cf..0000000000 --- a/tests/expectations/compiler/function/duplicate_definition_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EAST0372008]: function `main` shadowed by\n --> compiler-test:8:1\n |\n 8 | function main(y: bool) -> bool {\n 9 | console.log(\"{}\", 2u8);\n 10 | return y; \n 11 | }\n | ^\n" diff --git a/tests/expectations/compiler/function/duplicate_parameter_fail.out b/tests/expectations/compiler/function/duplicate_parameter_fail.out deleted file mode 100644 index a87161a73d..0000000000 --- a/tests/expectations/compiler/function/duplicate_parameter_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EAST0372011]: variable `a` shadowed by\n --> compiler-test:3:23\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^\n" diff --git a/tests/expectations/compiler/function/no_return_fail.out b/tests/expectations/compiler/function/no_return_fail.out deleted file mode 100644 index 90b17b9e98..0000000000 --- a/tests/expectations/compiler/function/no_return_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372011]: The function main has no return statement.\n --> compiler-test:3:1\n |\n 3 | function main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/scope_fail.out b/tests/expectations/compiler/function/scope_fail.out deleted file mode 100644 index 987a02a25a..0000000000 --- a/tests/expectations/compiler/function/scope_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:9:20\n |\n 9 | const myGlobal = 42field;\n | ^" diff --git a/tests/expectations/compiler/function/shadow_function_with_input_fail.out b/tests/expectations/compiler/function/shadow_function_with_input_fail.out deleted file mode 100644 index 56c3c19877..0000000000 --- a/tests/expectations/compiler/function/shadow_function_with_input_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EAST0372008]: function `hi` shadowed by\n --> compiler-test:7:17\n |\n 7 | function tester(hi: u8) -> u8 {\n | ^^\n" diff --git a/tests/expectations/compiler/function/shadow_parameter_fail.out b/tests/expectations/compiler/function/shadow_parameter_fail.out deleted file mode 100644 index f0be731957..0000000000 --- a/tests/expectations/compiler/function/shadow_parameter_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:4:14\n |\n 4 | const hi = 2u8;\n | ^" diff --git a/tests/expectations/compiler/function/undefined_fail.out b/tests/expectations/compiler/function/undefined_fail.out deleted file mode 100644 index b9cfa08e55..0000000000 --- a/tests/expectations/compiler/function/undefined_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370022]: Expression statements are not supported.\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^^^^" diff --git a/tests/expectations/compiler/group/add.out b/tests/expectations/compiler/group/add.out deleted file mode 100644 index 63d7e677b2..0000000000 --- a/tests/expectations/compiler/group/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b5deb6fe058cfd48245b762ae48484205ae3912fd912d877315b93700d6278a8 - initial_ast: 82fb59b4d1b0f14e58551155fe37565c9ea89d1a4a368b6018f235ec47420039 - unrolled_ast: 82fb59b4d1b0f14e58551155fe37565c9ea89d1a4a368b6018f235ec47420039 - ssa_ast: 627f929cb1ae78fe112f0cf0d21ffe564081eebdb9a91498ca8d5bce96ae24cd diff --git a/tests/expectations/compiler/group/assert_eq.out b/tests/expectations/compiler/group/assert_eq.out deleted file mode 100644 index 0d64b22e8a..0000000000 --- a/tests/expectations/compiler/group/assert_eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 05dd4d307ee7545a894ea5eea710b1271ee80550b02be767c626032132edb1d0 - initial_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 - unrolled_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 - ssa_ast: 469f27d1f72f5d05ac05a078abcd9f77ee774182ac3bed2fd4aa5ca606fcb64f diff --git a/tests/expectations/compiler/group/eq.out b/tests/expectations/compiler/group/eq.out deleted file mode 100644 index 0d64b22e8a..0000000000 --- a/tests/expectations/compiler/group/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 05dd4d307ee7545a894ea5eea710b1271ee80550b02be767c626032132edb1d0 - initial_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 - unrolled_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 - ssa_ast: 469f27d1f72f5d05ac05a078abcd9f77ee774182ac3bed2fd4aa5ca606fcb64f diff --git a/tests/expectations/compiler/group/group_mul.out b/tests/expectations/compiler/group/group_mul.out deleted file mode 100644 index 41526c96f1..0000000000 --- a/tests/expectations/compiler/group/group_mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: eb3189d9f0067604b0469eb04d438a85be64e3e4565635a1851584bcd3ba4b6d - initial_ast: a60613f5def981f4df8f49c965754e5eeaa77d6e87f99f1bb6cdb17b364cb517 - unrolled_ast: a60613f5def981f4df8f49c965754e5eeaa77d6e87f99f1bb6cdb17b364cb517 - ssa_ast: cc100550e1ec1c35522c06194bf160e1fb60f5d002ce4b6ca0745d3040904893 diff --git a/tests/expectations/compiler/group/input.out b/tests/expectations/compiler/group/input.out deleted file mode 100644 index 9ce97370f5..0000000000 --- a/tests/expectations/compiler/group/input.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 27f7ed55718c2a07aa6f84e974b1358426a4e618563d07c514df7c88d7188ca8 - initial_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 - unrolled_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 - ssa_ast: 469f27d1f72f5d05ac05a078abcd9f77ee774182ac3bed2fd4aa5ca606fcb64f diff --git a/tests/expectations/compiler/group/mul.out b/tests/expectations/compiler/group/mul.out deleted file mode 100644 index a0f0e4ffd0..0000000000 --- a/tests/expectations/compiler/group/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: aa9f032e49947f1f8e9fa3d594c2564d1635966fde117565dc19677bc2ee4882 - initial_ast: b80807e39da4b5a4c3e5a4311f3f003c4990c9815ba30c461dfcb3e84c5e6c32 - unrolled_ast: b80807e39da4b5a4c3e5a4311f3f003c4990c9815ba30c461dfcb3e84c5e6c32 - ssa_ast: 4d6a74519733c6cb1f7ccdc84a93baf5daf3a7ef662937732085923df9ca55bd diff --git a/tests/expectations/compiler/group/mult_by_group_fail.out b/tests/expectations/compiler/group/mult_by_group_fail.out deleted file mode 100644 index a3360ea473..0000000000 --- a/tests/expectations/compiler/group/mult_by_group_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372007]: Expected one type from `scalar`, but got `group`\n --> compiler-test:4:26\n |\n 4 | return (_, _)group * a;\n | ^\n" diff --git a/tests/expectations/compiler/group/mult_by_scalar.out b/tests/expectations/compiler/group/mult_by_scalar.out deleted file mode 100644 index af794c54ef..0000000000 --- a/tests/expectations/compiler/group/mult_by_scalar.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3d94a5b90d4b4178d7e3278e134a55145bffd9c296ecba5282f24d995c0fe04a - initial_ast: da67531b49522acb0f87d7cf0786683f4d2608efbf5fa4da89827e36652b7ff4 - unrolled_ast: da67531b49522acb0f87d7cf0786683f4d2608efbf5fa4da89827e36652b7ff4 - ssa_ast: eec3c94aeb1d30cdb448d7b30c9f21ba26a80d6de174dfa9b3de5536cb7c8240 diff --git a/tests/expectations/compiler/group/negate.out b/tests/expectations/compiler/group/negate.out deleted file mode 100644 index 7a2c07e8ad..0000000000 --- a/tests/expectations/compiler/group/negate.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c8df42c50c421f9032ead784e7860f118d7b9e0f495c1107ddfcebd5fcfdd9d9 - initial_ast: 79d9474ece6029ed3b0b5a5fd7657c932914d1867572dd6e5478330a8127f249 - unrolled_ast: 79d9474ece6029ed3b0b5a5fd7657c932914d1867572dd6e5478330a8127f249 - ssa_ast: 5e2f8c9b0347fa0b52c4d9bd72f207eefef3b9f3ef280effaa5bbcdf2fb1b828 diff --git a/tests/expectations/compiler/group/no_space_between_literal.out b/tests/expectations/compiler/group/no_space_between_literal.out deleted file mode 100644 index 42c6c5e8cd..0000000000 --- a/tests/expectations/compiler/group/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370004]: Unexpected white space between terms (0,1) and group\n --> compiler-test:4:25\n |\n 4 | const g: group = (0,1) group;\n | ^" diff --git a/tests/expectations/compiler/group/operator_methods.out b/tests/expectations/compiler/group/operator_methods.out deleted file mode 100644 index bd866f465f..0000000000 --- a/tests/expectations/compiler/group/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d745c513c959ce3abed861d77d87a662248f8417b7521258835e9ace56b0b6da - initial_ast: fe43ed8f6727cf763c6d22db1818916cdd5c74fc30b7a2f9879966b2949391e9 - unrolled_ast: fe43ed8f6727cf763c6d22db1818916cdd5c74fc30b7a2f9879966b2949391e9 - ssa_ast: 004778e5bc54ab474940178885f3444dc056b843b49e7c487a7039e4fbb2a4cc diff --git a/tests/expectations/compiler/group/point_input.out b/tests/expectations/compiler/group/point_input.out deleted file mode 100644 index 5ee5c6f127..0000000000 --- a/tests/expectations/compiler/group/point_input.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 1eef8447118efa7352e198dc76a0f41882c1f90bdc3aa29fd45bd7c17b547816 - initial_ast: ed9d5db3d1ff005b6dc820e3d57dd7b20e8bb78ef376948eb386fe6f6b27854b - unrolled_ast: ed9d5db3d1ff005b6dc820e3d57dd7b20e8bb78ef376948eb386fe6f6b27854b - ssa_ast: a3c45630e1d5f537f1207924c8f2e068e58fe2ac364e93c3d2f9b6f3e37eaafc diff --git a/tests/expectations/compiler/group/sub.out b/tests/expectations/compiler/group/sub.out deleted file mode 100644 index b17b6d0840..0000000000 --- a/tests/expectations/compiler/group/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b5deb6fe058cfd48245b762ae48484205ae3912fd912d877315b93700d6278a8 - initial_ast: 65be9ce3a9bfb68c6e008b95bf6809c26f6717e778632f0a49aca92be9d0e043 - unrolled_ast: 65be9ce3a9bfb68c6e008b95bf6809c26f6717e778632f0a49aca92be9d0e043 - ssa_ast: cd9cc948e73d6aca5cb02ce4f260fba98fd3ba7c1ced682fd28f397a94189b00 diff --git a/tests/expectations/compiler/group/ternary.out b/tests/expectations/compiler/group/ternary.out deleted file mode 100644 index 29c2c6d946..0000000000 --- a/tests/expectations/compiler/group/ternary.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 7d33564ae09ce3409cb75346a4776c7284007ec68c9f4716617433cafcfa1b13 - initial_ast: 6802e3731f48ab83fa0a38b43249ebd7a73cb99b6ca536834013330063d9a0ba - unrolled_ast: 6802e3731f48ab83fa0a38b43249ebd7a73cb99b6ca536834013330063d9a0ba - ssa_ast: f5c0d6e0125e56b208d96177b9a84f0f8ec56cba3d4284c103567bbef0c1308e diff --git a/tests/expectations/compiler/group/x_and_y.out b/tests/expectations/compiler/group/x_and_y.out deleted file mode 100644 index a32e09feb5..0000000000 --- a/tests/expectations/compiler/group/x_and_y.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9abdfd027f3d9911431dc87b745b184540eb4dfed735db8ab507c94752307ded - initial_ast: 481d919557c8feaab1d37018bbb51972dcc27dd370f8aad370880110ab572e2a - unrolled_ast: 481d919557c8feaab1d37018bbb51972dcc27dd370f8aad370880110ab572e2a - ssa_ast: 5bf490deb9be48c713e6a0220328d2c8057639b47671ef72c45e67c536b7e4ba diff --git a/tests/expectations/compiler/group/x_sign_high.out b/tests/expectations/compiler/group/x_sign_high.out deleted file mode 100644 index 8112e5adc6..0000000000 --- a/tests/expectations/compiler/group/x_sign_high.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3da70d17ef476250c442a591d7a99347d3fbf616b16456f975a9c655f04e742a - initial_ast: adb753c202153a4e7df0440001e01a79cbb35c6cc6882a1b68c9023d70e58fa2 - unrolled_ast: adb753c202153a4e7df0440001e01a79cbb35c6cc6882a1b68c9023d70e58fa2 - ssa_ast: c22c8c471015fd973a7582bc53aef4ea687354337fa7b0d7ad904e48fbb31768 diff --git a/tests/expectations/compiler/group/x_sign_inferred.out b/tests/expectations/compiler/group/x_sign_inferred.out deleted file mode 100644 index cc30ce4cd8..0000000000 --- a/tests/expectations/compiler/group/x_sign_inferred.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3da70d17ef476250c442a591d7a99347d3fbf616b16456f975a9c655f04e742a - initial_ast: 1abc09643eb8b4ad261f0e80a684c84b6508b210afcbfedaeb51434e584fd8a0 - unrolled_ast: 1abc09643eb8b4ad261f0e80a684c84b6508b210afcbfedaeb51434e584fd8a0 - ssa_ast: aa5b17a7ae49eef92db76e977dcea78368a1a149f57cc99cfb13ade6b76c8bd8 diff --git a/tests/expectations/compiler/group/x_sign_low.out b/tests/expectations/compiler/group/x_sign_low.out deleted file mode 100644 index 04ecbfbe29..0000000000 --- a/tests/expectations/compiler/group/x_sign_low.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3da70d17ef476250c442a591d7a99347d3fbf616b16456f975a9c655f04e742a - initial_ast: 1a33ac6b583f12e02a2eca908003d69abb7632e11b49510fbfa1fd94adeb56d8 - unrolled_ast: 1a33ac6b583f12e02a2eca908003d69abb7632e11b49510fbfa1fd94adeb56d8 - ssa_ast: 35e8df2a2a81f574eedcc0772eafa4266f93e33e91e6f2bdab9e0cb64e5dc96b diff --git a/tests/expectations/compiler/group/zero.out b/tests/expectations/compiler/group/zero.out deleted file mode 100644 index f0a8617593..0000000000 --- a/tests/expectations/compiler/group/zero.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2468852fc74f6cfa36cbbde47c14b72cb3f12907e86a7bb3aa7ca09a9c67d6c2 - initial_ast: 618754f367dcd51d5f4bd8b9b7cbf5c78fd0a8f2f6b49620425350e87735997b - unrolled_ast: 618754f367dcd51d5f4bd8b9b7cbf5c78fd0a8f2f6b49620425350e87735997b - ssa_ast: 167f4f6b4b4cf567b6a1ad77e38993fab70a489f65c4a169c214a3b9b4ff2d1c diff --git a/tests/expectations/compiler/input/main.out b/tests/expectations/compiler/input/main.out deleted file mode 100644 index e9a5675fd8..0000000000 --- a/tests/expectations/compiler/input/main.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 23e62412d2a9377334d90aaeb6629b73c77e045ce87f23bd6ae2e2cd242e70f0 - initial_ast: a8d64dc385c9f76c3e5658c4172474f711464a35c8000ea2b6b5f602b2985f96 - unrolled_ast: a8d64dc385c9f76c3e5658c4172474f711464a35c8000ea2b6b5f602b2985f96 - ssa_ast: 2582c20afd7110638af742443f86e51ba3be86549404d6f01ce4e1f533ea74ec diff --git a/tests/expectations/compiler/input/main_field.out b/tests/expectations/compiler/input/main_field.out deleted file mode 100644 index 507f8e8836..0000000000 --- a/tests/expectations/compiler/input/main_field.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2b6bc4ade2305a65746066befacf6a0a18382f754d4d7911d0c6e0abef682114 - initial_ast: 2b94692e105c10f66d99826d59ffae22416bd05e01d7222851f6b4e7bb00f716 - unrolled_ast: 2b94692e105c10f66d99826d59ffae22416bd05e01d7222851f6b4e7bb00f716 - ssa_ast: 76cf9fb25be298cb14efd7071cd19861e9c2eabe322ebe79dd67909d6fd959ae diff --git a/tests/expectations/compiler/integers/i128/add.out b/tests/expectations/compiler/integers/i128/add.out deleted file mode 100644 index 3e159dfb90..0000000000 --- a/tests/expectations/compiler/integers/i128/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b7a1796fa4abcee565ee7dea475310c15b5881c60a2acc7a2b65cea9a84acf56 - initial_ast: cef0fc4b173acf9ee0dd39e711039e011329d0a63f5834b626e64560ec3005e0 - unrolled_ast: cef0fc4b173acf9ee0dd39e711039e011329d0a63f5834b626e64560ec3005e0 - ssa_ast: 8a349569fc72b268283cab29e59ac1a495828fc522cca4824b1b7cf78203e403 diff --git a/tests/expectations/compiler/integers/i128/and.out b/tests/expectations/compiler/integers/i128/and.out deleted file mode 100644 index 03babf34d1..0000000000 --- a/tests/expectations/compiler/integers/i128/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b7a1796fa4abcee565ee7dea475310c15b5881c60a2acc7a2b65cea9a84acf56 - initial_ast: 83d74d809376055965eca730b2f36ab8863d9c59d5934eb3932d709974020ea6 - unrolled_ast: 83d74d809376055965eca730b2f36ab8863d9c59d5934eb3932d709974020ea6 - ssa_ast: 05ea5a9c6c195f6694d0a3079280e627d85176781fa3f16da0eb066a1c3513a3 diff --git a/tests/expectations/compiler/integers/i128/console_assert.out b/tests/expectations/compiler/integers/i128/console_assert.out deleted file mode 100644 index 15d87339a8..0000000000 --- a/tests/expectations/compiler/integers/i128/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 809c4e4298aa9ee1320cb7b491bc3dc81deb71a691cdc7add970e2c2bf5f47b5 - initial_ast: b17ee11c736f9f897ec37ddb8d79b3656bd0304f1be7818a30f9963b4c600c14 - unrolled_ast: b17ee11c736f9f897ec37ddb8d79b3656bd0304f1be7818a30f9963b4c600c14 - ssa_ast: 51e3df228f96a3276362c167d9749a009bb1b489cd7862f8152425b42e13ac24 diff --git a/tests/expectations/compiler/integers/i128/div.out b/tests/expectations/compiler/integers/i128/div.out deleted file mode 100644 index 702f2dbb89..0000000000 --- a/tests/expectations/compiler/integers/i128/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 7034fae8c2db1f78f9f42400f5a6b28d498a7d31f7e35923584622420bfa0ef6 - initial_ast: 0f70909e44b0a9462e0a3e8520804398b979f79d9f3332c8e86b2d8fb73a6a32 - unrolled_ast: 0f70909e44b0a9462e0a3e8520804398b979f79d9f3332c8e86b2d8fb73a6a32 - ssa_ast: 832f78c88fe433c996e8ac13108281073a4e3347e95e888fe00e8a7288ab3c52 diff --git a/tests/expectations/compiler/integers/i128/eq.out b/tests/expectations/compiler/integers/i128/eq.out deleted file mode 100644 index 24bd2a035d..0000000000 --- a/tests/expectations/compiler/integers/i128/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 91219f5a1516834f9c60220a65cece763ae40c916f636fed729b1fd91e25310a - initial_ast: 5ab348dff1246161f290c5ae5544ee97708604639c403f7d11e16e19da67f1c6 - unrolled_ast: 5ab348dff1246161f290c5ae5544ee97708604639c403f7d11e16e19da67f1c6 - ssa_ast: c7841dd6fc439f297ba8f98de6e97c5c94597639865b01c28af98ad1a9fc9038 diff --git a/tests/expectations/compiler/integers/i128/ge.out b/tests/expectations/compiler/integers/i128/ge.out deleted file mode 100644 index 0efd931321..0000000000 --- a/tests/expectations/compiler/integers/i128/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4c374f44b16a3c60d9140164aca01d9e70cee27cf3adfce8ded7a8abc5fc6ac7 - - initial_input_ast: 9036921d0594f2bc8402c7364492ca47d57d34e8588b0bef6491ae6978454e31 - initial_ast: 11471f4252e19626c40e410d9e378f4da5559485c2b259c8d8d0aca243a54262 - unrolled_ast: 11471f4252e19626c40e410d9e378f4da5559485c2b259c8d8d0aca243a54262 - ssa_ast: f26be04f7007fdfcb7021182154bbfa9493c3dd333cd5ed774df9f4ff8195604 diff --git a/tests/expectations/compiler/integers/i128/gt.out b/tests/expectations/compiler/integers/i128/gt.out deleted file mode 100644 index 491f47a10d..0000000000 --- a/tests/expectations/compiler/integers/i128/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c6365539642a404ce31b3c71f191f6b05a80aabb82727bf6fbcffb87eddba3f0 - - initial_input_ast: 73d7d29dee3c0c90538069b0a1684281d0cd2f338f1594768727ea83fae404ee - initial_ast: 926f9e67f93aed810b9492fbf85be6c82f0a5e3348ac83b6671935a0770d543e - unrolled_ast: 926f9e67f93aed810b9492fbf85be6c82f0a5e3348ac83b6671935a0770d543e - ssa_ast: 2934583e15d0acb8f36502ffc434b93a1c24d5b298eac30ed0806a3001f24f65 diff --git a/tests/expectations/compiler/integers/i128/le.out b/tests/expectations/compiler/integers/i128/le.out deleted file mode 100644 index 9c14020991..0000000000 --- a/tests/expectations/compiler/integers/i128/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4c374f44b16a3c60d9140164aca01d9e70cee27cf3adfce8ded7a8abc5fc6ac7 - - initial_input_ast: 3a80a61b2cc37b77014d08a9648e9e572ae99460a993862404fc3a7ce4051097 - initial_ast: ccd5c4d472a24cfd177f87cb1c696690f4769b43dd7f70d7eda7065d0d512c0d - unrolled_ast: ccd5c4d472a24cfd177f87cb1c696690f4769b43dd7f70d7eda7065d0d512c0d - ssa_ast: a3ba458b6f36c22e672d0f2432982eab358ae4b181ecdfa6771b3a0ddff70ec7 diff --git a/tests/expectations/compiler/integers/i128/lt.out b/tests/expectations/compiler/integers/i128/lt.out deleted file mode 100644 index d10fe630a2..0000000000 --- a/tests/expectations/compiler/integers/i128/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2e33c1206abe4dd7b81062773aa064b5214ac8c021efe6cb1f308b46703b015b - - initial_input_ast: 27663c1ae0936e46593e6f1cd159d804beb8f3c7071af6699ed78b79add761d0 - initial_ast: 8ba6968cc3b50770a19674da3915727796013e5c7ac4390f56782897b3f47472 - unrolled_ast: 8ba6968cc3b50770a19674da3915727796013e5c7ac4390f56782897b3f47472 - ssa_ast: 05c985534bea2832a546aee6fad1053c46b8805ca9271653990254fc6ceb62bd diff --git a/tests/expectations/compiler/integers/i128/max.out b/tests/expectations/compiler/integers/i128/max.out deleted file mode 100644 index d89ad6d1b5..0000000000 --- a/tests/expectations/compiler/integers/i128/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: f4a9a735aed4062962098cb8670bcbdb02326fd3eceec9eb7c6b44607372c96e - initial_ast: 1596986e096a7215bfe3aa8813f2e08269c805924a65cd519a29a43acec87bd9 - unrolled_ast: 1596986e096a7215bfe3aa8813f2e08269c805924a65cd519a29a43acec87bd9 - ssa_ast: e98491efe9028fa9bfb5fcfc7b595e8df4567494c293dfe0a44db34b70fb1269 diff --git a/tests/expectations/compiler/integers/i128/max_fail.out b/tests/expectations/compiler/integers/i128/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i128/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i128/min.out b/tests/expectations/compiler/integers/i128/min.out deleted file mode 100644 index 5902be8440..0000000000 --- a/tests/expectations/compiler/integers/i128/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 7d096c5b8581c0b59bf0e34ff5d13735371a4b1fe3df9a6425fff3e4e04c44a6 - initial_ast: 1c8f8d27c303fc6c89b5b7e6deafa8ace25e0fc7423ff8da81998329f757a525 - unrolled_ast: 1c8f8d27c303fc6c89b5b7e6deafa8ace25e0fc7423ff8da81998329f757a525 - ssa_ast: 976e0727e1c59f57fbe355f981a9c68763e16886063cf400927ce49b9c59c37a diff --git a/tests/expectations/compiler/integers/i128/min_fail.out b/tests/expectations/compiler/integers/i128/min_fail.out deleted file mode 100644 index 6f66c9c92a..0000000000 --- a/tests/expectations/compiler/integers/i128/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 2i128 into r1;\\n output r1 as i128.private;\\n\", Nom(Tag)), (\"\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 2i128 into r1;\\n output r1 as i128.private;\\n\", Nom(Many1)), (\"function main:\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 2i128 into r1;\\n output r1 as i128.private;\\n\", Nom(Alt)), (\"function main:\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 2i128 into r1;\\n output r1 as i128.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i128/mul.out b/tests/expectations/compiler/integers/i128/mul.out deleted file mode 100644 index b6a18f27b0..0000000000 --- a/tests/expectations/compiler/integers/i128/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 0a3d0e75cabf9109c310875de99ef0185236ade5661ec59843a4d3ade564cc87 - initial_ast: 79bbe6b59c0346d5bdf7d3029ae719646236195fe187b07fbe89f6891dd0c165 - unrolled_ast: 79bbe6b59c0346d5bdf7d3029ae719646236195fe187b07fbe89f6891dd0c165 - ssa_ast: 5925c3c928596a2b87153dd46c24d88b550917a17833012d00f2eb25d11e7e39 diff --git a/tests/expectations/compiler/integers/i128/ne.out b/tests/expectations/compiler/integers/i128/ne.out deleted file mode 100644 index 4d8dffbf6e..0000000000 --- a/tests/expectations/compiler/integers/i128/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3f1ceecb6aee150c506548e59fdb0c3dfd893df3e560dd3f23eb79d1395b453f - - initial_input_ast: c4acc91b534d1069d54ef3a6fa44ba2e574f6afe217f7ed8786d76faca728ab7 - initial_ast: 7909a607383e2009b43be61ceee175701aa38ff919f832ce8d9ac46653a9ba20 - unrolled_ast: 7909a607383e2009b43be61ceee175701aa38ff919f832ce8d9ac46653a9ba20 - ssa_ast: 67e660d720dd1376b3b4585352839d0ef811ce9b8ca8b27f8c9e10f2fd4eb49b diff --git a/tests/expectations/compiler/integers/i128/negate.out b/tests/expectations/compiler/integers/i128/negate.out deleted file mode 100644 index 46cb69d546..0000000000 --- a/tests/expectations/compiler/integers/i128/negate.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: edb9d7d1001c01bfbfdac5e82195c6e34c22597244d0b4f1e6290b2adf25f731 - - initial_input_ast: 4d43aa69ae8a201ba01257a0b308c7132493807dd9986c388972a63af07f6982 - initial_ast: 4dbc9ea3f7b9be4c0377169581a00ae00f0867842263ee35e53c4aeabe622f6e - unrolled_ast: 4dbc9ea3f7b9be4c0377169581a00ae00f0867842263ee35e53c4aeabe622f6e - ssa_ast: 62546553c53f70d2c93939dee123c30db9244741f96b6b1165e2a9c98e3fd443 diff --git a/tests/expectations/compiler/integers/i128/negate_min_fail.out b/tests/expectations/compiler/integers/i128/negate_min_fail.out deleted file mode 100644 index 547646d183..0000000000 --- a/tests/expectations/compiler/integers/i128/negate_min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 1i128 into r1;\\n neg r1 into r2;\\n output r2 as i128.private;\\n\", Nom(Tag)), (\"\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 1i128 into r1;\\n neg r1 into r2;\\n output r2 as i128.private;\\n\", Nom(Many1)), (\"function main:\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 1i128 into r1;\\n neg r1 into r2;\\n output r2 as i128.private;\\n\", Nom(Alt)), (\"function main:\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 1i128 into r1;\\n neg r1 into r2;\\n output r2 as i128.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i128/negate_zero.out b/tests/expectations/compiler/integers/i128/negate_zero.out deleted file mode 100644 index 0e04f6be14..0000000000 --- a/tests/expectations/compiler/integers/i128/negate_zero.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 34fcde78f661247ade77dd607c349139ab960d39b6a5e10efb7102e0f52aa9de - initial_ast: 6df01ef07ab0b2d02c4f92057a10cb7f397274fd7210eac79e71cd298f9cfa2a - unrolled_ast: 6df01ef07ab0b2d02c4f92057a10cb7f397274fd7210eac79e71cd298f9cfa2a - ssa_ast: de182364a07155660eb484001c6716be439338dbf891889ccc62ec6a2660fb02 diff --git a/tests/expectations/compiler/integers/i128/no_space_between_literal.out b/tests/expectations/compiler/integers/i128/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i128/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i128/operator_methods.out b/tests/expectations/compiler/integers/i128/operator_methods.out deleted file mode 100644 index 8def53cbda..0000000000 --- a/tests/expectations/compiler/integers/i128/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 01980590e6fa50034c226d4672bcd6d6a7f25b20dea3d696750947803335f586 - initial_ast: fb0cc32c174c5b14d16bafef9de4bef50db82e85f825fd316864ccfb0ceaf193 - unrolled_ast: fb0cc32c174c5b14d16bafef9de4bef50db82e85f825fd316864ccfb0ceaf193 - ssa_ast: 69adb4dccc5d414e4fa4919414aafb3cd835fc5582d35f76a815f8a0a086bf60 diff --git a/tests/expectations/compiler/integers/i128/or.out b/tests/expectations/compiler/integers/i128/or.out deleted file mode 100644 index c64778eb55..0000000000 --- a/tests/expectations/compiler/integers/i128/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b7a1796fa4abcee565ee7dea475310c15b5881c60a2acc7a2b65cea9a84acf56 - initial_ast: 7d48465f0f9d49f833daa877dc178177815c66fb67759f297bcd53d7c97f7b2b - unrolled_ast: 7d48465f0f9d49f833daa877dc178177815c66fb67759f297bcd53d7c97f7b2b - ssa_ast: f945a06eadab4d88be176412a6efdffd3d5b7e626b3c2242d3069938a09ee0c0 diff --git a/tests/expectations/compiler/integers/i128/pow.out b/tests/expectations/compiler/integers/i128/pow.out deleted file mode 100644 index 455b7de65c..0000000000 --- a/tests/expectations/compiler/integers/i128/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5b2a4c4f581321b440a00dc3d0e6731b0990b3316681bf74f0e3b9b7aa1d5857 - initial_ast: ead09b6edb131cb1ebe5ff0f457466848d4308c30641a9b3f731733860640da6 - unrolled_ast: ead09b6edb131cb1ebe5ff0f457466848d4308c30641a9b3f731733860640da6 - ssa_ast: 7ffff34b12997ef78725a04d57b6961ac5fc567350b0b84d0a3323e78992ed60 diff --git a/tests/expectations/compiler/integers/i128/shl.out b/tests/expectations/compiler/integers/i128/shl.out deleted file mode 100644 index d0991482dc..0000000000 --- a/tests/expectations/compiler/integers/i128/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3bb40d51d0fc627b1a310c49481404fe8fbd7a46140b0540605108582dcfc060 - initial_ast: 3472233e4386ea23488fae14fad0d622bffabc8f09d5f54c13885dc7251147b5 - unrolled_ast: 3472233e4386ea23488fae14fad0d622bffabc8f09d5f54c13885dc7251147b5 - ssa_ast: 82349f14bdf67706714d6c7d61bb421f7d878edb93f8167dc9caf9484fa4fe89 diff --git a/tests/expectations/compiler/integers/i128/shr.out b/tests/expectations/compiler/integers/i128/shr.out deleted file mode 100644 index 8920753c6d..0000000000 --- a/tests/expectations/compiler/integers/i128/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3bb40d51d0fc627b1a310c49481404fe8fbd7a46140b0540605108582dcfc060 - initial_ast: 82145bc51e53bb9b1db741b9514215b79c3dfdcb5dfca3b9359deaa5f2d8ae6e - unrolled_ast: 82145bc51e53bb9b1db741b9514215b79c3dfdcb5dfca3b9359deaa5f2d8ae6e - ssa_ast: 3ffdab6b00fe31c1c20fa08f2c8bbcdd7188dff11ac1bca38aaaae6fb4a1ee4c diff --git a/tests/expectations/compiler/integers/i128/sub.out b/tests/expectations/compiler/integers/i128/sub.out deleted file mode 100644 index aafe4095ca..0000000000 --- a/tests/expectations/compiler/integers/i128/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ecf34ea664106ec74de1673761e384ad672b16363124f7082e6bf6d9956516dd - initial_ast: 02204f15979c7679e688313373c79e25a4f83fd256487cd5f680ea58df71fb24 - unrolled_ast: 02204f15979c7679e688313373c79e25a4f83fd256487cd5f680ea58df71fb24 - ssa_ast: a68636d11c22252ec8a087ba401f29c41930b9a109df7417e758384ac645e288 diff --git a/tests/expectations/compiler/integers/i128/ternary.out b/tests/expectations/compiler/integers/i128/ternary.out deleted file mode 100644 index 3f04c492d1..0000000000 --- a/tests/expectations/compiler/integers/i128/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 138ca535c4fd8ce9f1da98e1c1faa03eb5ebd2b1ca026e36c55e78a5da92b97b - - initial_input_ast: 920e39624bf39cb7915596796f56d41f21fdac239f7d059d65a35a50d88547cc - initial_ast: 95cac05f793bdc703b02a17ea7310e27714c842eef63c089aa84d0e99baf5a3d - unrolled_ast: 95cac05f793bdc703b02a17ea7310e27714c842eef63c089aa84d0e99baf5a3d - ssa_ast: b787f459d870b88d7409375bac35aaef83dfe7fb2633491416b025bd737e86bb diff --git a/tests/expectations/compiler/integers/i128/xor.out b/tests/expectations/compiler/integers/i128/xor.out deleted file mode 100644 index a90baec729..0000000000 --- a/tests/expectations/compiler/integers/i128/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 8405502a06368847e27067f0ed7c44986422383e2608b7ada1a7e10dfda6fd83 - initial_ast: a345394370a7be4a24f29a7f13d1359aced159d84a8c60dc9c95e2d16ee1e653 - unrolled_ast: a345394370a7be4a24f29a7f13d1359aced159d84a8c60dc9c95e2d16ee1e653 - ssa_ast: ca9d7e2be2c14e1e53d75842005a82e27fc18f10e6cbc6443bb4f442fa37464b diff --git a/tests/expectations/compiler/integers/i16/add.out b/tests/expectations/compiler/integers/i16/add.out deleted file mode 100644 index bba9a3de1d..0000000000 --- a/tests/expectations/compiler/integers/i16/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2c7911ddb339c2fcdee25cf21fec17727233c194b135902d29f247cc7c20c446 - initial_ast: 49e6fdaa246d010eff70b43b87e6db365cfcd34fe168cd98297b0482f6716c41 - unrolled_ast: 49e6fdaa246d010eff70b43b87e6db365cfcd34fe168cd98297b0482f6716c41 - ssa_ast: 8b7f3a60ed7fa5542923556a83a323ef1569ea05418ba7f29a0e860585949b55 diff --git a/tests/expectations/compiler/integers/i16/and.out b/tests/expectations/compiler/integers/i16/and.out deleted file mode 100644 index 662e9f5135..0000000000 --- a/tests/expectations/compiler/integers/i16/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2c7911ddb339c2fcdee25cf21fec17727233c194b135902d29f247cc7c20c446 - initial_ast: 5945d7053ce292bb3d594e228a83538b51756c6b423d6cd2244cf146719d22f4 - unrolled_ast: 5945d7053ce292bb3d594e228a83538b51756c6b423d6cd2244cf146719d22f4 - ssa_ast: e75c1610df4edcbbb1d6ddd80dc4bbbf4ad1a4397033b4c9ddc09b0509c72541 diff --git a/tests/expectations/compiler/integers/i16/console_assert.out b/tests/expectations/compiler/integers/i16/console_assert.out deleted file mode 100644 index f8a024d13a..0000000000 --- a/tests/expectations/compiler/integers/i16/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 1fc4c14c2b4a2f91035315a0cb5fce983e1c75edea3c21e33abfc3a088cff990 - initial_ast: c2387281e1bb8c23c610696c723b380065f00d9d6d636cfa17a598d0f85018cf - unrolled_ast: c2387281e1bb8c23c610696c723b380065f00d9d6d636cfa17a598d0f85018cf - ssa_ast: d68b81f91cda6357312d890ae8814bb369ab9289b87991c51ee8224c3e7be4f3 diff --git a/tests/expectations/compiler/integers/i16/div.out b/tests/expectations/compiler/integers/i16/div.out deleted file mode 100644 index 36ad86dba2..0000000000 --- a/tests/expectations/compiler/integers/i16/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 452b7c31531e8687d2bd8dd4036e0916485f052e946807e3cb3e23143f2eeaf3 - initial_ast: fcb0c1f1a13c49bb15ac0ac570860e1eba1b5d257bf91baa490a8f07876171df - unrolled_ast: fcb0c1f1a13c49bb15ac0ac570860e1eba1b5d257bf91baa490a8f07876171df - ssa_ast: 840ee0f7062f3107c53106b2643f1115c7d503c2aa9c554f8f734106f283119d diff --git a/tests/expectations/compiler/integers/i16/eq.out b/tests/expectations/compiler/integers/i16/eq.out deleted file mode 100644 index 59c3aedb70..0000000000 --- a/tests/expectations/compiler/integers/i16/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9a6fd528e0edefba421380e21519daac2b6422f3954ce74ee02bd78722f091c0 - initial_ast: 2fec6d4b8b764b96e271ab6a31107bd2aadafb3b68bb47df93b749311c8828e0 - unrolled_ast: 2fec6d4b8b764b96e271ab6a31107bd2aadafb3b68bb47df93b749311c8828e0 - ssa_ast: d34f58e44675071fe8f885d2b0b5f504a264b983f699f41976c30964504d700f diff --git a/tests/expectations/compiler/integers/i16/ge.out b/tests/expectations/compiler/integers/i16/ge.out deleted file mode 100644 index aca81a1576..0000000000 --- a/tests/expectations/compiler/integers/i16/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 93c771afc86ce441611aad9549031ec5119a00f13909808d874d2bee48fab760 - - initial_input_ast: 4f6e6ce3438c3b0e079e393d48dbe34f4161668307e41fb27c15f2effa3a23ab - initial_ast: bb9517ec8f446205ecd55e21ea9d93b2b0460f6e22d25f84880c816bdcd524d0 - unrolled_ast: bb9517ec8f446205ecd55e21ea9d93b2b0460f6e22d25f84880c816bdcd524d0 - ssa_ast: 43adb062cb7dc7e4aac92528e3545d6b8b400fcce7dadb6524079f7180b4ffb4 diff --git a/tests/expectations/compiler/integers/i16/gt.out b/tests/expectations/compiler/integers/i16/gt.out deleted file mode 100644 index f8f16defc0..0000000000 --- a/tests/expectations/compiler/integers/i16/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 6debec87347a0e02f0650cfef5f9796a5b24dfdccecc8ac0c4e8fd8ecbb2fa89 - - initial_input_ast: e1a19bbf471806a4b88240d098a78cd28a84e8fdc61f81c28242e7419a2ea1f7 - initial_ast: 296fe3a3669f387be6b4638882363df2e0393d86019ad43940f36b1c01807b75 - unrolled_ast: 296fe3a3669f387be6b4638882363df2e0393d86019ad43940f36b1c01807b75 - ssa_ast: a33e947f48cd47a38b17b5f9f9740d3ef74e4c626213008208fc8cf1bacf5d7e diff --git a/tests/expectations/compiler/integers/i16/le.out b/tests/expectations/compiler/integers/i16/le.out deleted file mode 100644 index 1f01811254..0000000000 --- a/tests/expectations/compiler/integers/i16/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 93c771afc86ce441611aad9549031ec5119a00f13909808d874d2bee48fab760 - - initial_input_ast: 6a8852e028a48406012818fc30637c8892bb322e1e43b97b3c87b8b1f6d37b4b - initial_ast: 81c75e50f7d9f8f17fc27789df30c7e2c26d6e10c2dbc12098ff510acddbdeef - unrolled_ast: 81c75e50f7d9f8f17fc27789df30c7e2c26d6e10c2dbc12098ff510acddbdeef - ssa_ast: f914a37dee3a6557af91ce76ec84123dcbcb0b932e96a168145a4956eb96f20a diff --git a/tests/expectations/compiler/integers/i16/lt.out b/tests/expectations/compiler/integers/i16/lt.out deleted file mode 100644 index 8088e8f1b5..0000000000 --- a/tests/expectations/compiler/integers/i16/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 6bc83c2aa19b57d081b9676bcc8cd9e8f00d03fa97e862b104a36f38700538de - - initial_input_ast: 54ff3d57fd6d6a459da0529f1082adf684abe5f57693b861dc7e2af2fb497cdb - initial_ast: 58204fe9684f7b768c9168d3bb295bcc26bf17fc9e5f31212acf98dda971e32d - unrolled_ast: 58204fe9684f7b768c9168d3bb295bcc26bf17fc9e5f31212acf98dda971e32d - ssa_ast: 0445d995410f9a02f4dc0269857ae84989af35bbb7be6e47d20a95378cbc87f6 diff --git a/tests/expectations/compiler/integers/i16/max.out b/tests/expectations/compiler/integers/i16/max.out deleted file mode 100644 index 843ff6cc32..0000000000 --- a/tests/expectations/compiler/integers/i16/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 57b0b52cb2b0c6908e058a5c5e21e416aa4c1f15f91ba992a71d3c26f7c60dda - initial_ast: 74a6b05734ea4d6db6b285086ab0252e6d36fe8741bdcf12d59a1748f20099d2 - unrolled_ast: 74a6b05734ea4d6db6b285086ab0252e6d36fe8741bdcf12d59a1748f20099d2 - ssa_ast: 7cf98bf6c48d3f89b6073b25b8b6793e6def9094134f69182864f220176eba03 diff --git a/tests/expectations/compiler/integers/i16/max_fail.out b/tests/expectations/compiler/integers/i16/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i16/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i16/min.out b/tests/expectations/compiler/integers/i16/min.out deleted file mode 100644 index eb9e6ae22c..0000000000 --- a/tests/expectations/compiler/integers/i16/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 8670b2a8edf5d9fecca99251656174a22b8dde340ebcae4a6281b578c8d5bc56 - initial_ast: 632cb26e1f4fa42650b74b6d4233add1130d52d0852b78c16a6c79704e0c3ecc - unrolled_ast: 632cb26e1f4fa42650b74b6d4233add1130d52d0852b78c16a6c79704e0c3ecc - ssa_ast: a9b54b511f7f5159e1c8a11df3301960dfe0d414a6e2b22897aa4577ac1e38ff diff --git a/tests/expectations/compiler/integers/i16/min_fail.out b/tests/expectations/compiler/integers/i16/min_fail.out deleted file mode 100644 index 220c99c584..0000000000 --- a/tests/expectations/compiler/integers/i16/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 32767i16 into r0;\\n sub r0 2i16 into r1;\\n output r1 as i16.private;\\n\", Nom(Tag)), (\"\\n neg 32767i16 into r0;\\n sub r0 2i16 into r1;\\n output r1 as i16.private;\\n\", Nom(Many1)), (\"function main:\\n neg 32767i16 into r0;\\n sub r0 2i16 into r1;\\n output r1 as i16.private;\\n\", Nom(Alt)), (\"function main:\\n neg 32767i16 into r0;\\n sub r0 2i16 into r1;\\n output r1 as i16.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i16/mul.out b/tests/expectations/compiler/integers/i16/mul.out deleted file mode 100644 index 75ac0f4047..0000000000 --- a/tests/expectations/compiler/integers/i16/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 6dd8e3b3f5b57e5369f8162ac07b6f0cc7bbe9512508eb33c8f3dd599e111b85 - initial_ast: eb870b1233098d1d83737d7fd8166a6275111fb0b3ecc0bd7d953c114af01dd2 - unrolled_ast: eb870b1233098d1d83737d7fd8166a6275111fb0b3ecc0bd7d953c114af01dd2 - ssa_ast: 89fe48cfef63fffcc11361d6ac4b399ad7c6b9bc31f77ecf171730394c6de394 diff --git a/tests/expectations/compiler/integers/i16/ne.out b/tests/expectations/compiler/integers/i16/ne.out deleted file mode 100644 index 8cc865fbf2..0000000000 --- a/tests/expectations/compiler/integers/i16/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: db63d1be0d393774920a8fbbff5cb96f7f74998691cd87e8a35eee3787a2ef6f - - initial_input_ast: 5845e0b27c33dddb59ec39d7424da9981b2e27d79934fde39d50c38b323cf1b6 - initial_ast: 1ed49d02c80f8cd7bef6e93c693c6f840af526f9d315b2796f6fdb4b25894a2a - unrolled_ast: 1ed49d02c80f8cd7bef6e93c693c6f840af526f9d315b2796f6fdb4b25894a2a - ssa_ast: d4fc2ef645866e079830f11cd54137573c978f05e4c29b9c6f582ca6a8b94cdd diff --git a/tests/expectations/compiler/integers/i16/negate.out b/tests/expectations/compiler/integers/i16/negate.out deleted file mode 100644 index 53f4a2c059..0000000000 --- a/tests/expectations/compiler/integers/i16/negate.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 406fa60cf680ec03454dcf053818ca3ee34ba94126f6f8078281d33d63a34c2e - - initial_input_ast: 5ba8e6fff792d26fb76663df5f3f4f732d3592841e5d4d33190ec72b870a6dc9 - initial_ast: 18e67f0234c32caebae9a010a4da2cf3ea545efa27fa8c65d9043c185cac6b54 - unrolled_ast: 18e67f0234c32caebae9a010a4da2cf3ea545efa27fa8c65d9043c185cac6b54 - ssa_ast: 6b4f01ae24fda6a5a06ee526855d249bb19ea2489fb208bedd43b24ca9434076 diff --git a/tests/expectations/compiler/integers/i16/negate_min_fail.out b/tests/expectations/compiler/integers/i16/negate_min_fail.out deleted file mode 100644 index 67e43c7a81..0000000000 --- a/tests/expectations/compiler/integers/i16/negate_min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 32767i16 into r0;\\n sub r0 1i16 into r1;\\n neg r1 into r2;\\n output r2 as i16.private;\\n\", Nom(Tag)), (\"\\n neg 32767i16 into r0;\\n sub r0 1i16 into r1;\\n neg r1 into r2;\\n output r2 as i16.private;\\n\", Nom(Many1)), (\"function main:\\n neg 32767i16 into r0;\\n sub r0 1i16 into r1;\\n neg r1 into r2;\\n output r2 as i16.private;\\n\", Nom(Alt)), (\"function main:\\n neg 32767i16 into r0;\\n sub r0 1i16 into r1;\\n neg r1 into r2;\\n output r2 as i16.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i16/negate_zero.out b/tests/expectations/compiler/integers/i16/negate_zero.out deleted file mode 100644 index 4c1095b462..0000000000 --- a/tests/expectations/compiler/integers/i16/negate_zero.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 76a0fe2199754831329d9b089d2c02f73d7457aaed6548372169318675b85f48 - initial_ast: b70fb2e84c0c1888ca7f72b5777d9a30d13ce0918305e0897f1210b2547f42bf - unrolled_ast: b70fb2e84c0c1888ca7f72b5777d9a30d13ce0918305e0897f1210b2547f42bf - ssa_ast: e437450ac26d6317b046910f7240f6491e0c444d5c42b0395223ad5fadf3666a diff --git a/tests/expectations/compiler/integers/i16/no_space_between_literal.out b/tests/expectations/compiler/integers/i16/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i16/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i16/operator_methods.out b/tests/expectations/compiler/integers/i16/operator_methods.out deleted file mode 100644 index 0ff517ae08..0000000000 --- a/tests/expectations/compiler/integers/i16/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b0770aff98c17e17fb47ce2269ab3fe89208374c8f786f02c0747c71e24bd362 - initial_ast: 91811f9d0b0dbe7b10516540b6315b84e89c29adecd3519633cb9daa018b6642 - unrolled_ast: 91811f9d0b0dbe7b10516540b6315b84e89c29adecd3519633cb9daa018b6642 - ssa_ast: fcc0aff9459e93709d4dd5179e2073b7a565fcb346713d70cdd83b7a9d136b2d diff --git a/tests/expectations/compiler/integers/i16/or.out b/tests/expectations/compiler/integers/i16/or.out deleted file mode 100644 index 6bdacb572a..0000000000 --- a/tests/expectations/compiler/integers/i16/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2c7911ddb339c2fcdee25cf21fec17727233c194b135902d29f247cc7c20c446 - initial_ast: f4a4b36fe49563990b1935a3652f269c486e3ff1e4f2703bd9ba27bea448441d - unrolled_ast: f4a4b36fe49563990b1935a3652f269c486e3ff1e4f2703bd9ba27bea448441d - ssa_ast: 60655c11dcca530a5b54179dbe3a1b467423ea0aeb4951c088195559528c0954 diff --git a/tests/expectations/compiler/integers/i16/pow.out b/tests/expectations/compiler/integers/i16/pow.out deleted file mode 100644 index 5eabe85fd3..0000000000 --- a/tests/expectations/compiler/integers/i16/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 935da16d7df054c00286faa15dd10d61e07092638bad897f4fbd2de59a55d4af - initial_ast: 56c388701b0fb054284c35b2a8667a593c51c8232d3a3a379ee71edfc9fc8890 - unrolled_ast: 56c388701b0fb054284c35b2a8667a593c51c8232d3a3a379ee71edfc9fc8890 - ssa_ast: 0a883ebe440001a326a9b12fc53efff42269533bfddb665992da1c1172847d5b diff --git a/tests/expectations/compiler/integers/i16/shl.out b/tests/expectations/compiler/integers/i16/shl.out deleted file mode 100644 index 640c59dcf3..0000000000 --- a/tests/expectations/compiler/integers/i16/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b3abe04a59183a7c3eb40617edc44dec991ff67a3b71bb9cafdd8f20ccdd03f7 - initial_ast: 14769071e8f996b3ff20a2dd730b84d4f43bdd5cee2267f3437f494db29f858a - unrolled_ast: 14769071e8f996b3ff20a2dd730b84d4f43bdd5cee2267f3437f494db29f858a - ssa_ast: f1beffa5bad200c694bf0d7fa2de5f9a0312416b73a434f306f0f8dcbeb321cd diff --git a/tests/expectations/compiler/integers/i16/shr.out b/tests/expectations/compiler/integers/i16/shr.out deleted file mode 100644 index be6457aeed..0000000000 --- a/tests/expectations/compiler/integers/i16/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b3abe04a59183a7c3eb40617edc44dec991ff67a3b71bb9cafdd8f20ccdd03f7 - initial_ast: aef75576f734d6edd60f3c4f0bc7bb186b8109fa80a80f1c92267e127ea1d59e - unrolled_ast: aef75576f734d6edd60f3c4f0bc7bb186b8109fa80a80f1c92267e127ea1d59e - ssa_ast: d4f1065ff78549a20790372f3e3f12d77562fa9b13869669e3ccbe2fae098956 diff --git a/tests/expectations/compiler/integers/i16/sub.out b/tests/expectations/compiler/integers/i16/sub.out deleted file mode 100644 index 1087bfa1aa..0000000000 --- a/tests/expectations/compiler/integers/i16/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 943916e0ea110fb1aefe6999a3f26173e62f3717d66e88455526446567036c22 - initial_ast: 01b59879a5c724b150a97c4dde5f943c2f20efe3f15d4d395a3fe91005be2127 - unrolled_ast: 01b59879a5c724b150a97c4dde5f943c2f20efe3f15d4d395a3fe91005be2127 - ssa_ast: 7484a6c404947188bb53ba20d5c7d376de1880784ab84e6265187b7b0b4cf750 diff --git a/tests/expectations/compiler/integers/i16/ternary.out b/tests/expectations/compiler/integers/i16/ternary.out deleted file mode 100644 index 250f4e72d0..0000000000 --- a/tests/expectations/compiler/integers/i16/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a66197c1472ce09aa4da1fac2723d57d6d4b6fb8082339aa69ff12a3c4b2a43e - - initial_input_ast: 530b07c6c47bea42f2e00c08bcdd4fd953faa8903b7104f27ca86058d4bb139f - initial_ast: f4114b00588ee019733f188567fe6983185170adbe1492d37771784f9f2e2693 - unrolled_ast: f4114b00588ee019733f188567fe6983185170adbe1492d37771784f9f2e2693 - ssa_ast: 687bb6fbf20d523a107bc5a863a0374d6fc7fecb6a1fe1c3d0954604b9f461bb diff --git a/tests/expectations/compiler/integers/i16/xor.out b/tests/expectations/compiler/integers/i16/xor.out deleted file mode 100644 index 860a8c780e..0000000000 --- a/tests/expectations/compiler/integers/i16/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: eb4fed9cfe74f76e7a3c46480ad5e8325180ee5e388b7cefa93541458c79dc2a - initial_ast: 89767530143254816b79c55bee743eba5b43d7fe5790f223ab3b122304c3eefd - unrolled_ast: 89767530143254816b79c55bee743eba5b43d7fe5790f223ab3b122304c3eefd - ssa_ast: 19151aafdb1a45e68450c1aa9e804ec0ce0fe72845be843d73aeefae75b9818c diff --git a/tests/expectations/compiler/integers/i32/add.out b/tests/expectations/compiler/integers/i32/add.out deleted file mode 100644 index 113747d932..0000000000 --- a/tests/expectations/compiler/integers/i32/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 06d0a821012e07b40e3730441970af91f580ac09d484495bd18fba367bc715f8 - initial_ast: f9ec39a3a7041d9d31ec1d68bea774e287607addaec7d0bb862d40d50a60a19e - unrolled_ast: f9ec39a3a7041d9d31ec1d68bea774e287607addaec7d0bb862d40d50a60a19e - ssa_ast: 0292a9582b98fa496ca987e970c1cf7063b288ecaf8fa99268da984e1ecc4dd2 diff --git a/tests/expectations/compiler/integers/i32/and.out b/tests/expectations/compiler/integers/i32/and.out deleted file mode 100644 index 2ebd51e088..0000000000 --- a/tests/expectations/compiler/integers/i32/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 06d0a821012e07b40e3730441970af91f580ac09d484495bd18fba367bc715f8 - initial_ast: 5a6fea62e5f5c5782c21788429605127f2a1868f1306e78a6649d3218031080a - unrolled_ast: 5a6fea62e5f5c5782c21788429605127f2a1868f1306e78a6649d3218031080a - ssa_ast: 8d8a552ebf29f074d0021d8c2863be39cc2ffdabd1456ee32bac52f620034ca2 diff --git a/tests/expectations/compiler/integers/i32/console_assert.out b/tests/expectations/compiler/integers/i32/console_assert.out deleted file mode 100644 index 4509ffc5ad..0000000000 --- a/tests/expectations/compiler/integers/i32/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5a123b22fda20783fdb0f82c51bc23cd043f0f13a0deb2185eb493cc80499d8f - initial_ast: dc3b855c960e45ab23efe05f89a635b869af6c6f5b89cd44335540e83416bb8b - unrolled_ast: dc3b855c960e45ab23efe05f89a635b869af6c6f5b89cd44335540e83416bb8b - ssa_ast: 98e932494a35361fa82842c7d66e057339bef0943d83e57beb1e38c807cdbc21 diff --git a/tests/expectations/compiler/integers/i32/div.out b/tests/expectations/compiler/integers/i32/div.out deleted file mode 100644 index c96c6557e6..0000000000 --- a/tests/expectations/compiler/integers/i32/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 1e1ad21140ba63decbebd0245ea4e64e60f42a572cf131e83e7dea27048774e5 - initial_ast: 11f108e7c75c3a21db122a60d89611b26f25cfcb78ee132191de8fab7837138e - unrolled_ast: 11f108e7c75c3a21db122a60d89611b26f25cfcb78ee132191de8fab7837138e - ssa_ast: d3810077e73bffee4c86270b4300a70ed3397d1f6ba2361f336f69e97f065e4b diff --git a/tests/expectations/compiler/integers/i32/eq.out b/tests/expectations/compiler/integers/i32/eq.out deleted file mode 100644 index 5e22f7a4a1..0000000000 --- a/tests/expectations/compiler/integers/i32/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 759ecc252daec5ad529daf4340407bd63b4b1d0ef41234986620aa259edd9fe9 - initial_ast: b90ccb385bc5b2a743c481ed3fd7ef334cc3b0cd3167b76dc75c0a8d1e48f81c - unrolled_ast: b90ccb385bc5b2a743c481ed3fd7ef334cc3b0cd3167b76dc75c0a8d1e48f81c - ssa_ast: 0800b221b886091b96ae70bc0516f4cf7e84ed821bf6941b61f86f6e5f5b7cf7 diff --git a/tests/expectations/compiler/integers/i32/ge.out b/tests/expectations/compiler/integers/i32/ge.out deleted file mode 100644 index 1eb00882d4..0000000000 --- a/tests/expectations/compiler/integers/i32/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a5007d9ff1071decf46a0894fe26b5a1a5f69a1e2301f4a26d46958fe11df6b4 - - initial_input_ast: 1344f641fadb1b0c1efc7932c9957eaa6bd052fe894f078727f8fe3f49f22a0e - initial_ast: 986109a6bab50b71cb97baef43a3843739e7d9cfecbf96a3d4c04b6bf42316a3 - unrolled_ast: 986109a6bab50b71cb97baef43a3843739e7d9cfecbf96a3d4c04b6bf42316a3 - ssa_ast: 2923c3082a3eb16e3ad09ed8d61e3abc5c269341d51c5d0dc30e43ba14e599d2 diff --git a/tests/expectations/compiler/integers/i32/gt.out b/tests/expectations/compiler/integers/i32/gt.out deleted file mode 100644 index 898c22d08e..0000000000 --- a/tests/expectations/compiler/integers/i32/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2b606889131b76a9ebc315366784b04c1f3f1bd83893a38c268cc22fab22cca8 - - initial_input_ast: aaab2c93957b0d352572d29a19bf93c1ebe064ecdf1a2eac7937a63ea3b9b8e6 - initial_ast: 71231dc5fee42d16e4140d9334f2f2c2721d7b7425c590ddc8e6212a0b13e19b - unrolled_ast: 71231dc5fee42d16e4140d9334f2f2c2721d7b7425c590ddc8e6212a0b13e19b - ssa_ast: fe2b6c2a5c2ccc68c6d0182754f7f88ffe60f3b634c4ddb038651ccd946ba677 diff --git a/tests/expectations/compiler/integers/i32/le.out b/tests/expectations/compiler/integers/i32/le.out deleted file mode 100644 index df0818b535..0000000000 --- a/tests/expectations/compiler/integers/i32/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a5007d9ff1071decf46a0894fe26b5a1a5f69a1e2301f4a26d46958fe11df6b4 - - initial_input_ast: c5477865023b52a9d11c4d5b55331f2db85d3731a3c7b1c73329e4cf7a23bc05 - initial_ast: e44418ced3e4855a295055809dd235d05c59d5e620d0d0147ee5306aa5b2b3b5 - unrolled_ast: e44418ced3e4855a295055809dd235d05c59d5e620d0d0147ee5306aa5b2b3b5 - ssa_ast: 62952762b1b12ae136c2fb0976f6c82fcfe610565710d7fbf49bb3132f1b03c1 diff --git a/tests/expectations/compiler/integers/i32/lt.out b/tests/expectations/compiler/integers/i32/lt.out deleted file mode 100644 index 4c071795b6..0000000000 --- a/tests/expectations/compiler/integers/i32/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9af61194c74c1568b34bca0516d36035d64188b8481a153c1666b331b3fd9909 - - initial_input_ast: 5ac9009ffcfa69e6a4645e933f255fbf5a6ff9e0dbf0dfad3cbe391257cede89 - initial_ast: 1c5cfc9cca91cc58b043409fabc8c762d4411b6a8ed7b71530c014000a754b77 - unrolled_ast: 1c5cfc9cca91cc58b043409fabc8c762d4411b6a8ed7b71530c014000a754b77 - ssa_ast: 2ab18ef5a49df8339e55f78d492c5b977a90e451ffb7ccdd693f2cb50ac4b103 diff --git a/tests/expectations/compiler/integers/i32/max.out b/tests/expectations/compiler/integers/i32/max.out deleted file mode 100644 index f5db4f125e..0000000000 --- a/tests/expectations/compiler/integers/i32/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 675f7fa8534cf0d511a2531441790b3e61aafc4997342d346f36207449d961fb - initial_ast: cfd5fead2f00119aead9933406fe1a21f035a9840098a0fd429233c3683be9e2 - unrolled_ast: cfd5fead2f00119aead9933406fe1a21f035a9840098a0fd429233c3683be9e2 - ssa_ast: bd52f1b068e50fc1b7779a125817536ff55d681fe91b0d8db0e1344b1e07dc4c diff --git a/tests/expectations/compiler/integers/i32/max_fail.out b/tests/expectations/compiler/integers/i32/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i32/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i32/min.out b/tests/expectations/compiler/integers/i32/min.out deleted file mode 100644 index 8e0e007388..0000000000 --- a/tests/expectations/compiler/integers/i32/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ec75fa23bbcd67f7200093c62ecb592132a4147342075b4a98ec3b077c061b60 - initial_ast: 3d52acf2c2fa158ff60b7a95a562301315ae2ba8b04c1424820952b6a93b86a6 - unrolled_ast: 3d52acf2c2fa158ff60b7a95a562301315ae2ba8b04c1424820952b6a93b86a6 - ssa_ast: 44b3d8b31a832e34d4b31da3a57dc818e606ff7c07cf17929680453acb0030c1 diff --git a/tests/expectations/compiler/integers/i32/min_fail.out b/tests/expectations/compiler/integers/i32/min_fail.out deleted file mode 100644 index 070b0aa255..0000000000 --- a/tests/expectations/compiler/integers/i32/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 2147483647i32 into r0;\\n sub r0 2i32 into r1;\\n output r1 as i32.private;\\n\", Nom(Tag)), (\"\\n neg 2147483647i32 into r0;\\n sub r0 2i32 into r1;\\n output r1 as i32.private;\\n\", Nom(Many1)), (\"function main:\\n neg 2147483647i32 into r0;\\n sub r0 2i32 into r1;\\n output r1 as i32.private;\\n\", Nom(Alt)), (\"function main:\\n neg 2147483647i32 into r0;\\n sub r0 2i32 into r1;\\n output r1 as i32.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i32/mul.out b/tests/expectations/compiler/integers/i32/mul.out deleted file mode 100644 index 386bfb918f..0000000000 --- a/tests/expectations/compiler/integers/i32/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 7706a16ff7fee9e17b87d17f6ebb7912f85867b7d209336e96f9e393f2a89e9f - initial_ast: 60c4b41fe1a65a42a4fa202486f879035f37e2d8e3013115d758968662734177 - unrolled_ast: 60c4b41fe1a65a42a4fa202486f879035f37e2d8e3013115d758968662734177 - ssa_ast: 2132c7bcc0321905aeed396b4f61f732fa8fc818882cafc4690b39173eb3f892 diff --git a/tests/expectations/compiler/integers/i32/ne.out b/tests/expectations/compiler/integers/i32/ne.out deleted file mode 100644 index f8da6ba8e3..0000000000 --- a/tests/expectations/compiler/integers/i32/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5fb5bf840a14156001b929f422fa649c943165666c5b8c66e074cdcbab140ef5 - - initial_input_ast: bd749c3a40d74e985a2919a88d77f6142e9c58b486733bd525684dc0728a3c8e - initial_ast: 184e1e09e3e188ac5c7dd357fda4e6f8d30cc4839b711cfee30037c8f5b59089 - unrolled_ast: 184e1e09e3e188ac5c7dd357fda4e6f8d30cc4839b711cfee30037c8f5b59089 - ssa_ast: f1e745701d6e66c81666e1c00efe12468db9993c76555754e31dc2757c89fe01 diff --git a/tests/expectations/compiler/integers/i32/negate.out b/tests/expectations/compiler/integers/i32/negate.out deleted file mode 100644 index 0da514dbcb..0000000000 --- a/tests/expectations/compiler/integers/i32/negate.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5e885de2c06148958b173c9b25f558609b658799b81a314ac9a3bc082f5cb95a - - initial_input_ast: 6e135a3c46a24712edc02d1153d4e5a0702b4c32b2b121363e488fd08a27fc7c - initial_ast: 9d4023539fec5b8394476d2f37af80d2cad51a50ecd86ef78d1f2b8caa62a40b - unrolled_ast: 9d4023539fec5b8394476d2f37af80d2cad51a50ecd86ef78d1f2b8caa62a40b - ssa_ast: 220cf92b6655c5b981e3323687b2edcbdbdd091c96ba879657abb61f1a894f1e diff --git a/tests/expectations/compiler/integers/i32/negate_min_fail.out b/tests/expectations/compiler/integers/i32/negate_min_fail.out deleted file mode 100644 index 3f87170233..0000000000 --- a/tests/expectations/compiler/integers/i32/negate_min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 2147483647i32 into r0;\\n sub r0 1i32 into r1;\\n neg r1 into r2;\\n output r2 as i32.private;\\n\", Nom(Tag)), (\"\\n neg 2147483647i32 into r0;\\n sub r0 1i32 into r1;\\n neg r1 into r2;\\n output r2 as i32.private;\\n\", Nom(Many1)), (\"function main:\\n neg 2147483647i32 into r0;\\n sub r0 1i32 into r1;\\n neg r1 into r2;\\n output r2 as i32.private;\\n\", Nom(Alt)), (\"function main:\\n neg 2147483647i32 into r0;\\n sub r0 1i32 into r1;\\n neg r1 into r2;\\n output r2 as i32.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i32/negate_zero.out b/tests/expectations/compiler/integers/i32/negate_zero.out deleted file mode 100644 index e22ae62460..0000000000 --- a/tests/expectations/compiler/integers/i32/negate_zero.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 76a0fe2199754831329d9b089d2c02f73d7457aaed6548372169318675b85f48 - initial_ast: 581c00cdaa8267f18da1bec584c12b6f45f1641db7811e0e4c3af26c164bd78d - unrolled_ast: 581c00cdaa8267f18da1bec584c12b6f45f1641db7811e0e4c3af26c164bd78d - ssa_ast: f9a1eb8e55c08ba3fce6d60560bd8beb050ea85a91ea2fe06f6bed4da42f49f3 diff --git a/tests/expectations/compiler/integers/i32/no_space_between_literal.out b/tests/expectations/compiler/integers/i32/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i32/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i32/operator_methods.out b/tests/expectations/compiler/integers/i32/operator_methods.out deleted file mode 100644 index 8d28b4013a..0000000000 --- a/tests/expectations/compiler/integers/i32/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5982207793f575c078ebaa299a9383b47ed884ac654e04814e434698b1e7b2d9 - initial_ast: b21cc99be651e02756d59c2b09e20e3a26f28254950c532d597164718100f96d - unrolled_ast: b21cc99be651e02756d59c2b09e20e3a26f28254950c532d597164718100f96d - ssa_ast: ed42a49c6fb0bd7319f44c18f321eef2fd5781f36eea524d33e02e0628b103e2 diff --git a/tests/expectations/compiler/integers/i32/or.out b/tests/expectations/compiler/integers/i32/or.out deleted file mode 100644 index 52c2d40ef8..0000000000 --- a/tests/expectations/compiler/integers/i32/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 06d0a821012e07b40e3730441970af91f580ac09d484495bd18fba367bc715f8 - initial_ast: c011efbb6ce6873822c60f62d41bd7afd4a35b6f1c5aa2be76ace114df10e7ad - unrolled_ast: c011efbb6ce6873822c60f62d41bd7afd4a35b6f1c5aa2be76ace114df10e7ad - ssa_ast: 0fd38300b46fd6ddbfe0debc637333d8edd65440f98ec8b12bd9a08901bf8e0d diff --git a/tests/expectations/compiler/integers/i32/pow.out b/tests/expectations/compiler/integers/i32/pow.out deleted file mode 100644 index cae3f0c19f..0000000000 --- a/tests/expectations/compiler/integers/i32/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e87f9920219d3c97ddef7a2f2926dc016ce2d5dcd2bc510bfe0ce47930feaf94 - initial_ast: cc383f79b7a5715ce3400461883f9f18966f343279cc41a39b185d9c9a07dca1 - unrolled_ast: cc383f79b7a5715ce3400461883f9f18966f343279cc41a39b185d9c9a07dca1 - ssa_ast: 8136ad0b12220f5b7eacfb5ecf62fc8e95ca973f5fd753b681d89df6386db34c diff --git a/tests/expectations/compiler/integers/i32/shl.out b/tests/expectations/compiler/integers/i32/shl.out deleted file mode 100644 index 357bb17031..0000000000 --- a/tests/expectations/compiler/integers/i32/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ec75fa23bbcd67f7200093c62ecb592132a4147342075b4a98ec3b077c061b60 - initial_ast: 9851e3b743752040f2c4389b72b1b129992eb0b182949e2f5853d862e9086912 - unrolled_ast: 9851e3b743752040f2c4389b72b1b129992eb0b182949e2f5853d862e9086912 - ssa_ast: b5a3789b6736a4bd8b1818174bfddabee921df397d8d92aec622f1958f1443bc diff --git a/tests/expectations/compiler/integers/i32/shr.out b/tests/expectations/compiler/integers/i32/shr.out deleted file mode 100644 index b5ca6aec0e..0000000000 --- a/tests/expectations/compiler/integers/i32/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ec75fa23bbcd67f7200093c62ecb592132a4147342075b4a98ec3b077c061b60 - initial_ast: 35d5fde45fa49c11b92d36dd6791130505175b6c168fa567de2b461dd4d1cd2e - unrolled_ast: 35d5fde45fa49c11b92d36dd6791130505175b6c168fa567de2b461dd4d1cd2e - ssa_ast: 25cfde85647d0bfe60cd48d0750be67ccf958e50db71dc4a0c6c2bf1d96e7443 diff --git a/tests/expectations/compiler/integers/i32/sub.out b/tests/expectations/compiler/integers/i32/sub.out deleted file mode 100644 index 2017d1d382..0000000000 --- a/tests/expectations/compiler/integers/i32/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: bc8cf1657042cf580047af0b4da6601ba2b37a07e6a0b0b549c6fe6e168ccd21 - initial_ast: 2456d26e09d2451d71ae981d0a2492e09a3585f9dc554d4c5d882815b6cb9e92 - unrolled_ast: 2456d26e09d2451d71ae981d0a2492e09a3585f9dc554d4c5d882815b6cb9e92 - ssa_ast: 8750f11f160c2a86e46add92c6c976f8f8a4d5ea4f97155ad1b4f915cb504085 diff --git a/tests/expectations/compiler/integers/i32/ternary.out b/tests/expectations/compiler/integers/i32/ternary.out deleted file mode 100644 index ecec4604bd..0000000000 --- a/tests/expectations/compiler/integers/i32/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5698b1e8a29900293a04fda5850e12e64a0d4726451701d8a726537e31bf5893 - - initial_input_ast: 8025ae0dc58c3afb172a5451a69ef11be764fef4d3c2ad0bd0a253b635a97606 - initial_ast: e91a2d948492ff1c95f15a61ef90c8dce0f3eac9366c134246301ec674a8c183 - unrolled_ast: e91a2d948492ff1c95f15a61ef90c8dce0f3eac9366c134246301ec674a8c183 - ssa_ast: db75a655ffbaf04f8f1afbacd1031e97ce81ca249ef06c95c0ff1df05321d8f2 diff --git a/tests/expectations/compiler/integers/i32/xor.out b/tests/expectations/compiler/integers/i32/xor.out deleted file mode 100644 index 7c4b04b75c..0000000000 --- a/tests/expectations/compiler/integers/i32/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 7890b42cf634b28c6b214d92654107bff211c515e1e6b7bfafa1c41af4952eab - initial_ast: 152a39ca45ec384237ac168ac201a2de59a046f1ab136ea5c6851330b7481825 - unrolled_ast: 152a39ca45ec384237ac168ac201a2de59a046f1ab136ea5c6851330b7481825 - ssa_ast: 59abaa8f45dbf37d865d5256616f467a303df8f7f4ba8ef69b478095cf2f1396 diff --git a/tests/expectations/compiler/integers/i64/add.out b/tests/expectations/compiler/integers/i64/add.out deleted file mode 100644 index d9bba0afad..0000000000 --- a/tests/expectations/compiler/integers/i64/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 977a18c10a9f8131acb2f7cf2e24680ed4aa2366e3b241d154e0ed9733fb0879 - initial_ast: 948045fa17bcb7ce179969fb3045b48960a7a6c22d256513a57d802db958ad45 - unrolled_ast: 948045fa17bcb7ce179969fb3045b48960a7a6c22d256513a57d802db958ad45 - ssa_ast: f1d7ac5c4093dbb6875fcf348535357f8bed7223be5ef5232aa0ea79ce514b78 diff --git a/tests/expectations/compiler/integers/i64/and.out b/tests/expectations/compiler/integers/i64/and.out deleted file mode 100644 index fe6d81242e..0000000000 --- a/tests/expectations/compiler/integers/i64/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 977a18c10a9f8131acb2f7cf2e24680ed4aa2366e3b241d154e0ed9733fb0879 - initial_ast: 33ac492dba7406e71de8a49a5bc296727b05d173978b48262fa035ab355d6f17 - unrolled_ast: 33ac492dba7406e71de8a49a5bc296727b05d173978b48262fa035ab355d6f17 - ssa_ast: 43d96970bb22e25b6da2c50c9de4e22f9a6e04b696a51eab605b6c86269de0f9 diff --git a/tests/expectations/compiler/integers/i64/console_assert.out b/tests/expectations/compiler/integers/i64/console_assert.out deleted file mode 100644 index 18683f3a9c..0000000000 --- a/tests/expectations/compiler/integers/i64/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 59bd3ad2ecbc27173c85f464424de2c7e4ba8c1da4debb8029e90d88790d00d8 - initial_ast: ea1e6f995fbbf3a781e525a7db2f31627a43b339e0ce765bd8bf7225590221e3 - unrolled_ast: ea1e6f995fbbf3a781e525a7db2f31627a43b339e0ce765bd8bf7225590221e3 - ssa_ast: a44efcc62d2d36cfd493f46e6883936ba1e916bb4930aae0b7616f83c2dd0703 diff --git a/tests/expectations/compiler/integers/i64/div.out b/tests/expectations/compiler/integers/i64/div.out deleted file mode 100644 index 28f33bcb93..0000000000 --- a/tests/expectations/compiler/integers/i64/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: fb4b6c2851eb750bb98fdc1a605cc454eae67d391169390fe4bc4762da357330 - initial_ast: f43bbdb2b989fa7873a99cb3deea250d815e9e5b75bfb7716279805409222cce - unrolled_ast: f43bbdb2b989fa7873a99cb3deea250d815e9e5b75bfb7716279805409222cce - ssa_ast: 31ab10a81f16c7d1a3d840b2005fd44b0237c37b6b50fb22b97b29fb3709eb23 diff --git a/tests/expectations/compiler/integers/i64/eq.out b/tests/expectations/compiler/integers/i64/eq.out deleted file mode 100644 index fc018e47e9..0000000000 --- a/tests/expectations/compiler/integers/i64/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 525e046c7acfd0fe01d09860daecb4053ba2a90820f0156cc2f1fae5108f4f49 - initial_ast: 3fbc261f657e05e141b261fdb060b8eadb4453d9c9ac78bd413a1fff73e8514a - unrolled_ast: 3fbc261f657e05e141b261fdb060b8eadb4453d9c9ac78bd413a1fff73e8514a - ssa_ast: 181bd01feb40cbb6264c55c0254ab33969b656abb38c06495b5f20a5f285d8a1 diff --git a/tests/expectations/compiler/integers/i64/ge.out b/tests/expectations/compiler/integers/i64/ge.out deleted file mode 100644 index 77a2531d69..0000000000 --- a/tests/expectations/compiler/integers/i64/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e46fa95614a8aa29a9dddab1407d8fc122c5b81a59316b2cf01602cad64ace26 - - initial_input_ast: 43b74ba4ecdd6833d5c9caf13c738698fbaa6cf17190d214f557c880551c52e9 - initial_ast: 3af7abd9654e698e7eb1457699ce95560e53efd884ec80d471a05a32fc21beee - unrolled_ast: 3af7abd9654e698e7eb1457699ce95560e53efd884ec80d471a05a32fc21beee - ssa_ast: 6311df4278c076369b3f3692bef2a3a03f91e1d4eff5f692df8bce9fd372221d diff --git a/tests/expectations/compiler/integers/i64/gt.out b/tests/expectations/compiler/integers/i64/gt.out deleted file mode 100644 index 535d7be035..0000000000 --- a/tests/expectations/compiler/integers/i64/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 6b49ead8df8fe3ca4ebfe0c82e17f19f8d1a155d6256c92dcdc9cd4f58dbad28 - - initial_input_ast: abfc4b6a23e9098ea7a81691ed2f9c22b8a3a2cdbf764098db11cfbc40b9cb29 - initial_ast: 97fe81922d77f91994c9fed6194a483b4b8b50a18828bb74cd482b54f2d9ffe3 - unrolled_ast: 97fe81922d77f91994c9fed6194a483b4b8b50a18828bb74cd482b54f2d9ffe3 - ssa_ast: b04986aa3aab75c773fb134dd17919b9acfa5f0bc13cc233d9c2397f7c8b1a21 diff --git a/tests/expectations/compiler/integers/i64/le.out b/tests/expectations/compiler/integers/i64/le.out deleted file mode 100644 index d3087792b9..0000000000 --- a/tests/expectations/compiler/integers/i64/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e46fa95614a8aa29a9dddab1407d8fc122c5b81a59316b2cf01602cad64ace26 - - initial_input_ast: 5b239c93a0ad62c5bd506e8858319e0fd13199069c0d4f05c3781f716176bebc - initial_ast: 86cdb9ddbdec50d2d04d806fe68eefaa803e58643e2bd999cc8c2052f55dd095 - unrolled_ast: 86cdb9ddbdec50d2d04d806fe68eefaa803e58643e2bd999cc8c2052f55dd095 - ssa_ast: ff59de99ffc6b09892acc7cb911402fc5f4c9eaad7f86d942301af0b742afeeb diff --git a/tests/expectations/compiler/integers/i64/lt.out b/tests/expectations/compiler/integers/i64/lt.out deleted file mode 100644 index 34c0c5b979..0000000000 --- a/tests/expectations/compiler/integers/i64/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 0505e11c1ba5993289a95ca23d8284b98306cbcf05d09523236959b82c5a63df - - initial_input_ast: 2893b2993351883eb062f02e840ec5b4a1475ad28f32e51062f55f5df6402824 - initial_ast: 4d4b0663a4578d0970a28638bf9dc4ad9f72afce6373433ce899e01b326989e6 - unrolled_ast: 4d4b0663a4578d0970a28638bf9dc4ad9f72afce6373433ce899e01b326989e6 - ssa_ast: 53eef68182327fa32d8070468dd9e4f3a0c5cc9bc089f3414f150cc3ee11979e diff --git a/tests/expectations/compiler/integers/i64/max.out b/tests/expectations/compiler/integers/i64/max.out deleted file mode 100644 index f5113e5cc1..0000000000 --- a/tests/expectations/compiler/integers/i64/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 0d103759856c9c525f8c00ec42f6bb120c934f5ad4cabf06e9aa6feb12298888 - initial_ast: c92a06cf11f329404f1ec9d9ffe68f4ac36c11624bd11150ff3e76927870d5a3 - unrolled_ast: c92a06cf11f329404f1ec9d9ffe68f4ac36c11624bd11150ff3e76927870d5a3 - ssa_ast: 4c8f8ccb85ae57a8a67cc4be36322c4bc7bf25e0a90d8f6ceef5e6e35b8eea2f diff --git a/tests/expectations/compiler/integers/i64/max_fail.out b/tests/expectations/compiler/integers/i64/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i64/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i64/min.out b/tests/expectations/compiler/integers/i64/min.out deleted file mode 100644 index 3d3c5e69f2..0000000000 --- a/tests/expectations/compiler/integers/i64/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 79e803c0a39b4532052708ed3ec83e020452b7756f49dc2851290b9077b2c0e4 - initial_ast: 9bf3db279f323af043b2210364f2e8fb71b6bca7f3053b7ea9b444cd75990289 - unrolled_ast: 9bf3db279f323af043b2210364f2e8fb71b6bca7f3053b7ea9b444cd75990289 - ssa_ast: 6971a4ff4d84bb537b31413d5129cb26c41cdf7297e740e6906f18d05918b959 diff --git a/tests/expectations/compiler/integers/i64/min_fail.out b/tests/expectations/compiler/integers/i64/min_fail.out deleted file mode 100644 index f4b959400e..0000000000 --- a/tests/expectations/compiler/integers/i64/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 9223372036854775807i64 into r0;\\n sub r0 2i64 into r1;\\n output r1 as i64.private;\\n\", Nom(Tag)), (\"\\n neg 9223372036854775807i64 into r0;\\n sub r0 2i64 into r1;\\n output r1 as i64.private;\\n\", Nom(Many1)), (\"function main:\\n neg 9223372036854775807i64 into r0;\\n sub r0 2i64 into r1;\\n output r1 as i64.private;\\n\", Nom(Alt)), (\"function main:\\n neg 9223372036854775807i64 into r0;\\n sub r0 2i64 into r1;\\n output r1 as i64.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i64/mul.out b/tests/expectations/compiler/integers/i64/mul.out deleted file mode 100644 index 5e207eaed8..0000000000 --- a/tests/expectations/compiler/integers/i64/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e68b68d6b69f3dba2f082d8b1771c6040538abe76d9592c7f28c0d12848166fb - initial_ast: 33d112185e025d5e533f0f99f472d7f5ad545ff359eae4a3502774b24075494a - unrolled_ast: 33d112185e025d5e533f0f99f472d7f5ad545ff359eae4a3502774b24075494a - ssa_ast: 00c740f4b9ad12598ba35998c0bc52066ccbe553c9d476f020d52612ba2b1e23 diff --git a/tests/expectations/compiler/integers/i64/ne.out b/tests/expectations/compiler/integers/i64/ne.out deleted file mode 100644 index 8cb4f271df..0000000000 --- a/tests/expectations/compiler/integers/i64/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 070b3ccdaae03383f76a8e22550f64fb0b0332a1da1d26108cd83b981fe6f18e - - initial_input_ast: 7834ed1db124da61272b4ccbb750e4b1921878d1d33a60579c68b2836b17f269 - initial_ast: d2eeb47c593c9f4f85135e7cccc53cae875e870f7144673ae700c99d9eb605fe - unrolled_ast: d2eeb47c593c9f4f85135e7cccc53cae875e870f7144673ae700c99d9eb605fe - ssa_ast: 577fd2c5a8d7b19e06a63f633e57bfb86fe3349994084b947fd387119a5a1d14 diff --git a/tests/expectations/compiler/integers/i64/negate.out b/tests/expectations/compiler/integers/i64/negate.out deleted file mode 100644 index 60ed2907bc..0000000000 --- a/tests/expectations/compiler/integers/i64/negate.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 137c0b0b2bca3b760e859707a6fc686d9a7059f434afb33282ce8cf3c228d3c2 - - initial_input_ast: a4c7ace41a4f18328386adc30f8c869156bbf8a69d825b526e42957ebcb54c69 - initial_ast: c2ce64bf8520c42e74c01184eda4f36274f4dd7635e5a5ad9467016c7af07e77 - unrolled_ast: c2ce64bf8520c42e74c01184eda4f36274f4dd7635e5a5ad9467016c7af07e77 - ssa_ast: 6c76bab86a1aa1a0e99e8b2a71d22260a0b3101289164c976c589dcfdb33eb5f diff --git a/tests/expectations/compiler/integers/i64/negate_min_fail.out b/tests/expectations/compiler/integers/i64/negate_min_fail.out deleted file mode 100644 index 4dca5852cb..0000000000 --- a/tests/expectations/compiler/integers/i64/negate_min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 9223372036854775807i64 into r0;\\n sub r0 1i64 into r1;\\n neg r1 into r2;\\n output r2 as i64.private;\\n\", Nom(Tag)), (\"\\n neg 9223372036854775807i64 into r0;\\n sub r0 1i64 into r1;\\n neg r1 into r2;\\n output r2 as i64.private;\\n\", Nom(Many1)), (\"function main:\\n neg 9223372036854775807i64 into r0;\\n sub r0 1i64 into r1;\\n neg r1 into r2;\\n output r2 as i64.private;\\n\", Nom(Alt)), (\"function main:\\n neg 9223372036854775807i64 into r0;\\n sub r0 1i64 into r1;\\n neg r1 into r2;\\n output r2 as i64.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i64/negate_zero.out b/tests/expectations/compiler/integers/i64/negate_zero.out deleted file mode 100644 index 6b2f6d8a5d..0000000000 --- a/tests/expectations/compiler/integers/i64/negate_zero.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 76a0fe2199754831329d9b089d2c02f73d7457aaed6548372169318675b85f48 - initial_ast: 05890c9bf5956e3c463d1ded96663778e5cf7d6abb855b9ab35feb9f67e6fd32 - unrolled_ast: 05890c9bf5956e3c463d1ded96663778e5cf7d6abb855b9ab35feb9f67e6fd32 - ssa_ast: 7628dd539c14b2855f2918ff889bfb3e455176fba7d7f6179405320b35021a38 diff --git a/tests/expectations/compiler/integers/i64/no_space_between_literal.out b/tests/expectations/compiler/integers/i64/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i64/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i64/operator_methods.out b/tests/expectations/compiler/integers/i64/operator_methods.out deleted file mode 100644 index 2183e6965b..0000000000 --- a/tests/expectations/compiler/integers/i64/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3e1f97e09d691a7cc07c30632ba77ddb7381dca49117709bea416d388a5f715b - initial_ast: 6b13e53f52dca426745e7c9f360bac64aa60f23a6d16e97c7f756499de383ed2 - unrolled_ast: 6b13e53f52dca426745e7c9f360bac64aa60f23a6d16e97c7f756499de383ed2 - ssa_ast: 22cd38267cc8e6fbd659e2cd51585c12c97e1f85f8683f7b1dcdd5c2c9c83736 diff --git a/tests/expectations/compiler/integers/i64/or.out b/tests/expectations/compiler/integers/i64/or.out deleted file mode 100644 index 103fead4df..0000000000 --- a/tests/expectations/compiler/integers/i64/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 977a18c10a9f8131acb2f7cf2e24680ed4aa2366e3b241d154e0ed9733fb0879 - initial_ast: c9fd204f3e8d1eda6cf6d9a4350327fb3df2b138ba8feacef149fc0ce20b5f8f - unrolled_ast: c9fd204f3e8d1eda6cf6d9a4350327fb3df2b138ba8feacef149fc0ce20b5f8f - ssa_ast: 129c175db437435a2c0b561a835b1f940655803ad9dd2a1081bee3f0d00fcf47 diff --git a/tests/expectations/compiler/integers/i64/pow.out b/tests/expectations/compiler/integers/i64/pow.out deleted file mode 100644 index d0053f8eb2..0000000000 --- a/tests/expectations/compiler/integers/i64/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 70929414acb39f1f1db6f044d346ce321c37924ba467a8c99d3de12f19338783 - initial_ast: 0e0801828222a0881df444f49e0d847e747314d16195ce8e14d73909d6fdbbf9 - unrolled_ast: 0e0801828222a0881df444f49e0d847e747314d16195ce8e14d73909d6fdbbf9 - ssa_ast: b1efd8ce06c047a5339659b5ac61d5edc1651f85f46e9d801e8b481876a72716 diff --git a/tests/expectations/compiler/integers/i64/shl.out b/tests/expectations/compiler/integers/i64/shl.out deleted file mode 100644 index 6fa9b9cbd3..0000000000 --- a/tests/expectations/compiler/integers/i64/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e83445120df1413c9c3695a5c9f4731762d27410f9a9b9f3a11f6b6c68275213 - initial_ast: 2f155196b75f6e9ae6076f182ef2c586b9514de30508968fdbe3d40425d55a9d - unrolled_ast: 2f155196b75f6e9ae6076f182ef2c586b9514de30508968fdbe3d40425d55a9d - ssa_ast: afe12e81c7d2d9a2d424b2782c8e121af0d0a2bda7497d9d2ab0e254ad3f6fd9 diff --git a/tests/expectations/compiler/integers/i64/shr.out b/tests/expectations/compiler/integers/i64/shr.out deleted file mode 100644 index 647568503d..0000000000 --- a/tests/expectations/compiler/integers/i64/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e83445120df1413c9c3695a5c9f4731762d27410f9a9b9f3a11f6b6c68275213 - initial_ast: 9c5bbfcb58f57de7017a1e6d9564af80e67a5be432aefb4952bfd1e4ea136474 - unrolled_ast: 9c5bbfcb58f57de7017a1e6d9564af80e67a5be432aefb4952bfd1e4ea136474 - ssa_ast: 6da9558ea4f6cf725424e4d6644fda5162f5a3996a273023412deea740212cf1 diff --git a/tests/expectations/compiler/integers/i64/sub.out b/tests/expectations/compiler/integers/i64/sub.out deleted file mode 100644 index b5efef61d2..0000000000 --- a/tests/expectations/compiler/integers/i64/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 6162195f65ad7a4cdf1be262925fbeb8556d4bed2da3e942d3debfee22176c5b - initial_ast: 61e36f60ae3861b58205129940e12aa68c48aabe2a67ac591e8e217e9ae055f6 - unrolled_ast: 61e36f60ae3861b58205129940e12aa68c48aabe2a67ac591e8e217e9ae055f6 - ssa_ast: defe920f2ca6c3628b4110675ea341fce364f16d03209f8b503ac5e195d9088c diff --git a/tests/expectations/compiler/integers/i64/ternary.out b/tests/expectations/compiler/integers/i64/ternary.out deleted file mode 100644 index 5eae4d471b..0000000000 --- a/tests/expectations/compiler/integers/i64/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: da9bc26968ea726630b8e221465ff3092c7fcea41d36d0596a72ce1b06f20d47 - - initial_input_ast: 7e4203880b354e2ade82951012957861870a58004b8e770a76d546822eca4aa0 - initial_ast: 0bead37a15b333eaba3e2a69aa8ee5ea83a664c3f2a59830fa63697657601a72 - unrolled_ast: 0bead37a15b333eaba3e2a69aa8ee5ea83a664c3f2a59830fa63697657601a72 - ssa_ast: 5797fc68596fcf54cb40c50f176f4c3bdbc94cb7437590169148694cdf23a773 diff --git a/tests/expectations/compiler/integers/i64/xor.out b/tests/expectations/compiler/integers/i64/xor.out deleted file mode 100644 index eb584f95ae..0000000000 --- a/tests/expectations/compiler/integers/i64/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d83174aa5069461cdb0fab64a55f9463c882833e640f9be78b31c2baaaa8426b - initial_ast: 20295dd2a3258bb916bbd02d70e75c40e78421ffd8a1635231185fb9fbdd550a - unrolled_ast: 20295dd2a3258bb916bbd02d70e75c40e78421ffd8a1635231185fb9fbdd550a - ssa_ast: c465d18e7d3597d63ec52c1c14db846c60770cca056d8c4786ac67087f8bd61b diff --git a/tests/expectations/compiler/integers/i8/add.out b/tests/expectations/compiler/integers/i8/add.out deleted file mode 100644 index eb951c8847..0000000000 --- a/tests/expectations/compiler/integers/i8/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: de2978415d2534817c8294d6784e0fc2a26c92344c60e81a5cc79c695ef9cec7 - initial_ast: 80a9ac550fb1192edc72e7b61a26a9b685274b8c82ebb2c7071e55991211cac1 - unrolled_ast: 80a9ac550fb1192edc72e7b61a26a9b685274b8c82ebb2c7071e55991211cac1 - ssa_ast: bd48669dd158088e845434a794b5482cd373bc0311bedbb814c1e97ee4fc34d3 diff --git a/tests/expectations/compiler/integers/i8/and.out b/tests/expectations/compiler/integers/i8/and.out deleted file mode 100644 index db269fd396..0000000000 --- a/tests/expectations/compiler/integers/i8/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: de2978415d2534817c8294d6784e0fc2a26c92344c60e81a5cc79c695ef9cec7 - initial_ast: 02b856f5f74920e3928a5587675257ed1b973007c25d6a672f1a3955e1d8d175 - unrolled_ast: 02b856f5f74920e3928a5587675257ed1b973007c25d6a672f1a3955e1d8d175 - ssa_ast: 513cfde7f008c1c50ca55240d399917cef0e6b3be041d688e05f1fefc4e4b0bd diff --git a/tests/expectations/compiler/integers/i8/console_assert.out b/tests/expectations/compiler/integers/i8/console_assert.out deleted file mode 100644 index f6651fdf3b..0000000000 --- a/tests/expectations/compiler/integers/i8/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 1f14fbca2375c3be8ff5e09ea3142e9ff660bdbb819e812f929e448345aee459 - initial_ast: 1d9396af458a61aecb504a7990f4f9b5b404fca349d6479bef9350be82f1d12d - unrolled_ast: 1d9396af458a61aecb504a7990f4f9b5b404fca349d6479bef9350be82f1d12d - ssa_ast: 87a18e964f18ebb1fddebd369635a7a5024620d4857b57e24b3e6e7d635c452d diff --git a/tests/expectations/compiler/integers/i8/div.out b/tests/expectations/compiler/integers/i8/div.out deleted file mode 100644 index 5b69025a10..0000000000 --- a/tests/expectations/compiler/integers/i8/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5da63be4ca3051be011a7ac00c13189ffcde7abd35bf5a1ddfb4d204712522ae - initial_ast: 71c2ff233040af5acfa45a14ad69acf0ac5351ac05eb5f9c686d61346b6f3a4b - unrolled_ast: 71c2ff233040af5acfa45a14ad69acf0ac5351ac05eb5f9c686d61346b6f3a4b - ssa_ast: 0e369a334faf8ceb63dbc3544407932f548ba074871e5510aee06789e4a50b44 diff --git a/tests/expectations/compiler/integers/i8/eq.out b/tests/expectations/compiler/integers/i8/eq.out deleted file mode 100644 index 08231291bb..0000000000 --- a/tests/expectations/compiler/integers/i8/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 58f0fade6145131fc2c625a1362dbaff7a844b0d46da7e2ff4d0a11b28d6dc70 - initial_ast: 2b17e238da3e469a3608f5b069a96b1b47ac16e4fd0cfe04781ae67b437741c5 - unrolled_ast: 2b17e238da3e469a3608f5b069a96b1b47ac16e4fd0cfe04781ae67b437741c5 - ssa_ast: e3b7d46a83476de699e55773d8f562b0face07776ab29be46c7e2f6545c4a98d diff --git a/tests/expectations/compiler/integers/i8/ge.out b/tests/expectations/compiler/integers/i8/ge.out deleted file mode 100644 index 7d1b56900a..0000000000 --- a/tests/expectations/compiler/integers/i8/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: aae0acd473ab3c01b1f70d96d924fb2e1c14f010ed349aac757f1bb5132a8bc7 - - initial_input_ast: 1177f8d6ca371a9e3136013ca48bbe87493348a6253146a3bd5b14190665289d - initial_ast: 25b87b89b3b8661bb69f0ffb6f6030b377bd733b1367cf55016c5ec20d2e368b - unrolled_ast: 25b87b89b3b8661bb69f0ffb6f6030b377bd733b1367cf55016c5ec20d2e368b - ssa_ast: f710e8bd970ecd8c3f0d2188f67a0cd34338f5fa29036989996c619fe68f282c diff --git a/tests/expectations/compiler/integers/i8/gt.out b/tests/expectations/compiler/integers/i8/gt.out deleted file mode 100644 index cea0885694..0000000000 --- a/tests/expectations/compiler/integers/i8/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2c44045986c2c00731557568b0a502a7df0136af7c3ce8365f435e93ad7f52cb - - initial_input_ast: 6bde09eb83b067d411d19df2b90a62351306fe72422c1ae9ad966f1a85ab4ed7 - initial_ast: e6620cbeaa4edc4b75dafd5ec684fd424fc1ecdc9f4ae28d10a1f1f810332f3f - unrolled_ast: e6620cbeaa4edc4b75dafd5ec684fd424fc1ecdc9f4ae28d10a1f1f810332f3f - ssa_ast: 6a59296759f32a3322e47a55f8ec9a203d029a4d97c47f94f5e88d116820a702 diff --git a/tests/expectations/compiler/integers/i8/le.out b/tests/expectations/compiler/integers/i8/le.out deleted file mode 100644 index 6bf2df9ee8..0000000000 --- a/tests/expectations/compiler/integers/i8/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: aae0acd473ab3c01b1f70d96d924fb2e1c14f010ed349aac757f1bb5132a8bc7 - - initial_input_ast: 20aefb75d31234d763626c14e1a25ff6aebda3d2e808f74c788ea0caaec17907 - initial_ast: f8d9b34edb0cb517815d2f621583550d90404c36296bc861330165929012660c - unrolled_ast: f8d9b34edb0cb517815d2f621583550d90404c36296bc861330165929012660c - ssa_ast: c839f3a7f4873b9b63d1436b9571f75d8c42267b03403aa0044502631c738b1b diff --git a/tests/expectations/compiler/integers/i8/lt.out b/tests/expectations/compiler/integers/i8/lt.out deleted file mode 100644 index d1b21046b4..0000000000 --- a/tests/expectations/compiler/integers/i8/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a31614dba55c98f510c7f251b50d3d53c0fb9014a7f9a31114b178cdc10032b1 - - initial_input_ast: db620df38d3acfd51b630ed699b270f9e72f55aa4ec36e7efeae02ef3b5cae62 - initial_ast: f3aa185ea32d28ec7c3fc3df46846ea1be3a01cd51b8126c7cc4aaa8cbdb2aba - unrolled_ast: f3aa185ea32d28ec7c3fc3df46846ea1be3a01cd51b8126c7cc4aaa8cbdb2aba - ssa_ast: acbdf826f368213bfbec0cf20179024bd124923cf60414a7d71b4cb28b6ac903 diff --git a/tests/expectations/compiler/integers/i8/max.out b/tests/expectations/compiler/integers/i8/max.out deleted file mode 100644 index 58739f023f..0000000000 --- a/tests/expectations/compiler/integers/i8/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3c4708eabf3dc6df721eee6679ec79b8dfce65303bcea6e3d1acb9696398256f - initial_ast: 6fb6774bb0e5622bbe83debb577933c255d9fdd622e06ba557b93e3152b89b45 - unrolled_ast: 6fb6774bb0e5622bbe83debb577933c255d9fdd622e06ba557b93e3152b89b45 - ssa_ast: 50f1bd342810794a92262e67a2476d07debb852c48c2adb3f6d9d80801b03c43 diff --git a/tests/expectations/compiler/integers/i8/max_fail.out b/tests/expectations/compiler/integers/i8/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i8/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i8/min.out b/tests/expectations/compiler/integers/i8/min.out deleted file mode 100644 index 6bea01a859..0000000000 --- a/tests/expectations/compiler/integers/i8/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 90a991ea43f5457a33f905e55e20ed1ea3977f1419b40235335fd95677c842e0 - initial_ast: f4a53ecb9e05f4c3a9861d3daf6679de4ed291ccb3423b574287a4beb87fb90d - unrolled_ast: f4a53ecb9e05f4c3a9861d3daf6679de4ed291ccb3423b574287a4beb87fb90d - ssa_ast: 37ec6f175a95f5d95e72e6a43c5b0d23196b64a6f776f3aab5e43bf2b08476c2 diff --git a/tests/expectations/compiler/integers/i8/min_fail.out b/tests/expectations/compiler/integers/i8/min_fail.out deleted file mode 100644 index 775cfdd0d1..0000000000 --- a/tests/expectations/compiler/integers/i8/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 127i8 into r0;\\n sub r0 2i8 into r1;\\n output r1 as i8.private;\\n\", Nom(Tag)), (\"\\n neg 127i8 into r0;\\n sub r0 2i8 into r1;\\n output r1 as i8.private;\\n\", Nom(Many1)), (\"function main:\\n neg 127i8 into r0;\\n sub r0 2i8 into r1;\\n output r1 as i8.private;\\n\", Nom(Alt)), (\"function main:\\n neg 127i8 into r0;\\n sub r0 2i8 into r1;\\n output r1 as i8.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i8/mul.out b/tests/expectations/compiler/integers/i8/mul.out deleted file mode 100644 index c5d80aa4e3..0000000000 --- a/tests/expectations/compiler/integers/i8/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 1aa7756768ee3ba1654b861064a5f24e9c1843d89b6e01e89949e2f1f3662939 - initial_ast: 84329c2eb85ba52edb05450605892fc0b24bd7a9bd316f275901073176a67f14 - unrolled_ast: 84329c2eb85ba52edb05450605892fc0b24bd7a9bd316f275901073176a67f14 - ssa_ast: 0c2de2b19419a6642d8a709693a5eed542083ff2b2903c4fdad3fb794f0ee28f diff --git a/tests/expectations/compiler/integers/i8/ne.out b/tests/expectations/compiler/integers/i8/ne.out deleted file mode 100644 index 646512cde9..0000000000 --- a/tests/expectations/compiler/integers/i8/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 16b842bbbf6b30fc29a691eba15942be5816fd1f0b26f92da2b273dd4616a06f - - initial_input_ast: 47331aa33fe027e08fba70eea5c1e84fa3d66c3120c0a172704d4e57c642177a - initial_ast: c62b896c62c5f86d7a2ece7676da569bb1c15773219035519f10eb4cb4468282 - unrolled_ast: c62b896c62c5f86d7a2ece7676da569bb1c15773219035519f10eb4cb4468282 - ssa_ast: 59747e03efeab4c9746f54f7e851043ef7e767d2276355218acc020f92bce9ec diff --git a/tests/expectations/compiler/integers/i8/negate.out b/tests/expectations/compiler/integers/i8/negate.out deleted file mode 100644 index 8f1935ec65..0000000000 --- a/tests/expectations/compiler/integers/i8/negate.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 42aaee113e0f7adf51e24db9e645896a4805881152551e5f771fc9f9d1fa81f9 - - initial_input_ast: 1f0143f9a55e15bb307813fcb4fb87e1ae7965687b40f34c5f201a38d831082c - initial_ast: c72e508b603092063e0a020b9478f92e702e4bea4ad0234f73f33f9bcb55d592 - unrolled_ast: c72e508b603092063e0a020b9478f92e702e4bea4ad0234f73f33f9bcb55d592 - ssa_ast: b7cf3a7743104335993b537baeac5ed6b73f393d2211e1a100347a7339ae1956 diff --git a/tests/expectations/compiler/integers/i8/negate_min_fail.out b/tests/expectations/compiler/integers/i8/negate_min_fail.out deleted file mode 100644 index 833e0c0445..0000000000 --- a/tests/expectations/compiler/integers/i8/negate_min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 127i8 into r0;\\n sub r0 1i8 into r1;\\n neg r1 into r2;\\n output r2 as i8.private;\\n\", Nom(Tag)), (\"\\n neg 127i8 into r0;\\n sub r0 1i8 into r1;\\n neg r1 into r2;\\n output r2 as i8.private;\\n\", Nom(Many1)), (\"function main:\\n neg 127i8 into r0;\\n sub r0 1i8 into r1;\\n neg r1 into r2;\\n output r2 as i8.private;\\n\", Nom(Alt)), (\"function main:\\n neg 127i8 into r0;\\n sub r0 1i8 into r1;\\n neg r1 into r2;\\n output r2 as i8.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i8/negate_zero.out b/tests/expectations/compiler/integers/i8/negate_zero.out deleted file mode 100644 index 7af410cdde..0000000000 --- a/tests/expectations/compiler/integers/i8/negate_zero.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2f8bdfd57bd177ef6ba420992c9b8246f27a332126ed41021cf718db1f89fce2 - initial_ast: 31a361a2a2028517f6898e7427c510ff3262b99af068ee61f674d41a9f0508ba - unrolled_ast: 31a361a2a2028517f6898e7427c510ff3262b99af068ee61f674d41a9f0508ba - ssa_ast: 17052d7968e26823f8e7177e9b876acafbb3c38583db253a8cb7236431308e96 diff --git a/tests/expectations/compiler/integers/i8/no_space_between_literal.out b/tests/expectations/compiler/integers/i8/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/i8/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i8/operator_methods.out b/tests/expectations/compiler/integers/i8/operator_methods.out deleted file mode 100644 index 573a732f7e..0000000000 --- a/tests/expectations/compiler/integers/i8/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: fb24ac144cdf7a6e0e308c106be309c354ea413d2690b815b72b9bae3ce1a169 - initial_ast: 368311591f23ba5a2593095f04744abee8659b072d83f95ca558ce885f239f95 - unrolled_ast: 368311591f23ba5a2593095f04744abee8659b072d83f95ca558ce885f239f95 - ssa_ast: 390030fca363de473680584146084d335004d491349f27c29624854ca9a2da4c diff --git a/tests/expectations/compiler/integers/i8/or.out b/tests/expectations/compiler/integers/i8/or.out deleted file mode 100644 index ef6b1787f8..0000000000 --- a/tests/expectations/compiler/integers/i8/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: de2978415d2534817c8294d6784e0fc2a26c92344c60e81a5cc79c695ef9cec7 - initial_ast: 1f83c995ad066a3ca85db86889435fc807120d031cd032a82660090d2243d5f5 - unrolled_ast: 1f83c995ad066a3ca85db86889435fc807120d031cd032a82660090d2243d5f5 - ssa_ast: 7fb28ead5bcb4a7b226254381758cb8f1ea7b82ca47cd4ecb751b7ba242f8471 diff --git a/tests/expectations/compiler/integers/i8/pow.out b/tests/expectations/compiler/integers/i8/pow.out deleted file mode 100644 index cfaef825a7..0000000000 --- a/tests/expectations/compiler/integers/i8/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5403e15802cf82bcb80acfc26596a71aa597d1b03cdf21f55c94c5d5a5dd05ce - initial_ast: 8dec69affaee71632a03de286692e4dabd23bf9d88bc4dc0ef17b4052b285147 - unrolled_ast: 8dec69affaee71632a03de286692e4dabd23bf9d88bc4dc0ef17b4052b285147 - ssa_ast: 33115a0bb2fca2cfbea13211d88fbea33ad447e09886f4583391fe957c55768c diff --git a/tests/expectations/compiler/integers/i8/shl.out b/tests/expectations/compiler/integers/i8/shl.out deleted file mode 100644 index 4ad1df9de4..0000000000 --- a/tests/expectations/compiler/integers/i8/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5213a0abbbf502a8d84d4ce6ae6418b5d3ff1c6a4de6cf53a6f001b1a7c4f9b2 - initial_ast: 5fe6132197fe808d6dca1fa027b365db2e139ce6306d39d55d93b55ef24228f9 - unrolled_ast: 5fe6132197fe808d6dca1fa027b365db2e139ce6306d39d55d93b55ef24228f9 - ssa_ast: 9bd9737f33da089c74e61cede6993055efd41a8b0e12c1eb743ca030e85d9115 diff --git a/tests/expectations/compiler/integers/i8/shr.out b/tests/expectations/compiler/integers/i8/shr.out deleted file mode 100644 index 78cdf43efa..0000000000 --- a/tests/expectations/compiler/integers/i8/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5213a0abbbf502a8d84d4ce6ae6418b5d3ff1c6a4de6cf53a6f001b1a7c4f9b2 - initial_ast: 6bd99d27e5b8dc50b3dad77d390cfb6af4f4b78c4f2f94bd095eefaeda594a73 - unrolled_ast: 6bd99d27e5b8dc50b3dad77d390cfb6af4f4b78c4f2f94bd095eefaeda594a73 - ssa_ast: 551e35865e28fabf6bffa67ba5c3838519a7205f871f785b042e2ecc13ff372c diff --git a/tests/expectations/compiler/integers/i8/sub.out b/tests/expectations/compiler/integers/i8/sub.out deleted file mode 100644 index 5c7d892803..0000000000 --- a/tests/expectations/compiler/integers/i8/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 573a280e74e0a7a4bfd582c72c06fcd90fb2f8939c9c7f4468d6a0a9acc7f7ab - initial_ast: 5cac538ad248729a7c889ed8343cbfd59ddf39c5205876af8c27a66a7ee1cd23 - unrolled_ast: 5cac538ad248729a7c889ed8343cbfd59ddf39c5205876af8c27a66a7ee1cd23 - ssa_ast: 4b2e70c774872a38aabdfa833e08726b38bb03f5cd38ad585ee5250b49ef9988 diff --git a/tests/expectations/compiler/integers/i8/ternary.out b/tests/expectations/compiler/integers/i8/ternary.out deleted file mode 100644 index a6709224ac..0000000000 --- a/tests/expectations/compiler/integers/i8/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: bd77ed2adb6a6503c0c23a971135d4dc9379a4c24cc32fb450b39217f4c78265 - - initial_input_ast: dfca4fead6cd26c21a13438da1cce131acba56ad418f8a7ee4d9376d848680bd - initial_ast: bf5651b4d5dae12b1ef57d8973976bdf9f36be84734be6b73abd31e0bfdb88e8 - unrolled_ast: bf5651b4d5dae12b1ef57d8973976bdf9f36be84734be6b73abd31e0bfdb88e8 - ssa_ast: 6f8a88bb902d34a88fb3a1386889c037cfed523f5ac34586996447c349d1b09c diff --git a/tests/expectations/compiler/integers/i8/xor.out b/tests/expectations/compiler/integers/i8/xor.out deleted file mode 100644 index e63f7fa935..0000000000 --- a/tests/expectations/compiler/integers/i8/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 56f2d6c7538d2556696faabc23206c2ab2ce935cefcf9211542ba139b70b98f7 - initial_ast: 2cf0f045f81840d6a04fa7c5c1e4014d7c5d33ae3e251bef13ad605380e1d0a6 - unrolled_ast: 2cf0f045f81840d6a04fa7c5c1e4014d7c5d33ae3e251bef13ad605380e1d0a6 - ssa_ast: f1e8ac07d31602ed8dd5dbe2ca7f664bb1c6f01dc2e6056cfaffb7b995f310df diff --git a/tests/expectations/compiler/integers/u128/add.out b/tests/expectations/compiler/integers/u128/add.out deleted file mode 100644 index e487f031ef..0000000000 --- a/tests/expectations/compiler/integers/u128/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e7ed1e3c5fb2bea093ef50a0c37c1548a1800743f5d2869662c5182b2a866574 - initial_ast: cd255611a667887661f5b99f254852cbc0fd604278296b74b6afb5b19cf5be5a - unrolled_ast: cd255611a667887661f5b99f254852cbc0fd604278296b74b6afb5b19cf5be5a - ssa_ast: 4870d05c8074404fecefce77719032943c9ade285c1ff2c3bc8d7f43124d7d77 diff --git a/tests/expectations/compiler/integers/u128/and.out b/tests/expectations/compiler/integers/u128/and.out deleted file mode 100644 index 3d148e6cee..0000000000 --- a/tests/expectations/compiler/integers/u128/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e7ed1e3c5fb2bea093ef50a0c37c1548a1800743f5d2869662c5182b2a866574 - initial_ast: bef5a47be25bb2488df570334b6d065e4b4f45d30390ec9b6aa873ecd6c922ec - unrolled_ast: bef5a47be25bb2488df570334b6d065e4b4f45d30390ec9b6aa873ecd6c922ec - ssa_ast: b147a3a622ae4b50a276587f0c0787c15467df7e836068d8b83b7c66ca8d6c72 diff --git a/tests/expectations/compiler/integers/u128/console_assert.out b/tests/expectations/compiler/integers/u128/console_assert.out deleted file mode 100644 index a431e3fcb3..0000000000 --- a/tests/expectations/compiler/integers/u128/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 04fd22fe1ef4e6c002f7090ccf35faecff80a2535a688a6fda6d1b0f63d2c19e - initial_ast: cd572fa73ad17923d13099ac77c54b732b260452bc72c2a609a73111a9edb00e - unrolled_ast: cd572fa73ad17923d13099ac77c54b732b260452bc72c2a609a73111a9edb00e - ssa_ast: 422da77763c0fa6d062a63efa018282226b1e3ed5561bf7acd25e498a4cb2e0c diff --git a/tests/expectations/compiler/integers/u128/div.out b/tests/expectations/compiler/integers/u128/div.out deleted file mode 100644 index bd2c4019b2..0000000000 --- a/tests/expectations/compiler/integers/u128/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5db93e51b45bd2c1865c73929c64b3d86b684c92e48aa32f851015d0c02f9887 - initial_ast: a8330c8dd15a36a7d515977dacdd57ad7f37d992f19ccf449f6a3c79f4740f68 - unrolled_ast: a8330c8dd15a36a7d515977dacdd57ad7f37d992f19ccf449f6a3c79f4740f68 - ssa_ast: 887a4a5451f5ab8589759185c8a40e437f1ab577f43a66dd5ed4c7dd0d262715 diff --git a/tests/expectations/compiler/integers/u128/eq.out b/tests/expectations/compiler/integers/u128/eq.out deleted file mode 100644 index af1f916c09..0000000000 --- a/tests/expectations/compiler/integers/u128/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 7e7dafe8ef71c28d032582570b850f6386768ec57e5e3ecd2707bfc44f42e5d7 - initial_ast: 2011f14ebb74498706fea33472a56daacf2b017cc2f102f260f33e7fe1c335c0 - unrolled_ast: 2011f14ebb74498706fea33472a56daacf2b017cc2f102f260f33e7fe1c335c0 - ssa_ast: cfa15d8e5379458839ed73668e4b79637249a55ee124951f655a97d403bf2bc2 diff --git a/tests/expectations/compiler/integers/u128/ge.out b/tests/expectations/compiler/integers/u128/ge.out deleted file mode 100644 index c000a87f9e..0000000000 --- a/tests/expectations/compiler/integers/u128/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 192829d709e9a915c6cc0cdd27fb24bcae5222ad571a8939f6518f27b895bef3 - - initial_input_ast: 8766097c50171ea9912e2ee31fc9124faafa62da00407a4b9ab679a42e45233a - initial_ast: c609706ebfde16ba94eab5c9fac321ffad7392f4734a431b8e627ce6955fd090 - unrolled_ast: c609706ebfde16ba94eab5c9fac321ffad7392f4734a431b8e627ce6955fd090 - ssa_ast: 589b24e1643d28d00e88887af90b901e9e520472bab60bcd97c76df7d5079c03 diff --git a/tests/expectations/compiler/integers/u128/gt.out b/tests/expectations/compiler/integers/u128/gt.out deleted file mode 100644 index 1f04305238..0000000000 --- a/tests/expectations/compiler/integers/u128/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 783036ae02b0759121405a92762d8924bd3712a5b465f29e000c2a834d3e94a5 - - initial_input_ast: 3a5987d6bf50d0bd048b269040b9da36954c6e4e622c846d4d3447ae0aa93b7a - initial_ast: 22d17b31afab06ad4172b41b182d647bbf88939b84cb220a19e3cc5571da0ae0 - unrolled_ast: 22d17b31afab06ad4172b41b182d647bbf88939b84cb220a19e3cc5571da0ae0 - ssa_ast: ba6a9d7e2958397aeebd8e46faaee034a640e994186c188aa272bceec0ae0d99 diff --git a/tests/expectations/compiler/integers/u128/le.out b/tests/expectations/compiler/integers/u128/le.out deleted file mode 100644 index 44d1a04699..0000000000 --- a/tests/expectations/compiler/integers/u128/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 192829d709e9a915c6cc0cdd27fb24bcae5222ad571a8939f6518f27b895bef3 - - initial_input_ast: 46dd342e0f8b31909b76fb09d62bd4660220b425dea1f18f60d8e49a82055f29 - initial_ast: ccd9469d94398bc8f3a2f09a16ccc37ed30da7523edadb0a7ee6ad796f721f08 - unrolled_ast: ccd9469d94398bc8f3a2f09a16ccc37ed30da7523edadb0a7ee6ad796f721f08 - ssa_ast: 857e9acd6aea29ac4d3bf1f6e707af74b0177cc931001946608192d4dcc0311f diff --git a/tests/expectations/compiler/integers/u128/lt.out b/tests/expectations/compiler/integers/u128/lt.out deleted file mode 100644 index 3729f02e16..0000000000 --- a/tests/expectations/compiler/integers/u128/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 445ab3909ea34095878c451cabb6ec147e6ecf18d080df0e2a05e03c16df076e - - initial_input_ast: 17389f0533f443fc916e0fcd04cefc76377450010a2c805d4bdafcf9906ae881 - initial_ast: 116ad158cc967de309d23c131d3c06cb4017fe702d1f7cf9d7b667dd429416c3 - unrolled_ast: 116ad158cc967de309d23c131d3c06cb4017fe702d1f7cf9d7b667dd429416c3 - ssa_ast: bb69ab7d4534410b610fdfbd4e824cc3e2b3ea45b3b57a19ab3602dc9594b16b diff --git a/tests/expectations/compiler/integers/u128/max.out b/tests/expectations/compiler/integers/u128/max.out deleted file mode 100644 index 6aa294b47c..0000000000 --- a/tests/expectations/compiler/integers/u128/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a2ab6a89c5952a113fbecdeb630917b4699c38dcda5971528ab35cdd5e92c216 - initial_ast: a09cb20c8555d08c2aa9270a6b76bc680671125405c77f291921817854eb7bca - unrolled_ast: a09cb20c8555d08c2aa9270a6b76bc680671125405c77f291921817854eb7bca - ssa_ast: 1466dcbcfe0dd7a42e24d0f9af5a0df6d594cc4a09416378c4b28b6f87fc2dac diff --git a/tests/expectations/compiler/integers/u128/max_fail.out b/tests/expectations/compiler/integers/u128/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u128/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u128/min.out b/tests/expectations/compiler/integers/u128/min.out deleted file mode 100644 index df8b95c75f..0000000000 --- a/tests/expectations/compiler/integers/u128/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 886b77241861e32ee76414a8f86e04b86943325113b6b28e9d6805ee61c936ef - initial_ast: 48926b48e382e7869e065339fb3823f6bb2fccc11cc0713fd537bef1660d832d - unrolled_ast: 48926b48e382e7869e065339fb3823f6bb2fccc11cc0713fd537bef1660d832d - ssa_ast: d3d77e3a42549fd97c301ded35c2b48740df341804f3bf7ec0ecd5c94d4f80c6 diff --git a/tests/expectations/compiler/integers/u128/min_fail.out b/tests/expectations/compiler/integers/u128/min_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u128/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u128/mul.out b/tests/expectations/compiler/integers/u128/mul.out deleted file mode 100644 index 212cabaa87..0000000000 --- a/tests/expectations/compiler/integers/u128/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: db3eedda9d86f5720afddf87a7cb319fbe1594d75193eadd2720a28380850814 - initial_ast: 4d3663a3c68f384af87b9da68ed3194718a2e1431ca876a01577b58909f922af - unrolled_ast: 4d3663a3c68f384af87b9da68ed3194718a2e1431ca876a01577b58909f922af - ssa_ast: ac274a9278af83646b56db0a0b69e7f119672692824c9bcca42acff0fa63aa3c diff --git a/tests/expectations/compiler/integers/u128/ne.out b/tests/expectations/compiler/integers/u128/ne.out deleted file mode 100644 index 2432274e16..0000000000 --- a/tests/expectations/compiler/integers/u128/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 95022fb8616d174af5552e764af96d14ebca2378e57a26caf56155199cc12514 - - initial_input_ast: 6e27f1353141bbbd4f15e0cf9b2647f72eea0ebd5bc9dc75bff17f8e8d7ece01 - initial_ast: 20d177f88a225fd9a8e0bea6299a1fdc9be8f7c0364a39dbb5a84563e126d7ce - unrolled_ast: 20d177f88a225fd9a8e0bea6299a1fdc9be8f7c0364a39dbb5a84563e126d7ce - ssa_ast: 78b4e6f708bfa1c292f9e485c2ccd3b22ecbae5f352a941e593d8401058da5c6 diff --git a/tests/expectations/compiler/integers/u128/no_space_between_literal.out b/tests/expectations/compiler/integers/u128/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u128/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u128/operator_methods.out b/tests/expectations/compiler/integers/u128/operator_methods.out deleted file mode 100644 index 87d777b221..0000000000 --- a/tests/expectations/compiler/integers/u128/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 323e17762e30677ac3100cad9a455a99d3d57115531e2ca04caa8cf1311266ac - initial_ast: 04dd2fc152a79580155495dbdbae6f9685460550425e5d595914a04b68b21460 - unrolled_ast: 04dd2fc152a79580155495dbdbae6f9685460550425e5d595914a04b68b21460 - ssa_ast: 9a2ef8cc957121610bb160fdc23a647fc78638c87b74b88753ae334cc19499df diff --git a/tests/expectations/compiler/integers/u128/or.out b/tests/expectations/compiler/integers/u128/or.out deleted file mode 100644 index cdc178f7ad..0000000000 --- a/tests/expectations/compiler/integers/u128/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e7ed1e3c5fb2bea093ef50a0c37c1548a1800743f5d2869662c5182b2a866574 - initial_ast: 0a1e0f82423c906073201331fee4c02a6c02d0115ce09993d1c66887087118ad - unrolled_ast: 0a1e0f82423c906073201331fee4c02a6c02d0115ce09993d1c66887087118ad - ssa_ast: 88915e3c9573e8d2318e4398d569375a9d727877b7387abaec3a718c33ad4a82 diff --git a/tests/expectations/compiler/integers/u128/pow.out b/tests/expectations/compiler/integers/u128/pow.out deleted file mode 100644 index 2e9eec722f..0000000000 --- a/tests/expectations/compiler/integers/u128/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 3d864c5dd3dba86277a7e64db597913c4866e2c843e1e1c817530e6fd0b64b8e - unrolled_ast: 3d864c5dd3dba86277a7e64db597913c4866e2c843e1e1c817530e6fd0b64b8e - ssa_ast: d7ed9fc0168b80ab70b5e9bc054ee5fb273d17c4627703b3cc84907bd97b29b4 diff --git a/tests/expectations/compiler/integers/u128/shl.out b/tests/expectations/compiler/integers/u128/shl.out deleted file mode 100644 index cd862565ed..0000000000 --- a/tests/expectations/compiler/integers/u128/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9363cea9423b4153976492ca4328a2e5b962c5745cd167e7896421f173a72b47 - initial_ast: edeb671606b15c620c6369ff4f63deb80185119dab43d5fcf1649d3347ccb4b3 - unrolled_ast: edeb671606b15c620c6369ff4f63deb80185119dab43d5fcf1649d3347ccb4b3 - ssa_ast: 22c95020977e7e846b1a174aa690d843a466725f194eb88e2739d8d164e5a56b diff --git a/tests/expectations/compiler/integers/u128/shr.out b/tests/expectations/compiler/integers/u128/shr.out deleted file mode 100644 index 054fa5182c..0000000000 --- a/tests/expectations/compiler/integers/u128/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9363cea9423b4153976492ca4328a2e5b962c5745cd167e7896421f173a72b47 - initial_ast: 0d90fc3ecd139b4ad2f0c58a70fda2358607601d80ae5f19d7ea23606340936b - unrolled_ast: 0d90fc3ecd139b4ad2f0c58a70fda2358607601d80ae5f19d7ea23606340936b - ssa_ast: 1c38a8f6cffaa856dd420e5a684fcf2d765c7d00510b5fbcad3f82cc6dfb3e27 diff --git a/tests/expectations/compiler/integers/u128/sub.out b/tests/expectations/compiler/integers/u128/sub.out deleted file mode 100644 index d15acbdb35..0000000000 --- a/tests/expectations/compiler/integers/u128/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 6e6826bbad13635cdb03f093495dbbb73bac96e8291141ea42a031b4aadf31c5 - initial_ast: 381511efc1cb0f70f2dbd6f822b437a1172e8b5fdd6641e5383b1864c1b6c6f5 - unrolled_ast: 381511efc1cb0f70f2dbd6f822b437a1172e8b5fdd6641e5383b1864c1b6c6f5 - ssa_ast: c7b7db3ed960a54652ff308d9b30b3d33de641993315e54d2fd615b6dc582ed5 diff --git a/tests/expectations/compiler/integers/u128/ternary.out b/tests/expectations/compiler/integers/u128/ternary.out deleted file mode 100644 index 568d4ba502..0000000000 --- a/tests/expectations/compiler/integers/u128/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 70be7cdc602aa8c9dcfbc7a51eb48e5e76b704429a23b0cfd43ca073d3445412 - - initial_input_ast: 03111b898b34afc7653f3898e3f39c7af3f783a91876eb49c04b9e4b2261f0c6 - initial_ast: 54161644b7c95ff2d294c217ae9314efc1e2412793b5df19ca039093e425f8d5 - unrolled_ast: 54161644b7c95ff2d294c217ae9314efc1e2412793b5df19ca039093e425f8d5 - ssa_ast: ddb0307728b841d82a3c6c49316342e9eb6832b63a1e86d036373532fef3addc diff --git a/tests/expectations/compiler/integers/u128/xor.out b/tests/expectations/compiler/integers/u128/xor.out deleted file mode 100644 index 2b8e02948e..0000000000 --- a/tests/expectations/compiler/integers/u128/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 8ea11ca502a04fc7590d741016f40fb703bebb746ce5aadb987a76f3a773364f - initial_ast: 990256fb3c95e13095ee5dc44a64cc922ce41c81bb4316fec840c768bcffae57 - unrolled_ast: 990256fb3c95e13095ee5dc44a64cc922ce41c81bb4316fec840c768bcffae57 - ssa_ast: c04edd36a76cad9690a2861472b23b2b7378dd40fa04f33000441686d6c53b5a diff --git a/tests/expectations/compiler/integers/u16/add.out b/tests/expectations/compiler/integers/u16/add.out deleted file mode 100644 index 8680517010..0000000000 --- a/tests/expectations/compiler/integers/u16/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e42870a9c4915d12757e7ebe32492b7c4dd6f47134c6f2bd635d6e4be239c379 - initial_ast: bf4c95f536ccf875c56803f20cd7e7dac93744068213fc96c575761ff1eab4ff - unrolled_ast: bf4c95f536ccf875c56803f20cd7e7dac93744068213fc96c575761ff1eab4ff - ssa_ast: 2f30d5bfc1f5a425edcd177f633f097b99149212ac78a5fa1df3c92b495fb917 diff --git a/tests/expectations/compiler/integers/u16/and.out b/tests/expectations/compiler/integers/u16/and.out deleted file mode 100644 index 36360bdddd..0000000000 --- a/tests/expectations/compiler/integers/u16/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e42870a9c4915d12757e7ebe32492b7c4dd6f47134c6f2bd635d6e4be239c379 - initial_ast: c5e47884d4380e59cf2ba0bf0a3c45fa3ee225aba18dafae1585723e2f065cae - unrolled_ast: c5e47884d4380e59cf2ba0bf0a3c45fa3ee225aba18dafae1585723e2f065cae - ssa_ast: 1b806439f0bd11e3aa81ec1b3e9bad6eb70a50f752d866bd7350ba8e918c3d68 diff --git a/tests/expectations/compiler/integers/u16/console_assert.out b/tests/expectations/compiler/integers/u16/console_assert.out deleted file mode 100644 index d7e467e5d3..0000000000 --- a/tests/expectations/compiler/integers/u16/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a5084c2432ba3ce882ffd38b4db3b7805403e203266908de1d6b64b2533c2b71 - initial_ast: e5df6e8d0a445ae477a1d095db6c5510f44d8719279d6d9ed0dde002c220ae4b - unrolled_ast: e5df6e8d0a445ae477a1d095db6c5510f44d8719279d6d9ed0dde002c220ae4b - ssa_ast: 582c8f4d6b9e42062c8ef42c39c708e04b9a25fb02c88f460210d7286e175b22 diff --git a/tests/expectations/compiler/integers/u16/div.out b/tests/expectations/compiler/integers/u16/div.out deleted file mode 100644 index a6605eb2c4..0000000000 --- a/tests/expectations/compiler/integers/u16/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: bb055123854595a4f93cef4f89dfc0dd322e79a50ed9cf95ea4992e050a7e864 - initial_ast: 4289dcf746dd0bb3dedf8f6bd9a3a16e6fc766bd677856a7c0c3fe240b9cf9f9 - unrolled_ast: 4289dcf746dd0bb3dedf8f6bd9a3a16e6fc766bd677856a7c0c3fe240b9cf9f9 - ssa_ast: f907bcce5e9cbb24ed1bd360e21e1f0f516b6d123ac7a232f5552b0a7ff506da diff --git a/tests/expectations/compiler/integers/u16/eq.out b/tests/expectations/compiler/integers/u16/eq.out deleted file mode 100644 index 3758857842..0000000000 --- a/tests/expectations/compiler/integers/u16/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9c7090d59baa24c677f2a5b072a6487ba14703c6ff893e8e342b84537a0e4e59 - initial_ast: 848562df01ecf23d384b9746ebac0f8ace80fd5d3d58c561cc1fa898e8e00995 - unrolled_ast: 848562df01ecf23d384b9746ebac0f8ace80fd5d3d58c561cc1fa898e8e00995 - ssa_ast: a0621136f84d60c72eed132e3d44ab690d4d1969c0227c557c515e1f85fa5467 diff --git a/tests/expectations/compiler/integers/u16/ge.out b/tests/expectations/compiler/integers/u16/ge.out deleted file mode 100644 index c36b63018d..0000000000 --- a/tests/expectations/compiler/integers/u16/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 25c18e61267377f9d45aa8097941fd9920d277611e4e6a26e44bec19044ad90e - - initial_input_ast: 40c0cb654f2a935962647b51d536868c2a9caab366458fd55e9fe21cde620685 - initial_ast: c166eacc41ac036b143fcaf31432af394aaece73eb05a8e65e98a9b662d6caef - unrolled_ast: c166eacc41ac036b143fcaf31432af394aaece73eb05a8e65e98a9b662d6caef - ssa_ast: 2b3079fdd45821c2a3e8b9f190924f3881e30a8f4eda2c458831847488050353 diff --git a/tests/expectations/compiler/integers/u16/gt.out b/tests/expectations/compiler/integers/u16/gt.out deleted file mode 100644 index 41677b3256..0000000000 --- a/tests/expectations/compiler/integers/u16/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b4fbf481b32bd84d6fc11397bab229124d8d261d677e5086e27ebec223a1f882 - - initial_input_ast: bd45fbb21f0dd4ebc486086d1e8914f5a76f2ee9ffd16a47cc0929855ba6eff1 - initial_ast: 3d4ed274642b343749864eccc76103134449075ef18ead2c9e6f0fd69401e864 - unrolled_ast: 3d4ed274642b343749864eccc76103134449075ef18ead2c9e6f0fd69401e864 - ssa_ast: 3457cf8b1678ae974961ef578a53af8b74d767c081d894769ea686a37ec93447 diff --git a/tests/expectations/compiler/integers/u16/le.out b/tests/expectations/compiler/integers/u16/le.out deleted file mode 100644 index 3aa7c76515..0000000000 --- a/tests/expectations/compiler/integers/u16/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 25c18e61267377f9d45aa8097941fd9920d277611e4e6a26e44bec19044ad90e - - initial_input_ast: b103a43941f8ec2e29ba5eaa3b8f5f4dc8647417aa0d1656b83ba683c6ca1ce7 - initial_ast: 8d3ffa47b2cdf307fbd2673a3c340a49c1e95be9b8e6ef13391b0b79382610ff - unrolled_ast: 8d3ffa47b2cdf307fbd2673a3c340a49c1e95be9b8e6ef13391b0b79382610ff - ssa_ast: 55b7a769877eea231d51404bc609fbc7b7a1928fd1ba535c83734596ce280e6a diff --git a/tests/expectations/compiler/integers/u16/lt.out b/tests/expectations/compiler/integers/u16/lt.out deleted file mode 100644 index 3c32b4c66d..0000000000 --- a/tests/expectations/compiler/integers/u16/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: bc724c71e20a5d3aad5ed2665209557e8feada799c27830d72a06e0d064e69af - - initial_input_ast: ce67c57955f79db1f00cbe7b976195c609bb6f6f93a4f49c51c88fa349e65554 - initial_ast: 1ae39ead50844069aa07fb4152e31b52ac140a3c8d92793deb14570af611823b - unrolled_ast: 1ae39ead50844069aa07fb4152e31b52ac140a3c8d92793deb14570af611823b - ssa_ast: 85b3192381368a07deedef3512ab1f37f546fdb71477aff0ff590a19c8441554 diff --git a/tests/expectations/compiler/integers/u16/max.out b/tests/expectations/compiler/integers/u16/max.out deleted file mode 100644 index eb140025d5..0000000000 --- a/tests/expectations/compiler/integers/u16/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 940d740ba40284a1d3c3cf8737facd1e98968224dd93999dbcb336cb3f4ce571 - initial_ast: 0d6e907cb7cdbd260e7237560385622f7b1340c1b272deedf2138c32edd6e58e - unrolled_ast: 0d6e907cb7cdbd260e7237560385622f7b1340c1b272deedf2138c32edd6e58e - ssa_ast: ca7131e9dd8facea5ff5ab46427d5a5fbdb29f545995fea3f708c869e1423219 diff --git a/tests/expectations/compiler/integers/u16/max_fail.out b/tests/expectations/compiler/integers/u16/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u16/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u16/min.out b/tests/expectations/compiler/integers/u16/min.out deleted file mode 100644 index f8b2ba7a2f..0000000000 --- a/tests/expectations/compiler/integers/u16/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c7cfa681865a1c0623cfd356162d0c6750f3e06fb72126585eace0aeb21bae77 - initial_ast: 2309d5b8b3a71f552625331d626090d15c936077251e1686ed92adf25f53f095 - unrolled_ast: 2309d5b8b3a71f552625331d626090d15c936077251e1686ed92adf25f53f095 - ssa_ast: 0925420dd82bdba6a36384b5f8cd833364734ae35b7afd63d9645b8d72a3e0e7 diff --git a/tests/expectations/compiler/integers/u16/min_fail.out b/tests/expectations/compiler/integers/u16/min_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u16/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u16/mul.out b/tests/expectations/compiler/integers/u16/mul.out deleted file mode 100644 index aa14af17b3..0000000000 --- a/tests/expectations/compiler/integers/u16/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 324aa2cb3c57c9e956792d50328347a3da38de524f5d6ce7ae0a66f646efcf85 - initial_ast: 65e17485ed0c22f2f23ca9bb04eb1e3e921068f46902cfe1cd1b24fbcb65c8a9 - unrolled_ast: 65e17485ed0c22f2f23ca9bb04eb1e3e921068f46902cfe1cd1b24fbcb65c8a9 - ssa_ast: 629ea6fce054a5e8086e32e29d84a3423186ef880faea083be15b9ca8cab858b diff --git a/tests/expectations/compiler/integers/u16/ne.out b/tests/expectations/compiler/integers/u16/ne.out deleted file mode 100644 index 7f469cf84b..0000000000 --- a/tests/expectations/compiler/integers/u16/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3ca06d5bbeb5e839a4ac328776de5debaa67570dcf5fe42f678c73581c5b0b79 - - initial_input_ast: 1c02488cb37ff8842703d1d1397b917a878f3dd65092191942e34319acf57563 - initial_ast: 992528bae4766fd5bbb5b34870ea14fd71c710d5759c8d577246f8dea618fb54 - unrolled_ast: 992528bae4766fd5bbb5b34870ea14fd71c710d5759c8d577246f8dea618fb54 - ssa_ast: 88873c09692817af2a7caa9ff7deb2d9c1a297adfece826eb4eddead70b9d2a4 diff --git a/tests/expectations/compiler/integers/u16/no_space_between_literal.out b/tests/expectations/compiler/integers/u16/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u16/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u16/operator_methods.out b/tests/expectations/compiler/integers/u16/operator_methods.out deleted file mode 100644 index ec5e7ea5e2..0000000000 --- a/tests/expectations/compiler/integers/u16/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ff9c2d1e56ff3e1807432f3315573cbfaf9129ee77b5782bfc87fdb29018fcfa - initial_ast: b421820b604e7060e5ab68f80666db1e7c44761836e4af18e6480030e7838b01 - unrolled_ast: b421820b604e7060e5ab68f80666db1e7c44761836e4af18e6480030e7838b01 - ssa_ast: 471fd8a116e7c418a1fd5942299bf3b889acb627b20caf1b435083f0d48a8449 diff --git a/tests/expectations/compiler/integers/u16/or.out b/tests/expectations/compiler/integers/u16/or.out deleted file mode 100644 index ef19c1626d..0000000000 --- a/tests/expectations/compiler/integers/u16/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e42870a9c4915d12757e7ebe32492b7c4dd6f47134c6f2bd635d6e4be239c379 - initial_ast: 35c8ad870e121356ac9d0ecb07b9f4d4f5283c3c4cc393b7d8027af3369aad52 - unrolled_ast: 35c8ad870e121356ac9d0ecb07b9f4d4f5283c3c4cc393b7d8027af3369aad52 - ssa_ast: b204a34150071529bcef78a4512f0d6c1ac562d63781627bf57da3aa5ebe1f90 diff --git a/tests/expectations/compiler/integers/u16/pow.out b/tests/expectations/compiler/integers/u16/pow.out deleted file mode 100644 index 132a592823..0000000000 --- a/tests/expectations/compiler/integers/u16/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 58e0404834b4715977bba6f7fe8c6f921692495839cac160e0d8ab227efef8b2 - initial_ast: ea3b7f70662fb50da496d594df242650a7fdef038b6b465807d844bc5c162304 - unrolled_ast: ea3b7f70662fb50da496d594df242650a7fdef038b6b465807d844bc5c162304 - ssa_ast: c037d0dee401d9ec2f7712a5d75db052364cc8525e8d460e623e59a49e3c3eb4 diff --git a/tests/expectations/compiler/integers/u16/shl.out b/tests/expectations/compiler/integers/u16/shl.out deleted file mode 100644 index 9dd9061566..0000000000 --- a/tests/expectations/compiler/integers/u16/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 65dd7cf520245c5318843529da405a4b32044950de9495123e281819690c9b32 - initial_ast: a6b7db823e035430a49b48dd895c85554caa71120c2c1a40d7b6f93622dddd9a - unrolled_ast: a6b7db823e035430a49b48dd895c85554caa71120c2c1a40d7b6f93622dddd9a - ssa_ast: df7cdacadf815cc492f0d857d7ef517f669004d285168e2684d4d1cb6b24ee44 diff --git a/tests/expectations/compiler/integers/u16/shr.out b/tests/expectations/compiler/integers/u16/shr.out deleted file mode 100644 index f588d01d28..0000000000 --- a/tests/expectations/compiler/integers/u16/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 65dd7cf520245c5318843529da405a4b32044950de9495123e281819690c9b32 - initial_ast: e9684a8b5ab2922f815f9dd15bfb939567f776a503b04906835cb422e177b793 - unrolled_ast: e9684a8b5ab2922f815f9dd15bfb939567f776a503b04906835cb422e177b793 - ssa_ast: 4f9f2e96dd410e2bbc7c57097994894f07bc9709bc687753b89ab871e72700e2 diff --git a/tests/expectations/compiler/integers/u16/sub.out b/tests/expectations/compiler/integers/u16/sub.out deleted file mode 100644 index 463049266c..0000000000 --- a/tests/expectations/compiler/integers/u16/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 254a400e9fe9ac80d9e2ed8254994a7bca4229005186c223d0a19585613f32b9 - initial_ast: 1439fac87b5291ecbadd34277e98debe8ac2d6dc057b30711159f22e4f51f1f3 - unrolled_ast: 1439fac87b5291ecbadd34277e98debe8ac2d6dc057b30711159f22e4f51f1f3 - ssa_ast: d072d068ab624939ebb7cde0f28583bf510b8607a985f59a481e7f58f5eec713 diff --git a/tests/expectations/compiler/integers/u16/ternary.out b/tests/expectations/compiler/integers/u16/ternary.out deleted file mode 100644 index 9bc031e7f5..0000000000 --- a/tests/expectations/compiler/integers/u16/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 652d4ff29a89177b1a50bf825c8e0b588cd69b59d15401627d8ad9cb8bc8bea4 - - initial_input_ast: 5c2bc7483238201b8fd1d26d7bf18fd8cd88a0c968e4403d7e588c58d5135ce1 - initial_ast: 35239dd409be0d20ca2b355a6e38300eada05aedb698240825960557e8293b43 - unrolled_ast: 35239dd409be0d20ca2b355a6e38300eada05aedb698240825960557e8293b43 - ssa_ast: 468880313852e477585e7afcd1391a0f4c2048c9032e9586ab27700253a63488 diff --git a/tests/expectations/compiler/integers/u16/xor.out b/tests/expectations/compiler/integers/u16/xor.out deleted file mode 100644 index 129bfaeb60..0000000000 --- a/tests/expectations/compiler/integers/u16/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d6798a8a955e910e463ef57ef5e09b17ed1b2c06134195c88e91efd38672ef9a - initial_ast: 317292036a9bce4a8ad1d82e5aea8924e4101798231548c289e57ceaa10b805e - unrolled_ast: 317292036a9bce4a8ad1d82e5aea8924e4101798231548c289e57ceaa10b805e - ssa_ast: bbcc9f7de89f49dc1ebdf3c7056768a7f5b1fe23624be088e6d6337044127d72 diff --git a/tests/expectations/compiler/integers/u32/add.out b/tests/expectations/compiler/integers/u32/add.out deleted file mode 100644 index f9cc333048..0000000000 --- a/tests/expectations/compiler/integers/u32/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4ae3fcda756be204242383a3b61c067cdfe8b565664f0a30d5940ba4f7266e8a - initial_ast: 69b43c1627d395abf92d9d646733c3295c1c3f2b3da6cccc511f84a89cc7cfe6 - unrolled_ast: 69b43c1627d395abf92d9d646733c3295c1c3f2b3da6cccc511f84a89cc7cfe6 - ssa_ast: 27ccdcecb6c62876514839168ccd570a630cd6508576a26407db99decb509f5d diff --git a/tests/expectations/compiler/integers/u32/and.out b/tests/expectations/compiler/integers/u32/and.out deleted file mode 100644 index 59138dc60f..0000000000 --- a/tests/expectations/compiler/integers/u32/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4ae3fcda756be204242383a3b61c067cdfe8b565664f0a30d5940ba4f7266e8a - initial_ast: b10071ee8f3623bfaaaf20973d31ec47788c00639dda7208f28168867953f454 - unrolled_ast: b10071ee8f3623bfaaaf20973d31ec47788c00639dda7208f28168867953f454 - ssa_ast: f9ff1f6a239e2ab25a1c8541c932480f47992dc28c1936845c495e7cefad0d33 diff --git a/tests/expectations/compiler/integers/u32/console_assert.out b/tests/expectations/compiler/integers/u32/console_assert.out deleted file mode 100644 index 77ccc1b459..0000000000 --- a/tests/expectations/compiler/integers/u32/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 561ac4b4e304248d2a792844c79bc6bb2058fb18c89a2ffa413a605b95b105c7 - initial_ast: 0961afe0f9891298bfcc2549fd110b2d99a5ca63e900748b475ecc19694c425c - unrolled_ast: 0961afe0f9891298bfcc2549fd110b2d99a5ca63e900748b475ecc19694c425c - ssa_ast: 2f0d7a76b468736584d864926d3e9f9805f1336f2884ee94dcd3913d3f11b75d diff --git a/tests/expectations/compiler/integers/u32/div.out b/tests/expectations/compiler/integers/u32/div.out deleted file mode 100644 index fccb0d6c85..0000000000 --- a/tests/expectations/compiler/integers/u32/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a6c57f9e310c5c979bec62d2681c7bd2dc1ef0ce672a76c8480943858289937b - initial_ast: ff26a14782b4f76d725602ed0bec0acd22748d8c07a18da1dbbc1162a7b2b433 - unrolled_ast: ff26a14782b4f76d725602ed0bec0acd22748d8c07a18da1dbbc1162a7b2b433 - ssa_ast: ef8d836ea6b48725294b106c261d84b1ea36ca4cca434f0e8b813a2366e6b759 diff --git a/tests/expectations/compiler/integers/u32/eq.out b/tests/expectations/compiler/integers/u32/eq.out deleted file mode 100644 index 6e51df6f32..0000000000 --- a/tests/expectations/compiler/integers/u32/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2be89543b341c40370cf165944cc0feba6f8519c6e61356e08fcc1deb82337a1 - initial_ast: 2ff9c89b8472f388c8999b08e614a121cb217dc5fa2a49a18bb4e34a654d611b - unrolled_ast: 2ff9c89b8472f388c8999b08e614a121cb217dc5fa2a49a18bb4e34a654d611b - ssa_ast: b57e837e59848423a09dd9964983477db2c73e4da84e8012d14304c6512aecd3 diff --git a/tests/expectations/compiler/integers/u32/ge.out b/tests/expectations/compiler/integers/u32/ge.out deleted file mode 100644 index 17681ba0ca..0000000000 --- a/tests/expectations/compiler/integers/u32/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: de8ad46ebf86c8cf39727a576289b732900d67a883b46a1fd7310a05e0a382a4 - - initial_input_ast: 90fd17221034d61fe7b8e6583a861d6d9d97461219d7370d0c34449d9badcc3e - initial_ast: 8437893822f755cfea5eafe1f822869572f138e6c75c768800a4fc62334bfa6d - unrolled_ast: 8437893822f755cfea5eafe1f822869572f138e6c75c768800a4fc62334bfa6d - ssa_ast: 9dd10920b47943a85774f6eaf17463ada6f09d9cd11eb295a250bc2f708baa28 diff --git a/tests/expectations/compiler/integers/u32/gt.out b/tests/expectations/compiler/integers/u32/gt.out deleted file mode 100644 index 399fa29c2e..0000000000 --- a/tests/expectations/compiler/integers/u32/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9e8ee0699c70350b4eb62623a588f890133dd278178de2d51aeacd9e4b01365e - - initial_input_ast: befb4b685175af0ffdb1e55ed784847e1bcae0b53d41f7ae04c343fa89662659 - initial_ast: 5477e515cf4f2318d84011c500baec83b9d3698653afed8b2fec77f74125dcdd - unrolled_ast: 5477e515cf4f2318d84011c500baec83b9d3698653afed8b2fec77f74125dcdd - ssa_ast: 5610b0c45d50241750098325e24a8724b6b6eb21afde38046f08abde1c5f1d9d diff --git a/tests/expectations/compiler/integers/u32/le.out b/tests/expectations/compiler/integers/u32/le.out deleted file mode 100644 index 0e3266236d..0000000000 --- a/tests/expectations/compiler/integers/u32/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: de8ad46ebf86c8cf39727a576289b732900d67a883b46a1fd7310a05e0a382a4 - - initial_input_ast: 1c2f0c75bc9b2b574e97ea3a0c18d30c5d3f4dd10c471e8ea81bf145ce0c9e40 - initial_ast: 444b3f4d69337068533fa319ce5b6c93b2bc77174724dea0faf3ae0d175c601b - unrolled_ast: 444b3f4d69337068533fa319ce5b6c93b2bc77174724dea0faf3ae0d175c601b - ssa_ast: e760365b9914eb6430a307a951b12ef0a9486cfc22a59271bbdfaace390dbb13 diff --git a/tests/expectations/compiler/integers/u32/lt.out b/tests/expectations/compiler/integers/u32/lt.out deleted file mode 100644 index 3a21574a0b..0000000000 --- a/tests/expectations/compiler/integers/u32/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2bf35687c6b599cdd27e9357d4c909560d9333894df8371d8bdeeabec7e3b000 - - initial_input_ast: 4b6e56b6a0f3cb8453256560f005a11d753584cec14158e06b31796a46358fb2 - initial_ast: be306a469d7a06d4a9177da07d8d45f8973a32b655756dc9d9f072ef8c6018d7 - unrolled_ast: be306a469d7a06d4a9177da07d8d45f8973a32b655756dc9d9f072ef8c6018d7 - ssa_ast: dcc15c786183212cbccf672132212fba1dc23f4ccaf657206c719a676fcf9851 diff --git a/tests/expectations/compiler/integers/u32/max.out b/tests/expectations/compiler/integers/u32/max.out deleted file mode 100644 index a27d069d98..0000000000 --- a/tests/expectations/compiler/integers/u32/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 76a0fe2199754831329d9b089d2c02f73d7457aaed6548372169318675b85f48 - initial_ast: 1059615bf37daf6664a6205c42660b42b39b2df4c078d073d7be006235ab3b5f - unrolled_ast: 1059615bf37daf6664a6205c42660b42b39b2df4c078d073d7be006235ab3b5f - ssa_ast: 6b2c00edb11c4d3d77e8552d2b2684120853ffb9d19b4790ef5032016d02095f diff --git a/tests/expectations/compiler/integers/u32/max_fail.out b/tests/expectations/compiler/integers/u32/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u32/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u32/min.out b/tests/expectations/compiler/integers/u32/min.out deleted file mode 100644 index 1493a1d32e..0000000000 --- a/tests/expectations/compiler/integers/u32/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c7cfa681865a1c0623cfd356162d0c6750f3e06fb72126585eace0aeb21bae77 - initial_ast: 21cb471c85400a751acbd3a432f9b9e61b68130495b787fc1c683978d2c3a889 - unrolled_ast: 21cb471c85400a751acbd3a432f9b9e61b68130495b787fc1c683978d2c3a889 - ssa_ast: af060ef68f1c6f3894f8138b81a3c9c37fe18d91062b0e5290e2605ab50ccbe6 diff --git a/tests/expectations/compiler/integers/u32/min_fail.out b/tests/expectations/compiler/integers/u32/min_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u32/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u32/mul.out b/tests/expectations/compiler/integers/u32/mul.out deleted file mode 100644 index 047553b391..0000000000 --- a/tests/expectations/compiler/integers/u32/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 546123213cad63ac213c6afeba106d3f0ca69f150c1b65342081d710eec7c7df - initial_ast: 5f0fb707f6c7dc6d08bd3c50475b634a262859b71b6e74a09d0d6fa017f29bb0 - unrolled_ast: 5f0fb707f6c7dc6d08bd3c50475b634a262859b71b6e74a09d0d6fa017f29bb0 - ssa_ast: 33c0f720342f316a8c15e6b427ee3b948f3b4e6600fbc124570cb2d5445d4a23 diff --git a/tests/expectations/compiler/integers/u32/ne.out b/tests/expectations/compiler/integers/u32/ne.out deleted file mode 100644 index 93e6edb3aa..0000000000 --- a/tests/expectations/compiler/integers/u32/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 1f678103b8b79449301a7755180eabc64cdd0d844548634e04c31f7c75cada2a - - initial_input_ast: 9ba4eacac243edafb1cc7fd490b92a8e2ef9f8023eb552a7655403acae9a5adb - initial_ast: 83678bda6584a3ec3d147b51ede70e3f9b29ff157fb497a26d29c9cdba1f5994 - unrolled_ast: 83678bda6584a3ec3d147b51ede70e3f9b29ff157fb497a26d29c9cdba1f5994 - ssa_ast: 54700cab9eb20a1e949a9ae943331bb53155d9bf651077c0f15af1cdeddc8f4b diff --git a/tests/expectations/compiler/integers/u32/no_space_between_literal.out b/tests/expectations/compiler/integers/u32/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u32/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u32/operator_methods.out b/tests/expectations/compiler/integers/u32/operator_methods.out deleted file mode 100644 index 35b1867646..0000000000 --- a/tests/expectations/compiler/integers/u32/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 907decb03860d1163454d2b5b01e1034a748fd40b4d773e7f6b9130a11edf301 - initial_ast: ce0e3d994459bc18e2ff67a33b6723513c5d282048b4b93de562e569fc363432 - unrolled_ast: ce0e3d994459bc18e2ff67a33b6723513c5d282048b4b93de562e569fc363432 - ssa_ast: fed5258a6b13288517432b3254570f7b03cf4667ee8f806b9242bfc47563f26f diff --git a/tests/expectations/compiler/integers/u32/or.out b/tests/expectations/compiler/integers/u32/or.out deleted file mode 100644 index e9c2accd36..0000000000 --- a/tests/expectations/compiler/integers/u32/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4ae3fcda756be204242383a3b61c067cdfe8b565664f0a30d5940ba4f7266e8a - initial_ast: cc67bc116776d5445c822fe12427a2acddde99e62d79e0664fe06d2dd940e239 - unrolled_ast: cc67bc116776d5445c822fe12427a2acddde99e62d79e0664fe06d2dd940e239 - ssa_ast: 2410952c551357f0173c5a0147473771d8b821fc634146f187b8978f60d80c47 diff --git a/tests/expectations/compiler/integers/u32/pow.out b/tests/expectations/compiler/integers/u32/pow.out deleted file mode 100644 index 6122f43906..0000000000 --- a/tests/expectations/compiler/integers/u32/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9b4fc7b86cfff53c6ce2de0e0b45e96f28f8f12e7cbe9780e1b863841bddb802 - initial_ast: 547fd062021acab192bedd0629dc407e095a93dfde0e12467fb6ec7b0266f56f - unrolled_ast: 547fd062021acab192bedd0629dc407e095a93dfde0e12467fb6ec7b0266f56f - ssa_ast: 7de34f31b2ff9b2d69bdafd23358bb180704074719fdbf03970f5127460add16 diff --git a/tests/expectations/compiler/integers/u32/shl.out b/tests/expectations/compiler/integers/u32/shl.out deleted file mode 100644 index c4d6d3e962..0000000000 --- a/tests/expectations/compiler/integers/u32/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3d9702d3e9990e8ae833c893cbd678a03963e7cd6d9ced5c5ef82850bce77059 - initial_ast: 88dd8688192f2baca7978e8a6c014bd6da14fd412f985becf6615f8b377d9e34 - unrolled_ast: 88dd8688192f2baca7978e8a6c014bd6da14fd412f985becf6615f8b377d9e34 - ssa_ast: 67876633d787a6ad09afae8d9f9907c6c0bd7fdaf0966954ab665f1ab7e23b54 diff --git a/tests/expectations/compiler/integers/u32/shr.out b/tests/expectations/compiler/integers/u32/shr.out deleted file mode 100644 index a0e1169358..0000000000 --- a/tests/expectations/compiler/integers/u32/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3d9702d3e9990e8ae833c893cbd678a03963e7cd6d9ced5c5ef82850bce77059 - initial_ast: fc264178c4a7c17c80f5991a14ce3ae69fb46935ab490781e071d495a551eca1 - unrolled_ast: fc264178c4a7c17c80f5991a14ce3ae69fb46935ab490781e071d495a551eca1 - ssa_ast: d8130d9536897715b41775cdbbada599919839c64211ae28a87eebeb428355fe diff --git a/tests/expectations/compiler/integers/u32/sub.out b/tests/expectations/compiler/integers/u32/sub.out deleted file mode 100644 index ebd4ffa99a..0000000000 --- a/tests/expectations/compiler/integers/u32/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e87b936c82f37cf42b7963346a659b9dc14c5c09386e3bf792c4f4b72214ecca - initial_ast: 7dd1d20d3aa695da274111e8b8ed6a826831fd4a1e9b1183bb682e665758c1a9 - unrolled_ast: 7dd1d20d3aa695da274111e8b8ed6a826831fd4a1e9b1183bb682e665758c1a9 - ssa_ast: aaf11bcbe37e88d2311a6c98601e05f60a6eb3f9d3c3a71eb8441530ee8028d4 diff --git a/tests/expectations/compiler/integers/u32/ternary.out b/tests/expectations/compiler/integers/u32/ternary.out deleted file mode 100644 index bdb212177b..0000000000 --- a/tests/expectations/compiler/integers/u32/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a9185aec47cddbf08cb487e40ac62991cb884eff4e0d87f4aaacbe5432a854fa - - initial_input_ast: 835e18dfc6dcfe2837cf2b959884fe9659e4d74d6f4faf3a759b2ffeb517a5a9 - initial_ast: 3f7adea34f1961d45a9c58950647c22943986fdca7d69da115ff6ea96967e860 - unrolled_ast: 3f7adea34f1961d45a9c58950647c22943986fdca7d69da115ff6ea96967e860 - ssa_ast: d2e573f4c4050997c9114a8dd06f7cfc92f171371696e32e9f4eafb7129c96d7 diff --git a/tests/expectations/compiler/integers/u32/xor.out b/tests/expectations/compiler/integers/u32/xor.out deleted file mode 100644 index 9db3b82cbb..0000000000 --- a/tests/expectations/compiler/integers/u32/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 11b11228858e335f8bf609bdb2371f741ecfb95b636e8835e583fbd9125d67d9 - initial_ast: 7b603351c155a2153e64a21c9e43b8b04efeb6ba5d54bc035baab1ba74699e03 - unrolled_ast: 7b603351c155a2153e64a21c9e43b8b04efeb6ba5d54bc035baab1ba74699e03 - ssa_ast: 93cd00b082f4c94e3d8e1a8b1edc5ef6fe4f640a87d3d39ec435920385fe6c5d diff --git a/tests/expectations/compiler/integers/u64/add.out b/tests/expectations/compiler/integers/u64/add.out deleted file mode 100644 index 199f12923a..0000000000 --- a/tests/expectations/compiler/integers/u64/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5f0da349bc0cc127fd729d94bd9a17313acc2a712b2375e884ac07efaf2673ae - initial_ast: 7d2050c140233b86fd4d3b4ccf5a442d4bad8bf04b31a2a5c548e6e2acdc2add - unrolled_ast: 7d2050c140233b86fd4d3b4ccf5a442d4bad8bf04b31a2a5c548e6e2acdc2add - ssa_ast: 4eb9297ac985ce0a341cb0ecebb8afe4a5e202a991f0e19fe3e8236d8b9752ed diff --git a/tests/expectations/compiler/integers/u64/and.out b/tests/expectations/compiler/integers/u64/and.out deleted file mode 100644 index b673493984..0000000000 --- a/tests/expectations/compiler/integers/u64/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5f0da349bc0cc127fd729d94bd9a17313acc2a712b2375e884ac07efaf2673ae - initial_ast: 83f2b4de259e44ad6a5ece8b2e93ab3141b1a7e9e43574998f315bf0b9d4b3e9 - unrolled_ast: 83f2b4de259e44ad6a5ece8b2e93ab3141b1a7e9e43574998f315bf0b9d4b3e9 - ssa_ast: ad8ead524da3e15e0fdf5f2e06dd5e6cae7e23cb26926d53cabb31a7104c0cb3 diff --git a/tests/expectations/compiler/integers/u64/console_assert.out b/tests/expectations/compiler/integers/u64/console_assert.out deleted file mode 100644 index 7624d97150..0000000000 --- a/tests/expectations/compiler/integers/u64/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ffe727bd0e064f3c4f8b580e6817aaeb3a8f59a40fca63e69b2e162074b060df - initial_ast: e43517734ea3d4f139255f016e8c464cb653bfbca7c525f7dd2ae971c77cbf6a - unrolled_ast: e43517734ea3d4f139255f016e8c464cb653bfbca7c525f7dd2ae971c77cbf6a - ssa_ast: c41eb659cf8bfd9dced9d0efcb1a0a3fcbccc6db342b01e2e09e5f7659689076 diff --git a/tests/expectations/compiler/integers/u64/div.out b/tests/expectations/compiler/integers/u64/div.out deleted file mode 100644 index e5524ea585..0000000000 --- a/tests/expectations/compiler/integers/u64/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 6824ff7cf3bf1848c9697340221c23ed27db55bd35fa0e3d4a51afb342dca798 - initial_ast: 7a325948a4addeb3a0ad61c64654a81e8e36b5fb4eb02fff37ea61e53ab0fcd0 - unrolled_ast: 7a325948a4addeb3a0ad61c64654a81e8e36b5fb4eb02fff37ea61e53ab0fcd0 - ssa_ast: 49ac2333f36f58ea737dcbd745704a8a123c40abcee28dc33dbbb84bfcb983e4 diff --git a/tests/expectations/compiler/integers/u64/eq.out b/tests/expectations/compiler/integers/u64/eq.out deleted file mode 100644 index 6011aa2f5a..0000000000 --- a/tests/expectations/compiler/integers/u64/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a30d87edb4b5e4228844a032596e7140e5c7c2c238a1a5ac1b0b551fd6994b18 - initial_ast: 4d9fcb269daf6a367b08d76663bbf789c6587c4491c9e83e14433682f9dcf36c - unrolled_ast: 4d9fcb269daf6a367b08d76663bbf789c6587c4491c9e83e14433682f9dcf36c - ssa_ast: eabcf817caf0ba712c8f777b82bb24351187b8a4fc1e203f1d90fe04c00e58ff diff --git a/tests/expectations/compiler/integers/u64/ge.out b/tests/expectations/compiler/integers/u64/ge.out deleted file mode 100644 index f560e6bf51..0000000000 --- a/tests/expectations/compiler/integers/u64/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b4a2c614c8818d8c909889e083ead68d447d8b2a1d805e0f9ab559012e55d9b1 - - initial_input_ast: eca84ae5626a42e56bf16e86c3ae507b8043a9beebd8c822da2cec5af5ea4ff7 - initial_ast: c621e50b4709a131fceaf4cb02fa1703fa1822e9e6d49ab6d73f1c2b94873040 - unrolled_ast: c621e50b4709a131fceaf4cb02fa1703fa1822e9e6d49ab6d73f1c2b94873040 - ssa_ast: 480d2c7b99187672a2b2c8c9a885085a3231c53b68024c1c8ed4a36b0e8cc817 diff --git a/tests/expectations/compiler/integers/u64/gt.out b/tests/expectations/compiler/integers/u64/gt.out deleted file mode 100644 index 9a145fd45f..0000000000 --- a/tests/expectations/compiler/integers/u64/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d90e3ab82224d91c5a023143ddd98de3f6597d2bf9c4bbebce33b4bbff780dbf - - initial_input_ast: b3203b60625dcbfc58481812d0b61fc6e3c9b23a1a60a6087ed75652c73d4de1 - initial_ast: 28b84f16425d5e143b7b2291bf469ee3f3d0a775d0f5df9a1c24edd1b5f54117 - unrolled_ast: 28b84f16425d5e143b7b2291bf469ee3f3d0a775d0f5df9a1c24edd1b5f54117 - ssa_ast: 47a0dca594b38a81e6f8ee2df60508650fc3ef6017129394ede8a01d30a81dc0 diff --git a/tests/expectations/compiler/integers/u64/le.out b/tests/expectations/compiler/integers/u64/le.out deleted file mode 100644 index fc631a93de..0000000000 --- a/tests/expectations/compiler/integers/u64/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b4a2c614c8818d8c909889e083ead68d447d8b2a1d805e0f9ab559012e55d9b1 - - initial_input_ast: 9a30e6239a8777c12b21a658af4d97e393fbda720dd9f6890edbcbcf52fd82dd - initial_ast: 68ebc3ff677336c2dac95b2fd24b3c8bd3b5167475f55480f505de6f197b9dc2 - unrolled_ast: 68ebc3ff677336c2dac95b2fd24b3c8bd3b5167475f55480f505de6f197b9dc2 - ssa_ast: c0d96c1ff0f2bdbee2b389008c7dbce6e4f7b5b2cd529454d21bb978a3e08621 diff --git a/tests/expectations/compiler/integers/u64/lt.out b/tests/expectations/compiler/integers/u64/lt.out deleted file mode 100644 index 49300db485..0000000000 --- a/tests/expectations/compiler/integers/u64/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: f480fbac737ff71dd5517371e2c8b974ec8e7f0d76f1cf95c071647838dd26bb - - initial_input_ast: 5d86162c8dd4157286ebdde26ba2738b2c09a077b09f50081f9f2ae6815f8d5a - initial_ast: fa17537dee8090ede3b8240b5a960d699efa4fd0408bacd119a443c2b69f65bc - unrolled_ast: fa17537dee8090ede3b8240b5a960d699efa4fd0408bacd119a443c2b69f65bc - ssa_ast: 753b2966c71ab5f881fadfd9f9720bafa4fa1aaabd43ce1692c6c7936a1c3844 diff --git a/tests/expectations/compiler/integers/u64/max.out b/tests/expectations/compiler/integers/u64/max.out deleted file mode 100644 index 7f45d78cc4..0000000000 --- a/tests/expectations/compiler/integers/u64/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: ad738add6c03b6224ccba9d8d735b6645444f9c16f3b652ec4c0903fa4bb33aa - initial_ast: 408f90c719a52bbf126e16231e3286f786a564cfa0e80e6f2fa4a4fc8bc84786 - unrolled_ast: 408f90c719a52bbf126e16231e3286f786a564cfa0e80e6f2fa4a4fc8bc84786 - ssa_ast: 3999e1997f8e846c1c21ba57b0484d3793ad9f73b2090c87c793c1a83fb506fc diff --git a/tests/expectations/compiler/integers/u64/max_fail.out b/tests/expectations/compiler/integers/u64/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u64/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u64/min.out b/tests/expectations/compiler/integers/u64/min.out deleted file mode 100644 index 287b0ec56c..0000000000 --- a/tests/expectations/compiler/integers/u64/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c7cfa681865a1c0623cfd356162d0c6750f3e06fb72126585eace0aeb21bae77 - initial_ast: c696a0f554211e2b57e1ec12d43a209059e408e0123d5e5dbd5ced6d66120666 - unrolled_ast: c696a0f554211e2b57e1ec12d43a209059e408e0123d5e5dbd5ced6d66120666 - ssa_ast: d7bc1907588c06c678b4be44395a52302e5e88efd3a9f85d5d8db71490aa5dfb diff --git a/tests/expectations/compiler/integers/u64/min_fail.out b/tests/expectations/compiler/integers/u64/min_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u64/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u64/mul.out b/tests/expectations/compiler/integers/u64/mul.out deleted file mode 100644 index ef226a82d1..0000000000 --- a/tests/expectations/compiler/integers/u64/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b08335847b9ad7ff1fd1bc85da101950a3bd737aa7339aec6dea798f8bcc0c62 - initial_ast: d60be393992dead9e4403c3fbc58a631b4f66cc343ed7af540bbc8b211b87262 - unrolled_ast: d60be393992dead9e4403c3fbc58a631b4f66cc343ed7af540bbc8b211b87262 - ssa_ast: 89ef5c482b7e883d2c4c03df1c4d8336c9f574f465022dd23ad1c012dbf3e739 diff --git a/tests/expectations/compiler/integers/u64/ne.out b/tests/expectations/compiler/integers/u64/ne.out deleted file mode 100644 index b35e41cbf5..0000000000 --- a/tests/expectations/compiler/integers/u64/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 19ccd8355c28de11d696f353eebeb35a92372d6aec6be93fca97ebe917117c89 - - initial_input_ast: fb901b45b5aaee305521668ae9e9edb15cc7cd0cd81814069e06d979a9371ce9 - initial_ast: 4df6c2814550170f7619a8a00fb42c932c348400ae7540600bae2a60331b68f8 - unrolled_ast: 4df6c2814550170f7619a8a00fb42c932c348400ae7540600bae2a60331b68f8 - ssa_ast: 280f8c9cf5a9d337e10a54be60c8915c708148e9b39628e26882b05f792fb761 diff --git a/tests/expectations/compiler/integers/u64/no_space_between_literal.out b/tests/expectations/compiler/integers/u64/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u64/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u64/operator_methods.out b/tests/expectations/compiler/integers/u64/operator_methods.out deleted file mode 100644 index 71bf2166c0..0000000000 --- a/tests/expectations/compiler/integers/u64/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 58dc0a83c33aaa0f6ccbc5c4441afc1731f3786e885421af64b00c79256cc1c7 - initial_ast: 439c9cbb5790ad633c223f55f00f440c943a8016dc5bc7a1ab6ab289111b70e7 - unrolled_ast: 439c9cbb5790ad633c223f55f00f440c943a8016dc5bc7a1ab6ab289111b70e7 - ssa_ast: 916f159d3180cd849f9888f45d9e85563bb905baaf8949b95ca0972c79e1aec9 diff --git a/tests/expectations/compiler/integers/u64/or.out b/tests/expectations/compiler/integers/u64/or.out deleted file mode 100644 index 2ed86ec55f..0000000000 --- a/tests/expectations/compiler/integers/u64/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 5f0da349bc0cc127fd729d94bd9a17313acc2a712b2375e884ac07efaf2673ae - initial_ast: c23f5c849ac000df9897be0176e38bd8cba55ee5e2c4808f2dd9dd001f2242fb - unrolled_ast: c23f5c849ac000df9897be0176e38bd8cba55ee5e2c4808f2dd9dd001f2242fb - ssa_ast: 37f82d84f8ad1904eb3a331c38867c9898fe83fcdaade5074912fb47a8c644cd diff --git a/tests/expectations/compiler/integers/u64/pow.out b/tests/expectations/compiler/integers/u64/pow.out deleted file mode 100644 index 879c55ff94..0000000000 --- a/tests/expectations/compiler/integers/u64/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 124c63b86afdb483e1ecd1e917b68627e1cf503f728213235e860ee8f17108c5 - initial_ast: 1ab1ae9559dc3be4ced54c6699d7f4a2b2ffe1f1cb61289761e88f0e87233119 - unrolled_ast: 1ab1ae9559dc3be4ced54c6699d7f4a2b2ffe1f1cb61289761e88f0e87233119 - ssa_ast: 25e60dd3fa0fdfa3c5daab42c68b69ab8125e09230ef4e4e622207d4f00d4be5 diff --git a/tests/expectations/compiler/integers/u64/shl.out b/tests/expectations/compiler/integers/u64/shl.out deleted file mode 100644 index cbebbf9bc9..0000000000 --- a/tests/expectations/compiler/integers/u64/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 73e39e8df0b0dbcde45e1965fe098a688eacc3c2a88464e943f0a9cf5eaeed35 - initial_ast: 61289dc5f8014bf445cf3b37e5bbb84c9a55eda14f8f8f18e5732d63ffcc01f4 - unrolled_ast: 61289dc5f8014bf445cf3b37e5bbb84c9a55eda14f8f8f18e5732d63ffcc01f4 - ssa_ast: efb7bb42483766d83f0e7d5c3999bb402e035b3c62c9c71010be9ea1c912160d diff --git a/tests/expectations/compiler/integers/u64/shr.out b/tests/expectations/compiler/integers/u64/shr.out deleted file mode 100644 index 54a3210d21..0000000000 --- a/tests/expectations/compiler/integers/u64/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 73e39e8df0b0dbcde45e1965fe098a688eacc3c2a88464e943f0a9cf5eaeed35 - initial_ast: 54aa3493a612a30bfd347dd4809661c0b3600e50a7c3b62f70542a8777d29bb4 - unrolled_ast: 54aa3493a612a30bfd347dd4809661c0b3600e50a7c3b62f70542a8777d29bb4 - ssa_ast: 3cfa7033e1a4d9bbe261fb07dc50e00920fc01110b4169e2dc5a05edd1c6507f diff --git a/tests/expectations/compiler/integers/u64/sub.out b/tests/expectations/compiler/integers/u64/sub.out deleted file mode 100644 index f45a3b5424..0000000000 --- a/tests/expectations/compiler/integers/u64/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 037a91c8ce566bd11e1c3fead1de1b913fdece7cda25fda8b140a48fe6ed8e18 - initial_ast: b1d74b54a8858578ff359461d7f2eee75bfae9468e366654893945499df525d2 - unrolled_ast: b1d74b54a8858578ff359461d7f2eee75bfae9468e366654893945499df525d2 - ssa_ast: 9c89ea9e7094c9274cfa980fbf9bf41288d22df2712d68b0b7d524da70551f63 diff --git a/tests/expectations/compiler/integers/u64/ternary.out b/tests/expectations/compiler/integers/u64/ternary.out deleted file mode 100644 index fa70810538..0000000000 --- a/tests/expectations/compiler/integers/u64/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 4450f5a11abdb8fc9b562c7aa9ca3aca3a9334124c635a0e28ae4168908f1bc1 - - initial_input_ast: 50119550f6c8019f7b05f4af5b542c1fe2167cd02c9e89760e82cacf40d3540c - initial_ast: 8b1ce5ee0743a80bc0cad666886dfaf8401d82cd5abcc5e7e90bfb12d648433c - unrolled_ast: 8b1ce5ee0743a80bc0cad666886dfaf8401d82cd5abcc5e7e90bfb12d648433c - ssa_ast: 327d6b359e7d201267d2a4bec86879be531f39ef3abd97947f7c99fbffaf750e diff --git a/tests/expectations/compiler/integers/u64/xor.out b/tests/expectations/compiler/integers/u64/xor.out deleted file mode 100644 index 00399503a9..0000000000 --- a/tests/expectations/compiler/integers/u64/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 78b3b31c4ce65112e8aa5ffb43d266d6ac030f1f623e59a951bb9ef022b426f6 - initial_ast: 370728de721b2710a76cb736d3ec61d9cbed0409b990a69662ce121a666b4fcf - unrolled_ast: 370728de721b2710a76cb736d3ec61d9cbed0409b990a69662ce121a666b4fcf - ssa_ast: e75dad28720e5e4cd5025e5726dd1349e99e8dfb6e1be2b5525540bd3ff58ac0 diff --git a/tests/expectations/compiler/integers/u8/add.out b/tests/expectations/compiler/integers/u8/add.out deleted file mode 100644 index dbc6c87ac3..0000000000 --- a/tests/expectations/compiler/integers/u8/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d0f3e37c62ac7e5546a31310c8128be2dd63e29ea4fa420f94e30c87a1fa7ac9 - initial_ast: 6cb728c26879e2116c79f09bf6c3f082c6bec6ffebdb58c7b678219af41b41e3 - unrolled_ast: 6cb728c26879e2116c79f09bf6c3f082c6bec6ffebdb58c7b678219af41b41e3 - ssa_ast: fc89379f182cd15cb4ccfaf9add5b14e639cf31007008b56024e1477b53f5d0a diff --git a/tests/expectations/compiler/integers/u8/and.out b/tests/expectations/compiler/integers/u8/and.out deleted file mode 100644 index 1c40c76193..0000000000 --- a/tests/expectations/compiler/integers/u8/and.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d0f3e37c62ac7e5546a31310c8128be2dd63e29ea4fa420f94e30c87a1fa7ac9 - initial_ast: 2e82a7e0522ba866877caec94779bec5ee56107e52fd7fc3ff4cab0963d67f66 - unrolled_ast: 2e82a7e0522ba866877caec94779bec5ee56107e52fd7fc3ff4cab0963d67f66 - ssa_ast: 7fcb1d75143cd8c7f31f2b6d408f13c379d59de68908b2d1d8ddcb6e4b7d9602 diff --git a/tests/expectations/compiler/integers/u8/console_assert.out b/tests/expectations/compiler/integers/u8/console_assert.out deleted file mode 100644 index 9f773bf29b..0000000000 --- a/tests/expectations/compiler/integers/u8/console_assert.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d2efab25011fe4638baa7285769822f2dc76fccadc1bb8b47dfb0e5a9cd4afeb - initial_ast: d3271992622fe1567c51c3d2515cb377fff7f569af76f75e45a00e14867a3aa1 - unrolled_ast: d3271992622fe1567c51c3d2515cb377fff7f569af76f75e45a00e14867a3aa1 - ssa_ast: ea86efd2a343acf1e77808157514b830712db5c7d2bdad92f40ad62598011a71 diff --git a/tests/expectations/compiler/integers/u8/div.out b/tests/expectations/compiler/integers/u8/div.out deleted file mode 100644 index f37ac96234..0000000000 --- a/tests/expectations/compiler/integers/u8/div.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 75c65019abb9d4d2b03ca454d75070980c5eddfd4a3f55105da62dc462e6f2b4 - initial_ast: f7eb9aca3628c06ec36113984d3580a416425559d24cde6fa226e4b315ce121c - unrolled_ast: f7eb9aca3628c06ec36113984d3580a416425559d24cde6fa226e4b315ce121c - ssa_ast: 6b6e3cda1e952b6fc319524d5cdb1f5d55e61a4d1b0ea4948c83812858ce5f28 diff --git a/tests/expectations/compiler/integers/u8/eq.out b/tests/expectations/compiler/integers/u8/eq.out deleted file mode 100644 index 1366bc2c79..0000000000 --- a/tests/expectations/compiler/integers/u8/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 52c6f13316dac6cd775fd0ed87c85b2193ce7ce98e4af5fe90a02228b91bd436 - initial_ast: 305b0859c3b385dfec3449debe9b45a171b7c4bc22d67b14a5c982cce3d158bb - unrolled_ast: 305b0859c3b385dfec3449debe9b45a171b7c4bc22d67b14a5c982cce3d158bb - ssa_ast: b1cb02bf1311b99972ad9b20c8ee787a75b98e0b320903cba5b99cf9a9c0e24d diff --git a/tests/expectations/compiler/integers/u8/ge.out b/tests/expectations/compiler/integers/u8/ge.out deleted file mode 100644 index 635f395131..0000000000 --- a/tests/expectations/compiler/integers/u8/ge.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 363f50e3854bd4f21cbf7a504c5c2115a80957b3fb1a57c02d53d9641b4ba75f - - initial_input_ast: 904d8fd6014d774459898b77c719aad7b8022aa655b5deb9d6c2a721d7764dca - initial_ast: d741e37f6dddfeb676b42c3ae18ddeeb42d284586ccb7d3005fa30305d4088e7 - unrolled_ast: d741e37f6dddfeb676b42c3ae18ddeeb42d284586ccb7d3005fa30305d4088e7 - ssa_ast: fd55bcaac50d9d88f00f3cba33c1d0c9d1a46f9e297655c8e92f34ab5340faab diff --git a/tests/expectations/compiler/integers/u8/gt.out b/tests/expectations/compiler/integers/u8/gt.out deleted file mode 100644 index 273644b438..0000000000 --- a/tests/expectations/compiler/integers/u8/gt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 11dfe30414af52cd3789b4661b5321703b3f7c59c1d56156453f017216549638 - - initial_input_ast: 3e57abe0efb9f8f96288dc4e5483d2bae4bfbfdf17656e06939dc902f22bfc06 - initial_ast: 5cb07961697f1b453397b716f646c1d06036dc0af885bd9738eb1a20ab8d6270 - unrolled_ast: 5cb07961697f1b453397b716f646c1d06036dc0af885bd9738eb1a20ab8d6270 - ssa_ast: a7e413d5ae2f6c2f0dff15088b720d40d81279e8aa2b3ce7acb4046bc649a176 diff --git a/tests/expectations/compiler/integers/u8/le.out b/tests/expectations/compiler/integers/u8/le.out deleted file mode 100644 index 83fbf84388..0000000000 --- a/tests/expectations/compiler/integers/u8/le.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 363f50e3854bd4f21cbf7a504c5c2115a80957b3fb1a57c02d53d9641b4ba75f - - initial_input_ast: e258c10edaaa1e75317f18338d4401727c00bc1f4ff31b63d6dd2d3c4055786a - initial_ast: aafa797f7510cb68a000c519cba95c1d9d3df572ed5798c7e6f952b38afa4f2e - unrolled_ast: aafa797f7510cb68a000c519cba95c1d9d3df572ed5798c7e6f952b38afa4f2e - ssa_ast: 5d9776e262da19fb4fc40f794e986c33c93f4d5d9a87230d16c94d08ea699670 diff --git a/tests/expectations/compiler/integers/u8/lt.out b/tests/expectations/compiler/integers/u8/lt.out deleted file mode 100644 index 63f95863f9..0000000000 --- a/tests/expectations/compiler/integers/u8/lt.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 7f6f717332c3b7db6fb3cce23f081b8889744d750647472938f65fc22bba75d3 - - initial_input_ast: 070b47a3460318982ab945e6c9fb89c68207b3388126f8daadb463fa669834ed - initial_ast: e0a50bc740dd5465240944e4e8da80062a8f2b0cf95051e1fcd5b912f593bbee - unrolled_ast: e0a50bc740dd5465240944e4e8da80062a8f2b0cf95051e1fcd5b912f593bbee - ssa_ast: d9876c716030d0172a18dd401d66b67afa00c976ecb29fd1654f7b6e88d0538f diff --git a/tests/expectations/compiler/integers/u8/max.out b/tests/expectations/compiler/integers/u8/max.out deleted file mode 100644 index 0a2a8ab465..0000000000 --- a/tests/expectations/compiler/integers/u8/max.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c7cfa681865a1c0623cfd356162d0c6750f3e06fb72126585eace0aeb21bae77 - initial_ast: b6a1a46467e61d42768094825c2b306a5b60633ebf36e18bdf16405466643af2 - unrolled_ast: b6a1a46467e61d42768094825c2b306a5b60633ebf36e18bdf16405466643af2 - ssa_ast: 13267afa29c0abf75e9c28e08800122a4147cc1b31d3013326e3321c9a4a965e diff --git a/tests/expectations/compiler/integers/u8/max_fail.out b/tests/expectations/compiler/integers/u8/max_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u8/max_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u8/min.out b/tests/expectations/compiler/integers/u8/min.out deleted file mode 100644 index 62b4d6bb1b..0000000000 --- a/tests/expectations/compiler/integers/u8/min.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 13720f61f86be3462e6829a230cb85abd2ea7a3e406c03bad349c0580839fd1b - initial_ast: 7fabfaa9c74d411896fa0061d36170820ce473f354eeefe2df5ca2b3e27d98af - unrolled_ast: 7fabfaa9c74d411896fa0061d36170820ce473f354eeefe2df5ca2b3e27d98af - ssa_ast: ae27eb9ed5e504078830c3a2c7805081da2c84aa9eeabdabd6edd57764fa501d diff --git a/tests/expectations/compiler/integers/u8/min_fail.out b/tests/expectations/compiler/integers/u8/min_fail.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u8/min_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u8/mul.out b/tests/expectations/compiler/integers/u8/mul.out deleted file mode 100644 index b3f0ad27d1..0000000000 --- a/tests/expectations/compiler/integers/u8/mul.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: dc88d1ee78f1dcf6e0c6680c832d10071756ed9b0430d61032df953dc09697f1 - initial_ast: e9bb0a4f4770740bdccccfb26c6e19dc6bd3aa76884f140af0f6d35c4b1d1998 - unrolled_ast: e9bb0a4f4770740bdccccfb26c6e19dc6bd3aa76884f140af0f6d35c4b1d1998 - ssa_ast: 09a5032c583c395cbafa98742170d664e8cfe0e46c0294f3c2db7451a71cd837 diff --git a/tests/expectations/compiler/integers/u8/ne.out b/tests/expectations/compiler/integers/u8/ne.out deleted file mode 100644 index 526e4c51bb..0000000000 --- a/tests/expectations/compiler/integers/u8/ne.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c689cc64548f987ae996743a1221fc7dc2f29c265f21f08e8f883383cf0e4f2b - - initial_input_ast: 9322acfd66d611ebc2ed47adc1c9cce394287216103578c2c822bec1318d6d1a - initial_ast: 881750c7d9851577a8d398f41834366d48c5e72d65e7d9ef0939bf2e2a986412 - unrolled_ast: 881750c7d9851577a8d398f41834366d48c5e72d65e7d9ef0939bf2e2a986412 - ssa_ast: 6b958ac6da5fbc801a0ca1af8fcb33f60bd4bfa37762327a4b1a0e40a844b956 diff --git a/tests/expectations/compiler/integers/u8/no_space_between_literal.out b/tests/expectations/compiler/integers/u8/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/integers/u8/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u8/operator_methods.out b/tests/expectations/compiler/integers/u8/operator_methods.out deleted file mode 100644 index cf3af94539..0000000000 --- a/tests/expectations/compiler/integers/u8/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c3b116f4488d161d75436a017fb2cbef40813da29efcbe6f841eb8933101e1b9 - initial_ast: f0eb1b31e1e5bca816153e30e3c16e5ad5fc289a28a4b357bd58e24795e1bb1e - unrolled_ast: f0eb1b31e1e5bca816153e30e3c16e5ad5fc289a28a4b357bd58e24795e1bb1e - ssa_ast: 5c3543ad65a2d2b9beb68409212b8ef4690daf9b12226f5f5eeef89d9659bc7a diff --git a/tests/expectations/compiler/integers/u8/or.out b/tests/expectations/compiler/integers/u8/or.out deleted file mode 100644 index 93591767f9..0000000000 --- a/tests/expectations/compiler/integers/u8/or.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d0f3e37c62ac7e5546a31310c8128be2dd63e29ea4fa420f94e30c87a1fa7ac9 - initial_ast: c72a6da36ca21cb600004dd195e72f5cdf4d335c4b2e01ff04c6f3adc90b6d62 - unrolled_ast: c72a6da36ca21cb600004dd195e72f5cdf4d335c4b2e01ff04c6f3adc90b6d62 - ssa_ast: 278ab1a5ef8ea9349b7198b21509c9b3c8a4e8c66d5ede34935608d301250130 diff --git a/tests/expectations/compiler/integers/u8/pow.out b/tests/expectations/compiler/integers/u8/pow.out deleted file mode 100644 index 878655dbe2..0000000000 --- a/tests/expectations/compiler/integers/u8/pow.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: b55eee822a4ad904943e328fec4c781891b6e783610dc30b0ed96ba09fb92f7f - initial_ast: a984f6f6b248e4b67c52d21b84148c63e0242d8b8722556f7c961513571d291e - unrolled_ast: a984f6f6b248e4b67c52d21b84148c63e0242d8b8722556f7c961513571d291e - ssa_ast: 3af1406ea476007f2e5cf104b681cbb9c3064a4e46a8ba70b8cf113f14de3018 diff --git a/tests/expectations/compiler/integers/u8/shl.out b/tests/expectations/compiler/integers/u8/shl.out deleted file mode 100644 index d6a272e0c3..0000000000 --- a/tests/expectations/compiler/integers/u8/shl.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a047688deafc90ee0a7106bb8673139ab51d00958ede28d18194573e3b101c20 - initial_ast: ba8e563e5da826bf441e53a8186b415b0c6d824c372b8d2a416ec04215021eb0 - unrolled_ast: ba8e563e5da826bf441e53a8186b415b0c6d824c372b8d2a416ec04215021eb0 - ssa_ast: d6a3e47fe4fc44393d17362cd32f9c598e2933c91c5d4d7416126eee91501c17 diff --git a/tests/expectations/compiler/integers/u8/shr.out b/tests/expectations/compiler/integers/u8/shr.out deleted file mode 100644 index 40b083b9e0..0000000000 --- a/tests/expectations/compiler/integers/u8/shr.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: a047688deafc90ee0a7106bb8673139ab51d00958ede28d18194573e3b101c20 - initial_ast: 6df9da2c7c88fd1037d8c03d9e0349ce3dad159e53f9558af1900844a8ac695a - unrolled_ast: 6df9da2c7c88fd1037d8c03d9e0349ce3dad159e53f9558af1900844a8ac695a - ssa_ast: 64d2d2db65c8286557a4e2306d068810d2cb20f3747fa1918cd2197e6b37367c diff --git a/tests/expectations/compiler/integers/u8/sub.out b/tests/expectations/compiler/integers/u8/sub.out deleted file mode 100644 index 2e0c5dc52d..0000000000 --- a/tests/expectations/compiler/integers/u8/sub.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 81c6ce5338920cb12db8f9e0ee4d48b70c5db0749721fe3b93f4a10ca25ca78c - initial_ast: a9b94b29b5ef8f2dc23c3cf12110039f232accda0d0e02b3acb9fecd0afdac92 - unrolled_ast: a9b94b29b5ef8f2dc23c3cf12110039f232accda0d0e02b3acb9fecd0afdac92 - ssa_ast: dff3c8bd0f85b3018dc423825915842df6f6dbbd9c0c82a6fe3ed8015b495533 diff --git a/tests/expectations/compiler/integers/u8/ternary.out b/tests/expectations/compiler/integers/u8/ternary.out deleted file mode 100644 index 4895de7992..0000000000 --- a/tests/expectations/compiler/integers/u8/ternary.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e3d0d7eec93a75e9229f9f7df388ac643dd0c8a5709dd87b8b9dcd33d7ac7dfe - - initial_input_ast: 9e11865bb074c2b2fe29b244e6f0455b3a2a776ad399c4a94a507160ac61d90f - initial_ast: 6887a6696e99967e2e83cb8bb1c11e71101f4b2b7cce5cf47e1f6fec67894568 - unrolled_ast: 6887a6696e99967e2e83cb8bb1c11e71101f4b2b7cce5cf47e1f6fec67894568 - ssa_ast: 1ea84d76059211f1a231621397e66d728c228f42d64b4b7506456f0895f9f3e1 diff --git a/tests/expectations/compiler/integers/u8/xor.out b/tests/expectations/compiler/integers/u8/xor.out deleted file mode 100644 index 484cfcddde..0000000000 --- a/tests/expectations/compiler/integers/u8/xor.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 55992e9c7217caf5b515ab7c37df933849469e18118400e0231fddb6746d7bf5 - initial_ast: 9bd1c210831994e147c5ab6587cba2f55b2592fd4211a39a3d52f04826db1242 - unrolled_ast: 9bd1c210831994e147c5ab6587cba2f55b2592fd4211a39a3d52f04826db1242 - ssa_ast: 5ca87aeef1391c69776a6dc2f04c1a8a56769fcd943f0f3ec1a0c031ffc83f0c diff --git a/tests/expectations/compiler/records/balance_wrong_ty.out b/tests/expectations/compiler/records/balance_wrong_ty.out deleted file mode 100644 index 547d014da3..0000000000 --- a/tests/expectations/compiler/records/balance_wrong_ty.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372020]: The field `gates` in a `record` must have type `u64`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | gates: address,\n 6 | owner: address,\n 7 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/declaration.out b/tests/expectations/compiler/records/declaration.out deleted file mode 100644 index 600b53e3db..0000000000 --- a/tests/expectations/compiler/records/declaration.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 821c447666f4f0e3ec05818c7e5ff8f228768ea9ea89e50cac3c9c4e2286cf83 - unrolled_ast: 821c447666f4f0e3ec05818c7e5ff8f228768ea9ea89e50cac3c9c4e2286cf83 - ssa_ast: f229b97b92b6e5517e0404a6ba5559c94df673c14ec8f4f10156828f05f4761f diff --git a/tests/expectations/compiler/records/duplicate_circuit_name_fail.out b/tests/expectations/compiler/records/duplicate_circuit_name_fail.out deleted file mode 100644 index d2a0d3a021..0000000000 --- a/tests/expectations/compiler/records/duplicate_circuit_name_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EAST0372010]: record `Token` shadowed by\n --> compiler-test:12:1\n |\n 12 | circuit Token { // This circuit cannot have the same name as the record defined above it.\n 13 | x: u32,\n 14 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/duplicate_var_fail.out b/tests/expectations/compiler/records/duplicate_var_fail.out deleted file mode 100644 index e5a0582906..0000000000 --- a/tests/expectations/compiler/records/duplicate_var_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372016]: Record Token defined with more than one variable with the same name.\n --> compiler-test:3:1\n |\n 3 | record Token {\n 4 | // The token owner.\n 5 | owner: address,\n 6 | // The token owner.\n 7 | owner: address, // Cannot define two record variables with the same name.\n 8 | // The Aleo balance (in gates).\n 9 | gates: u64,\n 10 | // The token amount.\n 11 | amount: u64,\n 12 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/init_expression.out b/tests/expectations/compiler/records/init_expression.out deleted file mode 100644 index 711a75ff05..0000000000 --- a/tests/expectations/compiler/records/init_expression.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 91a94b43e7599be7a8d284d8ed68af60521bf2f586c081c46571e6877d42423f - unrolled_ast: 91a94b43e7599be7a8d284d8ed68af60521bf2f586c081c46571e6877d42423f - ssa_ast: f8dd2e6a50e15fc6e503645342f37c1da08ce3a7c90e70f91ff0e9aeb3e20ef9 diff --git a/tests/expectations/compiler/records/init_expression_shorthand.out b/tests/expectations/compiler/records/init_expression_shorthand.out deleted file mode 100644 index 5ed900f273..0000000000 --- a/tests/expectations/compiler/records/init_expression_shorthand.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 1381798c7151d829ababe68636c8f60caa2c4ede84e0603cae658079b4ffdb89 - unrolled_ast: 1381798c7151d829ababe68636c8f60caa2c4ede84e0603cae658079b4ffdb89 - ssa_ast: a327e9edcf9b23898a9855c61eb03920816ee84c0ab0d71c84faa6169550e1b3 diff --git a/tests/expectations/compiler/records/init_expression_type_fail.out b/tests/expectations/compiler/records/init_expression_type_fail.out deleted file mode 100644 index 2b77bbee7c..0000000000 --- a/tests/expectations/compiler/records/init_expression_type_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372003]: Expected type `address` but type `u64` was found\n --> compiler-test:12:28\n |\n 12 | function mint(r0: address, r1: u64) -> Token {\n | ^^\nError [ETYC0372003]: Expected type `u64` but type `address` was found\n --> compiler-test:12:15\n |\n 12 | function mint(r0: address, r1: u64) -> Token {\n | ^^\n" diff --git a/tests/expectations/compiler/records/init_expression_var_fail.out b/tests/expectations/compiler/records/init_expression_var_fail.out deleted file mode 100644 index 9d4bc8f1f1..0000000000 --- a/tests/expectations/compiler/records/init_expression_var_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372013]: Circuit initialization expression for `Token` is missing member `owner`.\n --> compiler-test:13:12\n |\n 13 | return Token {\n 14 | sender: r0, // This variable should be named `owner`.\n 15 | gates: 0u64,\n 16 | amount: r1,\n 17 | };\n | ^^^^^^\n" diff --git a/tests/expectations/compiler/records/no_owner_fail.out b/tests/expectations/compiler/records/no_owner_fail.out deleted file mode 100644 index 7fb821fc91..0000000000 --- a/tests/expectations/compiler/records/no_owner_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372019]: The `record` type requires the variable `owner: address`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | // The Aleo balance (in gates).\n 6 | gates: u64,\n 7 | // The token amount.\n 8 | amount: u64,\n 9 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/owner_wrong_ty.out b/tests/expectations/compiler/records/owner_wrong_ty.out deleted file mode 100644 index 4dc59ed555..0000000000 --- a/tests/expectations/compiler/records/owner_wrong_ty.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372020]: The field `owner` in a `record` must have type `address`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | gates: u64,\n 6 | owner: bool,\n 7 | }\n | ^\n" diff --git a/tests/expectations/compiler/scalar/add.out b/tests/expectations/compiler/scalar/add.out deleted file mode 100644 index 939f34deea..0000000000 --- a/tests/expectations/compiler/scalar/add.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: c528268c53f01e78fbbc8af3ed5e0dc1d4e9b9f28644c597167971edef764cf0 - initial_ast: 267628fed05800b7d1b0d3218f30e6d614b38119d94fcf30be64e1e74cb68717 - unrolled_ast: 267628fed05800b7d1b0d3218f30e6d614b38119d94fcf30be64e1e74cb68717 - ssa_ast: b2e6c173eb839a726e82f149719c2d3f560e685482730ff066ec6371a67a50f7 diff --git a/tests/expectations/compiler/scalar/cmp.out b/tests/expectations/compiler/scalar/cmp.out deleted file mode 100644 index aad7fb9c9a..0000000000 --- a/tests/expectations/compiler/scalar/cmp.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 8b51ce00d3448cda6f763ac1fbc6d14a2588dc0bc0d24eb423b5f417029b28c5 - initial_ast: 78ad22f7a7591585c256c097527f6697371a0788e2a4f298ba78dfa14bec5716 - unrolled_ast: 78ad22f7a7591585c256c097527f6697371a0788e2a4f298ba78dfa14bec5716 - ssa_ast: 4b2a40d14e26818ea4bd82b2400265bbe633e243b4d7d62be4093a2bb6a68f66 diff --git a/tests/expectations/compiler/scalar/div_fail.out b/tests/expectations/compiler/scalar/div_fail.out deleted file mode 100644 index 7910b95704..0000000000 --- a/tests/expectations/compiler/scalar/div_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372007]: Expected one type from `field, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `scalar`\n --> compiler-test:4:12\n |\n 4 | return a / b; // division not supported for scalar types.\n | ^^^^^\n" diff --git a/tests/expectations/compiler/scalar/eq.out b/tests/expectations/compiler/scalar/eq.out deleted file mode 100644 index 6314675f9e..0000000000 --- a/tests/expectations/compiler/scalar/eq.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: fbb9f33bc5cf7fd11341e6dc1d12d4899274f3bee34dd64590ffd3c9438a61a5 - initial_ast: 8289ba8d30365026c4e1b2fdef5afded1ca8c748dbe8051a96d6ecad4a6fe2b2 - unrolled_ast: 8289ba8d30365026c4e1b2fdef5afded1ca8c748dbe8051a96d6ecad4a6fe2b2 - ssa_ast: 85863634a5c310ad76a098e3a2e9419d3d5d46fc675c859d253343471899176a diff --git a/tests/expectations/compiler/scalar/no_space_between_literal.out b/tests/expectations/compiler/scalar/no_space_between_literal.out deleted file mode 100644 index 9ac75fd08d..0000000000 --- a/tests/expectations/compiler/scalar/no_space_between_literal.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/scalar/operator_methods.out b/tests/expectations/compiler/scalar/operator_methods.out deleted file mode 100644 index 982ad5f68c..0000000000 --- a/tests/expectations/compiler/scalar/operator_methods.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: d7a45ca3c65b0e933098d6a2be13eebaeac9395e7c0461be10c5fcf1e99a7e5e - initial_ast: da81d8fd30bf591686b8991f5f0edda86155bac3d0b5531a336fe90372d82ee1 - unrolled_ast: da81d8fd30bf591686b8991f5f0edda86155bac3d0b5531a336fe90372d82ee1 - ssa_ast: 1d1b56f3e69520219eaeda8d96977a64f915ba554e721c5f6cc89ff71a170546 diff --git a/tests/expectations/compiler/scalar/scalar.out b/tests/expectations/compiler/scalar/scalar.out deleted file mode 100644 index 02171ad813..0000000000 --- a/tests/expectations/compiler/scalar/scalar.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 28228b87fcb43040ca2c4a6c9e6539642323a9f64d837a6de7f579b17ceb1da4 - initial_ast: e11179e20be602466a0d59025b95a169b431b190d4cc6cb2bc80287e7429bf9b - unrolled_ast: e11179e20be602466a0d59025b95a169b431b190d4cc6cb2bc80287e7429bf9b - ssa_ast: f7f43114a0adce0fb246b06465b583cab83745fa54f09a2264d3dcfbd803ac51 diff --git a/tests/expectations/compiler/scalar/square_root_fail.out b/tests/expectations/compiler/scalar/square_root_fail.out deleted file mode 100644 index 2b07fcd602..0000000000 --- a/tests/expectations/compiler/scalar/square_root_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372007]: Expected one type from `field`, but got `scalar`\n --> compiler-test:4:12\n |\n 4 | return a.square_root(); // square root not supported for scalar types.\n | ^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/scalar/ternary.out b/tests/expectations/compiler/scalar/ternary.out deleted file mode 100644 index 918e1fca2c..0000000000 --- a/tests/expectations/compiler/scalar/ternary.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: fbb9f33bc5cf7fd11341e6dc1d12d4899274f3bee34dd64590ffd3c9438a61a5 - initial_ast: fbc9f38d923601aa2e14979cb36a6f6a4d41feea94a4cf381c2bf14060c3e457 - unrolled_ast: fbc9f38d923601aa2e14979cb36a6f6a4d41feea94a4cf381c2bf14060c3e457 - ssa_ast: 8faf6baa2ff1cb8b7e20bbec6022306ca75ddd034644715c3402fa9f002acb56 diff --git a/tests/expectations/compiler/statements/all_loops_fail.out b/tests/expectations/compiler/statements/all_loops_fail.out deleted file mode 100644 index b6979435ee..0000000000 --- a/tests/expectations/compiler/statements/all_loops_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> compiler-test:15:26\n |\n 15 | for a: u32 in 10u32..=0u32 {\n | ^" diff --git a/tests/expectations/compiler/statements/assign.out b/tests/expectations/compiler/statements/assign.out deleted file mode 100644 index f9bf5770d0..0000000000 --- a/tests/expectations/compiler/statements/assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 9f519c84609aa8fc9c90d398fdb30fe75df106dc0347ab1e3d7e947b2ab1b724 - initial_ast: 90d7b657319b7b4c7151826d74e891f1c2e9722ea96527002a5b541a8bf33107 - unrolled_ast: 90d7b657319b7b4c7151826d74e891f1c2e9722ea96527002a5b541a8bf33107 - ssa_ast: 2fd1f68ae99ae9600f3eacc41f11613c3b803ca38ff2ff5256bef5ebad59b5e6 diff --git a/tests/expectations/compiler/statements/assign_fail.out b/tests/expectations/compiler/statements/assign_fail.out deleted file mode 100644 index 8fc47c7d45..0000000000 --- a/tests/expectations/compiler/statements/assign_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `🦀`.\n" diff --git a/tests/expectations/compiler/statements/assign_ternary.out b/tests/expectations/compiler/statements/assign_ternary.out deleted file mode 100644 index efdfd7f46d..0000000000 --- a/tests/expectations/compiler/statements/assign_ternary.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:23\n |\n 3 | function main(x: u32) {\n | ^" diff --git a/tests/expectations/compiler/statements/block.out b/tests/expectations/compiler/statements/block.out deleted file mode 100644 index a9c64e14cc..0000000000 --- a/tests/expectations/compiler/statements/block.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3e1c7ad7391827e106457839413bf85010988ea959e65aa886551b0c6917b25e - initial_ast: cbffad01dfba4f4a7edc9d3dd648dcc579b3c35643b94a39136e1461cd22cc73 - unrolled_ast: cbffad01dfba4f4a7edc9d3dd648dcc579b3c35643b94a39136e1461cd22cc73 - ssa_ast: ee2532244bd5d690146aa195724462fce2f1fca9f47cd8b90465330e7297b468 diff --git a/tests/expectations/compiler/statements/chain.out b/tests/expectations/compiler/statements/chain.out deleted file mode 100644 index 0cb1483da6..0000000000 --- a/tests/expectations/compiler/statements/chain.out +++ /dev/null @@ -1,11 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 099858521f685395ad30dc798ca7edc52a2d681044e86766d3df5fbc5284f6a0 - - initial_input_ast: a35737f164b8311e127ba8a4d6313c1195b66de26e2800ad95397d795ae006b0 - - initial_input_ast: d264a0cababb36d4cc7304beff80ed0a42fe626b9002adacbe594af847a1f47d - initial_ast: 2e9922d1559751ce17eb9484f297ad8196d3516c7904bf3a167d5f9810533f30 - unrolled_ast: 2e9922d1559751ce17eb9484f297ad8196d3516c7904bf3a167d5f9810533f30 - ssa_ast: 2b1904cf6e5e88ab7573141c2e31e8b9998d4024f6a0ebe3229aec61c67e3cfb diff --git a/tests/expectations/compiler/statements/compare_diff_types_fail.out b/tests/expectations/compiler/statements/compare_diff_types_fail.out deleted file mode 100644 index b953fdbe50..0000000000 --- a/tests/expectations/compiler/statements/compare_diff_types_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:4:19\n |\n 4 | let b: bool = a == 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:5:19\n |\n 5 | let c: bool = a != 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:6:19\n |\n 6 | let d: bool = a > 1u8;\n | ^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:7:19\n |\n 7 | let e: bool = a < 1u8;\n | ^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:8:19\n |\n 8 | let f: bool = a >= 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:9:19\n |\n 9 | let g: bool = a <= 1u8;\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/compare_invalid_negates_fail.out b/tests/expectations/compiler/statements/compare_invalid_negates_fail.out deleted file mode 100644 index 8e9bc6ec7b..0000000000 --- a/tests/expectations/compiler/statements/compare_invalid_negates_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:4:20\n |\n 4 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:4:26\n |\n 4 | let b: bool = -a == -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:20\n |\n 5 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:25\n |\n 5 | let c: bool = -a > -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:20\n |\n 6 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:25\n |\n 6 | let d: bool = -a < -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:20\n |\n 7 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:26\n |\n 7 | let e: bool = -a >= -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:20\n |\n 8 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:26\n |\n 8 | let f: bool = -a <= -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:18\n |\n 9 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:23\n |\n 9 | let g: u8 = -a * -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:18\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:24\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^^^\n" diff --git a/tests/expectations/compiler/statements/duplicate_variable.out b/tests/expectations/compiler/statements/duplicate_variable.out deleted file mode 100644 index 3ce46d4586..0000000000 --- a/tests/expectations/compiler/statements/duplicate_variable.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EAST0372011]: variable `x` shadowed by\n --> compiler-test:5:4\n |\n 5 | \tlet x: bool = true;\n | ^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/iteration_basic.out b/tests/expectations/compiler/statements/iteration_basic.out deleted file mode 100644 index 116a91774b..0000000000 --- a/tests/expectations/compiler/statements/iteration_basic.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 2536e33f2d79d2aef1e1dcc6d2c731605f22086a5d1c7f4a364383fb15b89b97 - initial_ast: 1103461b81a0a8e24c65d27a0f569715946dbb424dd1c6b5a2c41beb4bb96230 - unrolled_ast: 2a9e2923379ca24b043afe465cdae88dd5ef28f255149f57cd5302042ea629a2 - ssa_ast: b1e4fe312f740181b4a7155f3d482119364d00dc103daface4e131211fc0cae5 diff --git a/tests/expectations/compiler/statements/iteration_nested.out b/tests/expectations/compiler/statements/iteration_nested.out deleted file mode 100644 index 4bb073c132..0000000000 --- a/tests/expectations/compiler/statements/iteration_nested.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: e8caaaa48fd4ca19b2d31da65831711c477323db6fb477cbe2e1abcd9182e0e9 - initial_ast: b540a2430fa67d651a52d46ca96aa981c9ae7670a2524f9bc830435a5117b171 - unrolled_ast: d024c73e29934c57ddd22dafcde4100e773491e462b190fdd943fc64ec709d1d - ssa_ast: 7db305c51ad2b3c03f1d69dca9c2bbc16bccff7e011dc23fa8bd7a1b0613a22d diff --git a/tests/expectations/compiler/statements/loop_returns_fail.out b/tests/expectations/compiler/statements/loop_returns_fail.out deleted file mode 100644 index 107026a0dd..0000000000 --- a/tests/expectations/compiler/statements/loop_returns_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372027]: Loop body contains a return statement or always returns.\n --> compiler-test:5:5\n |\n 5 | for i: u32 in 0u32..9u32 {\n 6 | return false;\n 7 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\nError [ETYC0372027]: Loop body contains a return statement or always returns.\n --> compiler-test:9:5\n |\n 9 | for i: u32 in 0u32..9u32 {\n 10 | if (x == 0u32) {\n 11 | return false;\n 12 | } else {\n 13 | return true;\n 14 | }\n 15 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\n" diff --git a/tests/expectations/compiler/statements/multiple_returns.out b/tests/expectations/compiler/statements/multiple_returns.out deleted file mode 100644 index 0d3f80ab8c..0000000000 --- a/tests/expectations/compiler/statements/multiple_returns.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 3e1c7ad7391827e106457839413bf85010988ea959e65aa886551b0c6917b25e - - initial_input_ast: 05aec88bcd0cad7448814728a983f3ff8cb52f9dc5f9bd464e130f18c4ae1033 - initial_ast: 72f2d64a55e6db776ee3af263fe200d8dd806e4f20e27696012e49f6987a8609 - unrolled_ast: 72f2d64a55e6db776ee3af263fe200d8dd806e4f20e27696012e49f6987a8609 - ssa_ast: 567f9e9a2688896cad548bec48b0d91b6418d7a1857f1b33ea8dfdafecfabb4b diff --git a/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out b/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out deleted file mode 100644 index c01018211a..0000000000 --- a/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372026]: Cannot reach the following statement.\n --> compiler-test:5:5\n |\n 5 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372026]: Cannot reach the following statement.\n --> compiler-test:6:5\n |\n 6 | return double;\n | ^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\n" diff --git a/tests/expectations/compiler/statements/mutate.out b/tests/expectations/compiler/statements/mutate.out deleted file mode 100644 index 1d31714ac5..0000000000 --- a/tests/expectations/compiler/statements/mutate.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 39f57bd6523db083837653e04356cc4b201e93e887dc11d89a1a51029e92236a - - initial_input_ast: 965f2de6d6d4b0d3b2bf32e29ca196835aec7ca5803f9c6a33b8987185a5c233 - initial_ast: 97eb6d68a9c10827d6420dc9013f0c391291bfb52df42439f9fb9fa30abb6a93 - unrolled_ast: 97eb6d68a9c10827d6420dc9013f0c391291bfb52df42439f9fb9fa30abb6a93 - ssa_ast: b7e0a3b368e4566a568fd1cc79b9d071ea529980f8464dbc707adf2e80b92045 diff --git a/tests/expectations/compiler/statements/non_existant_var_exp_fail.out b/tests/expectations/compiler/statements/non_existant_var_exp_fail.out deleted file mode 100644 index 36dbbd6b9e..0000000000 --- a/tests/expectations/compiler/statements/non_existant_var_exp_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372005]: Unknown variable `z`\n --> compiler-test:4:19\n |\n 4 | \tlet b: u8 = 1u8**z;\n | ^\n" diff --git a/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out b/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out deleted file mode 100644 index d0fa22eb14..0000000000 --- a/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372005]: Unknown variable `x`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372005]: Unknown variable `z`\n --> compiler-test:4:16\n |\n 4 | \tlet b: u8 = x*z;\n | ^\n" diff --git a/tests/expectations/compiler/statements/operations/add_assign.out b/tests/expectations/compiler/statements/operations/add_assign.out deleted file mode 100644 index 3885483814..0000000000 --- a/tests/expectations/compiler/statements/operations/add_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 3271404de78a08cd43d615d8bb2db1bd566fef9854e1cdb4b4d461654115d2fd - unrolled_ast: 3271404de78a08cd43d615d8bb2db1bd566fef9854e1cdb4b4d461654115d2fd - ssa_ast: 90e8c25568ba62bf8f996fc7f687739f1f0c4cf3849fc7f7064d4029eec06c67 diff --git a/tests/expectations/compiler/statements/operations/and_assign.out b/tests/expectations/compiler/statements/operations/and_assign.out deleted file mode 100644 index 7e289cf9a1..0000000000 --- a/tests/expectations/compiler/statements/operations/and_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: bfc400b64c2c1ca71fd2f582f3309751a641f801abb9537046956daba1f1e60c - unrolled_ast: bfc400b64c2c1ca71fd2f582f3309751a641f801abb9537046956daba1f1e60c - ssa_ast: c545e4db9d0c87f1357844140613f65afe9a8ebe8e47e840731a1e09844af107 diff --git a/tests/expectations/compiler/statements/operations/bitand_assign.out b/tests/expectations/compiler/statements/operations/bitand_assign.out deleted file mode 100644 index 74ca2366c8..0000000000 --- a/tests/expectations/compiler/statements/operations/bitand_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 9bc893442192331571b46f148d3ff458f176b195aca954dc5ad2a09e580b3ce5 - unrolled_ast: 9bc893442192331571b46f148d3ff458f176b195aca954dc5ad2a09e580b3ce5 - ssa_ast: ffd8093439d1dffd761fcc544d09832cd248af655b2b929213d57c3a4b6f96d6 diff --git a/tests/expectations/compiler/statements/operations/bitor_assign.out b/tests/expectations/compiler/statements/operations/bitor_assign.out deleted file mode 100644 index 443fc0d646..0000000000 --- a/tests/expectations/compiler/statements/operations/bitor_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 9a3505edc4d86daf80f435407ce8a39bcf54731e231a98ecba5a32a24eaafc08 - unrolled_ast: 9a3505edc4d86daf80f435407ce8a39bcf54731e231a98ecba5a32a24eaafc08 - ssa_ast: af1ef0156d2e938ceba949f5b84b5df89fdf281fe7a8ac0b485db49b183f0b3d diff --git a/tests/expectations/compiler/statements/operations/bitxor_assign.out b/tests/expectations/compiler/statements/operations/bitxor_assign.out deleted file mode 100644 index f95208f3fe..0000000000 --- a/tests/expectations/compiler/statements/operations/bitxor_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 56b18c60bc6a6ed6cc4861fb42dfc722782b430f6c446cd042431af634da963e - unrolled_ast: 56b18c60bc6a6ed6cc4861fb42dfc722782b430f6c446cd042431af634da963e - ssa_ast: 46a1c1943f296b04bccf760a86fa95d2917f04b9e37f0263df9b5824b694b96b diff --git a/tests/expectations/compiler/statements/operations/div_assign.out b/tests/expectations/compiler/statements/operations/div_assign.out deleted file mode 100644 index 6c03cdbb3a..0000000000 --- a/tests/expectations/compiler/statements/operations/div_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 97ede6d822c5431f5d060656d6370d2a744cf083fd96945553f9753a03b36b27 - unrolled_ast: 97ede6d822c5431f5d060656d6370d2a744cf083fd96945553f9753a03b36b27 - ssa_ast: ec4c4e7c1bea4fd088abe8e006da47eb501c631261205bc88c2e5186c08c3604 diff --git a/tests/expectations/compiler/statements/operations/mul_assign.out b/tests/expectations/compiler/statements/operations/mul_assign.out deleted file mode 100644 index e9b899f3c4..0000000000 --- a/tests/expectations/compiler/statements/operations/mul_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: bafb8f3b713bb362f69e050adb18684bc5cec6472b2b5d8252a7537c933ed234 - unrolled_ast: bafb8f3b713bb362f69e050adb18684bc5cec6472b2b5d8252a7537c933ed234 - ssa_ast: 0053ca3c00cf642fe3e13016f78fffe15362467242713a95311a2d1996867a6a diff --git a/tests/expectations/compiler/statements/operations/or_assign.out b/tests/expectations/compiler/statements/operations/or_assign.out deleted file mode 100644 index 8c983424e2..0000000000 --- a/tests/expectations/compiler/statements/operations/or_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: f8c328e4c411ce92c540040ff7459e1d25340cc4e98b5df318622d293ad25ccd - unrolled_ast: f8c328e4c411ce92c540040ff7459e1d25340cc4e98b5df318622d293ad25ccd - ssa_ast: 3e30c185fbcfd0e05a3da8fb90a91b0d65cff679fda4c9e96376609b867530f4 diff --git a/tests/expectations/compiler/statements/operations/pow_assign.out b/tests/expectations/compiler/statements/operations/pow_assign.out deleted file mode 100644 index ac7ca84c5c..0000000000 --- a/tests/expectations/compiler/statements/operations/pow_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 690eb113c9b66167171cffb9de6ef2f1c8281250252c5933c8ef1c58c437b701 - unrolled_ast: 690eb113c9b66167171cffb9de6ef2f1c8281250252c5933c8ef1c58c437b701 - ssa_ast: 5b4c0f3e090d31ae8456c7ab9cf71d4024ec2c86527cc387b25804f8f506005d diff --git a/tests/expectations/compiler/statements/operations/shl_assign.out b/tests/expectations/compiler/statements/operations/shl_assign.out deleted file mode 100644 index 5c7e07cd18..0000000000 --- a/tests/expectations/compiler/statements/operations/shl_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: f4137239ab0c3334882a6ebed513bf96e8045dc5def25b9ebb4f9e1566a3e4e9 - unrolled_ast: f4137239ab0c3334882a6ebed513bf96e8045dc5def25b9ebb4f9e1566a3e4e9 - ssa_ast: e701076b03cd05300c8e38bc91734907d7a7179f2cc8cb2335a5c4ca4c55cce9 diff --git a/tests/expectations/compiler/statements/operations/shr_assign.out b/tests/expectations/compiler/statements/operations/shr_assign.out deleted file mode 100644 index 9b70de62cf..0000000000 --- a/tests/expectations/compiler/statements/operations/shr_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: f33336f4949a9829f5d6a53033fe159ddc4d4953bcbf3386429e93ffff1b03bb - unrolled_ast: f33336f4949a9829f5d6a53033fe159ddc4d4953bcbf3386429e93ffff1b03bb - ssa_ast: 2deb559e2052ec78dba98c46d67f952f748167c6a9dff8f75ecb309802d83f91 diff --git a/tests/expectations/compiler/statements/operations/sub_assign.out b/tests/expectations/compiler/statements/operations/sub_assign.out deleted file mode 100644 index ef2487ab7b..0000000000 --- a/tests/expectations/compiler/statements/operations/sub_assign.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: no input - initial_ast: 5b00661c154de835d472bf2b27116e1d556771dc960683f83b6fc40c9978a988 - unrolled_ast: 5b00661c154de835d472bf2b27116e1d556771dc960683f83b6fc40c9978a988 - ssa_ast: a83af44e560da899fc089bbac0afbd7e1a3c7b01c77b96c22c6f2ba0df599a80 diff --git a/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out b/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out deleted file mode 100644 index 2ec0ef8cb7..0000000000 --- a/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372026]: Cannot reach the following statement.\n --> compiler-test:9:5\n |\n 9 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372026]: Cannot reach the following statement.\n --> compiler-test:10:5\n |\n 10 | return double;\n | ^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\n" diff --git a/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out deleted file mode 100644 index dcc2b40e10..0000000000 --- a/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: fb744c11bbf167bd99bd67ad37031466e9292e06da1c2ea21142c3a03f7c3790 - initial_ast: 9cb9c5e2c30cdac7dc27c26425dbb854ef9d33624c9097d531f3cd64caf4fe9c - unrolled_ast: 9cb9c5e2c30cdac7dc27c26425dbb854ef9d33624c9097d531f3cd64caf4fe9c - ssa_ast: c8787619b460330a7e09876da27593d2aa5ddfff595043416530dd75a505c512 diff --git a/tests/expectations/compiler/tuple/access_negative_fail.out b/tests/expectations/compiler/tuple/access_negative_fail.out deleted file mode 100644 index 021a7db830..0000000000 --- a/tests/expectations/compiler/tuple/access_negative_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '-'\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.-1); // Index `t.-1` is invalid.\n | ^" diff --git a/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out b/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out deleted file mode 100644 index c2bfd8e51c..0000000000 --- a/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372024]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372014]: t.2 is not a valid core circuit call.\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\n" diff --git a/tests/expectations/compiler/tuple/declare_fail.out b/tests/expectations/compiler/tuple/declare_fail.out deleted file mode 100644 index 05ba398d7a..0000000000 --- a/tests/expectations/compiler/tuple/declare_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:4:31\n |\n 4 | let t: (bool, bool) = (a, 1u64); // We should be declaring to a boolean, not a u64.\n | ^^^^\n" diff --git a/tests/expectations/compiler/tuple/function_return.out b/tests/expectations/compiler/tuple/function_return.out deleted file mode 100644 index 209545b2ac..0000000000 --- a/tests/expectations/compiler/tuple/function_return.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: Compile -expectation: Pass -outputs: - - output: - - initial_input_ast: 33396f24215dd7889c98d8afbc693a0bd262e255406816a21ba3e6e60d4cff2b - initial_ast: ec5ade5f68105536a98b43650808b666cf4576044a31efa25773e5396d39a91c - unrolled_ast: ec5ade5f68105536a98b43650808b666cf4576044a31efa25773e5396d39a91c - ssa_ast: 6346f85478670c0042a66fc1ae772103a6ca4a29ee654af028659dbba90abe59 diff --git a/tests/expectations/compiler/tuple/function_return_single_fail.out b/tests/expectations/compiler/tuple/function_return_single_fail.out deleted file mode 100644 index d7377f0932..0000000000 --- a/tests/expectations/compiler/tuple/function_return_single_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EAST0372007]: Tuples of one element are not allowed.\n --> compiler-test:3:36\n |\n 3 | function main(a: bool, b: bool) -> (bool) {\n | ^^^^^^\n |\n = Try defining a single type by removing the parenthesis `( )`" diff --git a/tests/expectations/compiler/tuple/function_return_zero_fail.out b/tests/expectations/compiler/tuple/function_return_zero_fail.out deleted file mode 100644 index fb9976ed79..0000000000 --- a/tests/expectations/compiler/tuple/function_return_zero_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [EAST0372006]: Tuples of zero elements are not allowed.\n --> compiler-test:3:36\n |\n 3 | function main(a: bool, b: bool) -> () {\n | ^^" diff --git a/tests/expectations/compiler/tuple/return_statement_fail.out b/tests/expectations/compiler/tuple/return_statement_fail.out deleted file mode 100644 index f3c49b4356..0000000000 --- a/tests/expectations/compiler/tuple/return_statement_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372003]: Expected type `u64` but type `boolean` was found\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.1); // The second element should be type u64 as in the function declaration.\n | ^\n" diff --git a/tests/expectations/compiler/tuple/tuple_not_allowed.out b/tests/expectations/compiler/tuple/tuple_not_allowed.out deleted file mode 100644 index 01a1909214..0000000000 --- a/tests/expectations/compiler/tuple/tuple_not_allowed.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:7:14\n |\n 7 | function foo(a: (u8, u16)) -> (u8, u16) {\n | ^\nError [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:11:1\n |\n 11 | function bar() -> (u8, (u16, u32)) {\n 12 | return (1u8, (2u16, 3u32));\n 13 | }\n | ^\nError [ETYC0372007]: Expected one type from `i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `(u8,u16)`\n --> compiler-test:16:9\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:16:25\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:16:30\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:21:5\n |\n 21 | mem: (u8, u16)\n | ^^^\n" diff --git a/tests/expectations/compiler/tuple/type_fail.out b/tests/expectations/compiler/tuple/type_fail.out deleted file mode 100644 index 4bc3711ad1..0000000000 --- a/tests/expectations/compiler/tuple/type_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Compile -expectation: Fail -outputs: - - "Error [ETYC0372003]: Expected type `u64` but type `boolean` was found\n --> compiler-test:3:24\n |\n 3 | function main(a: bool, b: bool) -> (bool, bool) {\n | ^\nError [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.1);\n | ^\n" diff --git a/tests/expectations/parser/expression/access/call.out b/tests/expectations/parser/expression/access/call.out deleted file mode 100644 index b01f617737..0000000000 --- a/tests/expectations/parser/expression/access/call.out +++ /dev/null @@ -1,45 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - arguments: [] - span: - lo: 0 - hi: 3 - - Call: - function: - Identifier: "{\"name\":\"X\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - arguments: [] - span: - lo: 0 - hi: 3 - - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - arguments: - - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - span: - lo: 0 - hi: 4 - - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - arguments: - - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 7 - - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - arguments: - - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - span: - lo: 0 - hi: 10 diff --git a/tests/expectations/parser/expression/array_init_fail.out b/tests/expectations/parser/expression/array_init_fail.out deleted file mode 100644 index 66c99b3d13..0000000000 --- a/tests/expectations/parser/expression/array_init_fail.out +++ /dev/null @@ -1,8 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [...0u8; 1]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [...0; 1]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [0; ()]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [0; (1)]\n | ^" diff --git a/tests/expectations/parser/expression/array_inline_fail.out b/tests/expectations/parser/expression/array_inline_fail.out deleted file mode 100644 index 3b19a17abe..0000000000 --- a/tests/expectations/parser/expression/array_inline_fail.out +++ /dev/null @@ -1,9 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [,]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [,,]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [0,,]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [,0]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [,0,]\n | ^" diff --git a/tests/expectations/parser/expression/binary/add.out b/tests/expectations/parser/expression/binary/add.out deleted file mode 100644 index 26f43b48e4..0000000000 --- a/tests/expectations/parser/expression/binary/add.out +++ /dev/null @@ -1,461 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 4 - hi: 7 - op: Add - span: - lo: 0 - hi: 7 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: Add - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Mul - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - right: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - op: Mul - span: - lo: 12 - hi: 21 - op: Add - span: - lo: 0 - hi: 21 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: Sub - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Mul - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - right: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - op: Mul - span: - lo: 12 - hi: 21 - op: Add - span: - lo: 0 - hi: 21 - right: - Binary: - left: - Literal: - U8: - - "5" - - span: - lo: 24 - hi: 27 - right: - Literal: - U8: - - "6" - - span: - lo: 30 - hi: 33 - op: Mul - span: - lo: 24 - hi: 33 - op: Sub - span: - lo: 0 - hi: 33 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Add - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Add - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Add - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Add - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Add - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Add - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Add - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Add - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Add - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Add - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Add - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Add - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Add - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Add - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Add - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: Add - span: - lo: 12 - hi: 20 - op: Add - span: - lo: 1 - hi: 20 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: Add - span: - lo: 26 - hi: 34 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" - op: Add - span: - lo: 37 - hi: 45 - op: Add - span: - lo: 26 - hi: 45 - op: Add - span: - lo: 1 - hi: 46 diff --git a/tests/expectations/parser/expression/binary/add_wrapped.out b/tests/expectations/parser/expression/binary/add_wrapped.out deleted file mode 100644 index c5c7cb64ba..0000000000 --- a/tests/expectations/parser/expression/binary/add_wrapped.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: AddWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: AddWrapped - span: - lo: 0 - hi: 16 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" - op: AddWrapped - span: - lo: 0 - hi: 31 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" - op: AddWrapped - span: - lo: 0 - hi: 46 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: AddWrapped - span: - lo: 1 - hi: 17 - op: Negate - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: AddWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: AddWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: AddWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: AddWrapped - span: - lo: 1 - hi: 34 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: AddWrapped - span: - lo: 1 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: AddWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: AddWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: AddWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: AddWrapped - span: - lo: 1 - hi: 34 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: AddWrapped - span: - lo: 1 - hi: 17 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":34,\\\"hi\\\":35}\"}" - op: AddWrapped - span: - lo: 20 - hi: 36 - op: Add - span: - lo: 1 - hi: 36 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":50,\\\"hi\\\":51}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":64,\\\"hi\\\":65}\"}" - op: AddWrapped - span: - lo: 50 - hi: 66 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":69,\\\"hi\\\":70}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":83,\\\"hi\\\":84}\"}" - op: AddWrapped - span: - lo: 69 - hi: 85 - op: Add - span: - lo: 50 - hi: 85 - op: AddWrapped - span: - lo: 1 - hi: 86 diff --git a/tests/expectations/parser/expression/binary/and.out b/tests/expectations/parser/expression/binary/and.out deleted file mode 100644 index 80c098ae8b..0000000000 --- a/tests/expectations/parser/expression/binary/and.out +++ /dev/null @@ -1,313 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - Boolean: - - true - - span: - lo: 0 - hi: 4 - right: - Literal: - Boolean: - - false - - span: - lo: 8 - hi: 13 - op: And - span: - lo: 0 - hi: 13 - - Binary: - left: - Literal: - Boolean: - - false - - span: - lo: 0 - hi: 5 - right: - Literal: - Boolean: - - true - - span: - lo: 7 - hi: 11 - op: And - span: - lo: 0 - hi: 11 - - Binary: - left: - Binary: - left: - Literal: - Boolean: - - true - - span: - lo: 0 - hi: 4 - right: - Literal: - Boolean: - - false - - span: - lo: 6 - hi: 11 - op: And - span: - lo: 0 - hi: 11 - right: - Literal: - Boolean: - - true - - span: - lo: 13 - hi: 17 - op: And - span: - lo: 0 - hi: 17 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: BitwiseAnd - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: BitwiseAnd - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: BitwiseAnd - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: BitwiseAnd - span: - lo: 12 - hi: 20 - op: Add - span: - lo: 1 - hi: 20 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: BitwiseAnd - span: - lo: 26 - hi: 34 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" - op: BitwiseAnd - span: - lo: 37 - hi: 45 - op: Add - span: - lo: 26 - hi: 45 - op: BitwiseAnd - span: - lo: 1 - hi: 46 diff --git a/tests/expectations/parser/expression/binary/bit_and.out b/tests/expectations/parser/expression/binary/bit_and.out deleted file mode 100644 index 365c867eb1..0000000000 --- a/tests/expectations/parser/expression/binary/bit_and.out +++ /dev/null @@ -1,461 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: BitwiseAnd - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 4 - hi: 7 - op: BitwiseAnd - span: - lo: 0 - hi: 7 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: BitwiseAnd - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: BitwiseAnd - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: BitwiseAnd - span: - lo: 6 - hi: 15 - op: BitwiseOr - span: - lo: 0 - hi: 15 - right: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - op: BitwiseOr - span: - lo: 0 - hi: 21 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: BitwiseAnd - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: BitwiseAnd - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: BitwiseAnd - span: - lo: 6 - hi: 15 - op: BitwiseOr - span: - lo: 0 - hi: 15 - right: - Binary: - left: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - right: - Literal: - U8: - - "5" - - span: - lo: 24 - hi: 27 - op: BitwiseAnd - span: - lo: 18 - hi: 27 - op: BitwiseOr - span: - lo: 0 - hi: 27 - right: - Literal: - U8: - - "6" - - span: - lo: 30 - hi: 33 - op: BitwiseOr - span: - lo: 0 - hi: 33 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: BitwiseAnd - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: BitwiseAnd - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: BitwiseAnd - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseAnd - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseAnd - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: BitwiseAnd - span: - lo: 12 - hi: 20 - op: BitwiseAnd - span: - lo: 1 - hi: 20 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: BitwiseAnd - span: - lo: 26 - hi: 34 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" - op: BitwiseAnd - span: - lo: 37 - hi: 45 - op: BitwiseAnd - span: - lo: 26 - hi: 45 - op: BitwiseAnd - span: - lo: 1 - hi: 46 diff --git a/tests/expectations/parser/expression/binary/bit_or.out b/tests/expectations/parser/expression/binary/bit_or.out deleted file mode 100644 index a2e14d0a9a..0000000000 --- a/tests/expectations/parser/expression/binary/bit_or.out +++ /dev/null @@ -1,461 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: BitwiseOr - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 4 - hi: 7 - op: BitwiseOr - span: - lo: 0 - hi: 7 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: BitwiseOr - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: BitwiseOr - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: BitwiseOr - span: - lo: 6 - hi: 15 - op: Xor - span: - lo: 0 - hi: 15 - right: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - op: Xor - span: - lo: 0 - hi: 21 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: BitwiseOr - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: BitwiseOr - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: BitwiseOr - span: - lo: 6 - hi: 15 - op: Xor - span: - lo: 0 - hi: 15 - right: - Binary: - left: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - right: - Literal: - U8: - - "5" - - span: - lo: 24 - hi: 27 - op: BitwiseOr - span: - lo: 18 - hi: 27 - op: Xor - span: - lo: 0 - hi: 27 - right: - Literal: - U8: - - "6" - - span: - lo: 30 - hi: 33 - op: Xor - span: - lo: 0 - hi: 33 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseOr - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - op: BitwiseOr - span: - lo: 0 - hi: 7 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - op: BitwiseOr - span: - lo: 0 - hi: 13 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: BitwiseOr - span: - lo: 0 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: BitwiseOr - span: - lo: 1 - hi: 8 - op: Negate - span: - lo: 0 - hi: 8 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseOr - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseOr - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseOr - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: BitwiseOr - span: - lo: 1 - hi: 16 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: BitwiseOr - span: - lo: 1 - hi: 8 - op: Not - span: - lo: 0 - hi: 8 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: BitwiseOr - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseOr - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: BitwiseOr - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 1 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: BitwiseOr - span: - lo: 1 - hi: 16 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: BitwiseOr - span: - lo: 1 - hi: 8 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: BitwiseOr - span: - lo: 11 - hi: 18 - op: BitwiseOr - span: - lo: 1 - hi: 18 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" - op: BitwiseOr - span: - lo: 23 - hi: 30 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" - op: BitwiseOr - span: - lo: 33 - hi: 40 - op: BitwiseOr - span: - lo: 23 - hi: 40 - op: BitwiseOr - span: - lo: 1 - hi: 41 diff --git a/tests/expectations/parser/expression/binary/bit_xor.out b/tests/expectations/parser/expression/binary/bit_xor.out deleted file mode 100644 index 02adbc3561..0000000000 --- a/tests/expectations/parser/expression/binary/bit_xor.out +++ /dev/null @@ -1,461 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: Xor - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 4 - hi: 7 - op: Xor - span: - lo: 0 - hi: 7 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Xor - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: Xor - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: BitwiseAnd - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - right: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - op: BitwiseAnd - span: - lo: 12 - hi: 21 - op: Xor - span: - lo: 0 - hi: 21 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Xor - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: Xor - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: BitwiseAnd - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - right: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - op: BitwiseAnd - span: - lo: 12 - hi: 21 - op: Xor - span: - lo: 0 - hi: 21 - right: - Binary: - left: - Literal: - U8: - - "5" - - span: - lo: 24 - hi: 27 - right: - Literal: - U8: - - "6" - - span: - lo: 30 - hi: 33 - op: BitwiseAnd - span: - lo: 24 - hi: 33 - op: Xor - span: - lo: 0 - hi: 33 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Xor - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Xor - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Xor - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Xor - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Xor - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Xor - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Xor - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Xor - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Xor - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Xor - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Xor - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Xor - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Xor - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Xor - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Xor - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: Xor - span: - lo: 12 - hi: 20 - op: Xor - span: - lo: 1 - hi: 20 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: Xor - span: - lo: 26 - hi: 34 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" - op: Xor - span: - lo: 37 - hi: 45 - op: Xor - span: - lo: 26 - hi: 45 - op: Xor - span: - lo: 1 - hi: 46 diff --git a/tests/expectations/parser/expression/binary/div.out b/tests/expectations/parser/expression/binary/div.out deleted file mode 100644 index 8c6bb1505f..0000000000 --- a/tests/expectations/parser/expression/binary/div.out +++ /dev/null @@ -1,358 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: Div - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 4 - hi: 7 - op: Div - span: - lo: 0 - hi: 7 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Div - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: Div - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 7 - hi: 10 - op: Pow - span: - lo: 0 - hi: 10 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 20 - hi: 23 - op: Pow - span: - lo: 13 - hi: 23 - op: Div - span: - lo: 0 - hi: 23 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Div - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Div - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Div - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Div - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Div - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Div - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Div - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Div - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Div - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Div - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: Div - span: - lo: 12 - hi: 20 - op: Div - span: - lo: 1 - hi: 20 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: Div - span: - lo: 26 - hi: 34 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" - op: Div - span: - lo: 37 - hi: 45 - op: Div - span: - lo: 26 - hi: 45 - op: Div - span: - lo: 1 - hi: 46 diff --git a/tests/expectations/parser/expression/binary/div_wrapped.out b/tests/expectations/parser/expression/binary/div_wrapped.out deleted file mode 100644 index f0c2bdfb82..0000000000 --- a/tests/expectations/parser/expression/binary/div_wrapped.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Div - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Div - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Div - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Div - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Div - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Div - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Div - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Div - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Div - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Div - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Div - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: Div - span: - lo: 12 - hi: 20 - op: Div - span: - lo: 1 - hi: 20 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: Div - span: - lo: 26 - hi: 34 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" - op: Div - span: - lo: 37 - hi: 45 - op: Div - span: - lo: 26 - hi: 45 - op: Div - span: - lo: 1 - hi: 46 diff --git a/tests/expectations/parser/expression/binary/eq.out b/tests/expectations/parser/expression/binary/eq.out deleted file mode 100644 index 473792d084..0000000000 --- a/tests/expectations/parser/expression/binary/eq.out +++ /dev/null @@ -1,423 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 7 - hi: 10 - op: Eq - span: - lo: 0 - hi: 10 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 5 - hi: 8 - op: Eq - span: - lo: 0 - hi: 8 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Lt - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Lt - span: - lo: 13 - hi: 22 - op: Eq - span: - lo: 0 - hi: 22 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Lt - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Lt - span: - lo: 13 - hi: 22 - op: Eq - span: - lo: 0 - hi: 22 - right: - Binary: - left: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 26 - hi: 29 - right: - Literal: - U8: - - "4" - - span: - lo: 32 - hi: 35 - op: Lt - span: - lo: 26 - hi: 35 - right: - Binary: - left: - Literal: - U8: - - "5" - - span: - lo: 39 - hi: 42 - right: - Literal: - U8: - - "6" - - span: - lo: 45 - hi: 48 - op: Lt - span: - lo: 39 - hi: 48 - op: Eq - span: - lo: 26 - hi: 48 - op: And - span: - lo: 0 - hi: 48 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Eq - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - op: Eq - span: - lo: 0 - hi: 7 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - op: Eq - span: - lo: 0 - hi: 13 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Eq - span: - lo: 0 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Eq - span: - lo: 1 - hi: 8 - op: Negate - span: - lo: 0 - hi: 8 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Eq - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Eq - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Eq - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: Eq - span: - lo: 1 - hi: 16 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Eq - span: - lo: 1 - hi: 8 - op: Not - span: - lo: 0 - hi: 8 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Eq - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Eq - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Eq - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 1 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: Eq - span: - lo: 1 - hi: 16 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Eq - span: - lo: 1 - hi: 8 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Eq - span: - lo: 12 - hi: 19 - op: Eq - span: - lo: 1 - hi: 19 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":24,\\\"hi\\\":25}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" - op: Eq - span: - lo: 24 - hi: 31 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":40,\\\"hi\\\":41}\"}" - op: Eq - span: - lo: 35 - hi: 42 - op: Eq - span: - lo: 24 - hi: 42 - op: Eq - span: - lo: 1 - hi: 43 diff --git a/tests/expectations/parser/expression/binary/eq_fail.out b/tests/expectations/parser/expression/binary/eq_fail.out deleted file mode 100644 index d643907ea3..0000000000 --- a/tests/expectations/parser/expression/binary/eq_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370018]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 == 2 == 3\n | ^" diff --git a/tests/expectations/parser/expression/binary/ge.out b/tests/expectations/parser/expression/binary/ge.out deleted file mode 100644 index 86ce9ad764..0000000000 --- a/tests/expectations/parser/expression/binary/ge.out +++ /dev/null @@ -1,326 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 7 - hi: 10 - op: Gte - span: - lo: 0 - hi: 10 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 7 - hi: 10 - op: Gte - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Add - span: - lo: 13 - hi: 22 - op: Gte - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Gte - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Gte - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Gte - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Gte - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Gte - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Gte - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Gte - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Gte - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Gte - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Gte - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Gte - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Gte - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Gte - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Gte - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Gte - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - op: Gte - span: - lo: 13 - hi: 21 - op: Gte - span: - lo: 1 - hi: 21 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - op: Gte - span: - lo: 27 - hi: 35 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - op: Gte - span: - lo: 39 - hi: 47 - op: Gte - span: - lo: 27 - hi: 47 - op: Gte - span: - lo: 1 - hi: 48 diff --git a/tests/expectations/parser/expression/binary/ge_fail.out b/tests/expectations/parser/expression/binary/ge_fail.out deleted file mode 100644 index cb0658f61b..0000000000 --- a/tests/expectations/parser/expression/binary/ge_fail.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "did not consume all input: '>=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" - - "did not consume all input: '>=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" - - "did not consume all input: '>=' @ 1:24-26\n'5' @ 1:27-28\n'u8' @ 1:28-30\n'+' @ 1:31-32\n'6' @ 1:33-34\n'u8' @ 1:34-36\n" diff --git a/tests/expectations/parser/expression/binary/gt.out b/tests/expectations/parser/expression/binary/gt.out deleted file mode 100644 index 6cb8177cd9..0000000000 --- a/tests/expectations/parser/expression/binary/gt.out +++ /dev/null @@ -1,326 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: Gt - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 4 - hi: 7 - op: Gt - span: - lo: 0 - hi: 7 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - right: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - op: Add - span: - lo: 12 - hi: 21 - op: Gt - span: - lo: 0 - hi: 21 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Gt - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - op: Gt - span: - lo: 0 - hi: 7 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - op: Gt - span: - lo: 0 - hi: 13 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Gt - span: - lo: 0 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Gt - span: - lo: 1 - hi: 8 - op: Negate - span: - lo: 0 - hi: 8 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Gt - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Gt - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Gt - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: Gt - span: - lo: 1 - hi: 16 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Gt - span: - lo: 1 - hi: 8 - op: Not - span: - lo: 0 - hi: 8 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Gt - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Gt - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Gt - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 1 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: Gt - span: - lo: 1 - hi: 16 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Gt - span: - lo: 1 - hi: 8 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Gt - span: - lo: 11 - hi: 18 - op: Gt - span: - lo: 1 - hi: 18 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" - op: Gt - span: - lo: 23 - hi: 30 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" - op: Gt - span: - lo: 33 - hi: 40 - op: Gt - span: - lo: 23 - hi: 40 - op: Gt - span: - lo: 1 - hi: 41 diff --git a/tests/expectations/parser/expression/binary/gt_fail.out b/tests/expectations/parser/expression/binary/gt_fail.out deleted file mode 100644 index 87fca2dd48..0000000000 --- a/tests/expectations/parser/expression/binary/gt_fail.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "did not consume all input: '>' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" - - "did not consume all input: '>' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" - - "did not consume all input: '>' @ 1:23-24\n'5' @ 1:25-26\n'u8' @ 1:26-28\n'+' @ 1:29-30\n'6' @ 1:31-32\n'u8' @ 1:32-34\n" diff --git a/tests/expectations/parser/expression/binary/le.out b/tests/expectations/parser/expression/binary/le.out deleted file mode 100644 index 47f1a1463a..0000000000 --- a/tests/expectations/parser/expression/binary/le.out +++ /dev/null @@ -1,326 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 7 - hi: 10 - op: Lte - span: - lo: 0 - hi: 10 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 7 - hi: 10 - op: Lte - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Add - span: - lo: 13 - hi: 22 - op: Lte - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Lte - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Lte - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Lte - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Lte - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Lte - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Lte - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Lte - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Lte - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Lte - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Lte - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Lte - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Lte - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Lte - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Lte - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Lte - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - op: Lte - span: - lo: 13 - hi: 21 - op: Lte - span: - lo: 1 - hi: 21 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - op: Lte - span: - lo: 27 - hi: 35 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - op: Lte - span: - lo: 39 - hi: 47 - op: Lte - span: - lo: 27 - hi: 47 - op: Lte - span: - lo: 1 - hi: 48 diff --git a/tests/expectations/parser/expression/binary/le_fail.out b/tests/expectations/parser/expression/binary/le_fail.out deleted file mode 100644 index 2f754fbf41..0000000000 --- a/tests/expectations/parser/expression/binary/le_fail.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "did not consume all input: '<=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" - - "did not consume all input: '<=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" - - "did not consume all input: '<=' @ 1:24-26\n'5' @ 1:27-28\n'u8' @ 1:28-30\n'+' @ 1:31-32\n'6' @ 1:33-34\n'u8' @ 1:34-36\n" diff --git a/tests/expectations/parser/expression/binary/lt.out b/tests/expectations/parser/expression/binary/lt.out deleted file mode 100644 index 3a69a75dc0..0000000000 --- a/tests/expectations/parser/expression/binary/lt.out +++ /dev/null @@ -1,326 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: Lt - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 4 - hi: 7 - op: Lt - span: - lo: 0 - hi: 7 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - right: - Literal: - U8: - - "4" - - span: - lo: 18 - hi: 21 - op: Add - span: - lo: 12 - hi: 21 - op: Lt - span: - lo: 0 - hi: 21 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Lt - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - op: Lt - span: - lo: 0 - hi: 7 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - op: Lt - span: - lo: 0 - hi: 13 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Lt - span: - lo: 0 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Lt - span: - lo: 1 - hi: 8 - op: Negate - span: - lo: 0 - hi: 8 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Lt - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Lt - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Lt - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: Lt - span: - lo: 1 - hi: 16 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Lt - span: - lo: 1 - hi: 8 - op: Not - span: - lo: 0 - hi: 8 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Lt - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Lt - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Lt - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 1 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: Lt - span: - lo: 1 - hi: 16 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Lt - span: - lo: 1 - hi: 8 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Lt - span: - lo: 11 - hi: 18 - op: Lt - span: - lo: 1 - hi: 18 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" - op: Lt - span: - lo: 23 - hi: 30 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" - op: Lt - span: - lo: 33 - hi: 40 - op: Lt - span: - lo: 23 - hi: 40 - op: Lt - span: - lo: 1 - hi: 41 diff --git a/tests/expectations/parser/expression/binary/lt_fail.out b/tests/expectations/parser/expression/binary/lt_fail.out deleted file mode 100644 index 76f35f9d39..0000000000 --- a/tests/expectations/parser/expression/binary/lt_fail.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "did not consume all input: '<' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" - - "did not consume all input: '<' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" - - "did not consume all input: '<' @ 1:23-24\n'5' @ 1:25-26\n'u8' @ 1:26-28\n'+' @ 1:29-30\n'6' @ 1:31-32\n'u8' @ 1:32-34\n" diff --git a/tests/expectations/parser/expression/binary/mul.out b/tests/expectations/parser/expression/binary/mul.out deleted file mode 100644 index 836a1bbd94..0000000000 --- a/tests/expectations/parser/expression/binary/mul.out +++ /dev/null @@ -1,429 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: Mul - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 4 - hi: 7 - op: Mul - span: - lo: 0 - hi: 7 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Mul - span: - lo: 0 - hi: 9 - right: - Literal: - U8: - - "3" - - span: - lo: 12 - hi: 15 - op: Mul - span: - lo: 0 - hi: 15 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 7 - hi: 10 - op: Pow - span: - lo: 0 - hi: 10 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 20 - hi: 23 - op: Pow - span: - lo: 13 - hi: 23 - op: Mul - span: - lo: 0 - hi: 23 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 7 - hi: 10 - op: Pow - span: - lo: 0 - hi: 10 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 20 - hi: 23 - op: Pow - span: - lo: 13 - hi: 23 - op: Mul - span: - lo: 0 - hi: 23 - right: - Binary: - left: - Literal: - U8: - - "5" - - span: - lo: 26 - hi: 29 - right: - Literal: - U8: - - "6" - - span: - lo: 33 - hi: 36 - op: Pow - span: - lo: 26 - hi: 36 - op: Div - span: - lo: 0 - hi: 36 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Mul - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Mul - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Mul - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Mul - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Mul - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Mul - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Mul - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Mul - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Mul - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Mul - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Mul - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Mul - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Mul - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Mul - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Mul - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: Mul - span: - lo: 12 - hi: 20 - op: Mul - span: - lo: 1 - hi: 20 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: Mul - span: - lo: 26 - hi: 34 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" - op: Mul - span: - lo: 37 - hi: 45 - op: Mul - span: - lo: 26 - hi: 45 - op: Mul - span: - lo: 1 - hi: 46 diff --git a/tests/expectations/parser/expression/binary/mul_wrapped.out b/tests/expectations/parser/expression/binary/mul_wrapped.out deleted file mode 100644 index e9e0dcb376..0000000000 --- a/tests/expectations/parser/expression/binary/mul_wrapped.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: MulWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: MulWrapped - span: - lo: 0 - hi: 16 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" - op: MulWrapped - span: - lo: 0 - hi: 31 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" - op: MulWrapped - span: - lo: 0 - hi: 46 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: MulWrapped - span: - lo: 1 - hi: 17 - op: Negate - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: MulWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: MulWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: MulWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: MulWrapped - span: - lo: 1 - hi: 34 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: MulWrapped - span: - lo: 1 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: MulWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: MulWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: MulWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: MulWrapped - span: - lo: 1 - hi: 34 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: MulWrapped - span: - lo: 1 - hi: 17 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":34,\\\"hi\\\":35}\"}" - op: MulWrapped - span: - lo: 20 - hi: 36 - op: Mul - span: - lo: 1 - hi: 36 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":50,\\\"hi\\\":51}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":64,\\\"hi\\\":65}\"}" - op: MulWrapped - span: - lo: 50 - hi: 66 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":69,\\\"hi\\\":70}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":83,\\\"hi\\\":84}\"}" - op: MulWrapped - span: - lo: 69 - hi: 85 - op: Mul - span: - lo: 50 - hi: 85 - op: MulWrapped - span: - lo: 1 - hi: 86 diff --git a/tests/expectations/parser/expression/binary/nand.out b/tests/expectations/parser/expression/binary/nand.out deleted file mode 100644 index 4062b297dd..0000000000 --- a/tests/expectations/parser/expression/binary/nand.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Nand - span: - lo: 2 - hi: 11 - op: Negate - span: - lo: 1 - hi: 11 - op: Not - span: - lo: 0 - hi: 11 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Nand - span: - lo: 0 - hi: 9 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: Nand - span: - lo: 0 - hi: 17 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" - op: Nand - span: - lo: 0 - hi: 25 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Nand - span: - lo: 1 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":10,\\\"hi\\\":11}\"}" - op: Nand - span: - lo: 1 - hi: 12 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Nand - span: - lo: 2 - hi: 11 - op: Negate - span: - lo: 0 - hi: 11 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Nand - span: - lo: 2 - hi: 11 - op: Negate - span: - lo: 1 - hi: 11 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: Nand - span: - lo: 1 - hi: 20 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Nand - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":10,\\\"hi\\\":11}\"}" - op: Nand - span: - lo: 1 - hi: 12 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Nand - span: - lo: 2 - hi: 11 - op: Not - span: - lo: 0 - hi: 11 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Nand - span: - lo: 2 - hi: 11 - op: Not - span: - lo: 1 - hi: 11 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - op: Nand - span: - lo: 1 - hi: 20 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Nand - span: - lo: 1 - hi: 10 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Nand - span: - lo: 13 - hi: 22 - op: BitwiseAnd - span: - lo: 1 - hi: 22 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":36,\\\"hi\\\":37}\"}" - op: Nand - span: - lo: 29 - hi: 38 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":41,\\\"hi\\\":42}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":48,\\\"hi\\\":49}\"}" - op: Nand - span: - lo: 41 - hi: 50 - op: BitwiseAnd - span: - lo: 29 - hi: 50 - op: Nand - span: - lo: 1 - hi: 51 diff --git a/tests/expectations/parser/expression/binary/neq.out b/tests/expectations/parser/expression/binary/neq.out deleted file mode 100644 index d47b861603..0000000000 --- a/tests/expectations/parser/expression/binary/neq.out +++ /dev/null @@ -1,423 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 7 - hi: 10 - op: Neq - span: - lo: 0 - hi: 10 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 5 - hi: 8 - op: Neq - span: - lo: 0 - hi: 8 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Lt - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Lt - span: - lo: 13 - hi: 22 - op: Neq - span: - lo: 0 - hi: 22 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Lt - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Lt - span: - lo: 13 - hi: 22 - op: Neq - span: - lo: 0 - hi: 22 - right: - Binary: - left: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 26 - hi: 29 - right: - Literal: - U8: - - "4" - - span: - lo: 32 - hi: 35 - op: Lt - span: - lo: 26 - hi: 35 - right: - Binary: - left: - Literal: - U8: - - "5" - - span: - lo: 39 - hi: 42 - right: - Literal: - U8: - - "6" - - span: - lo: 45 - hi: 48 - op: Lt - span: - lo: 39 - hi: 48 - op: Neq - span: - lo: 26 - hi: 48 - op: Or - span: - lo: 0 - hi: 48 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Neq - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Neq - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Neq - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Neq - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Neq - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Neq - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Neq - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Neq - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Neq - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Neq - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Neq - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Neq - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Neq - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Neq - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Neq - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - op: Neq - span: - lo: 13 - hi: 21 - op: Neq - span: - lo: 1 - hi: 21 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - op: Neq - span: - lo: 27 - hi: 35 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - op: Neq - span: - lo: 39 - hi: 47 - op: Neq - span: - lo: 27 - hi: 47 - op: Neq - span: - lo: 1 - hi: 48 diff --git a/tests/expectations/parser/expression/binary/neq_fail.out b/tests/expectations/parser/expression/binary/neq_fail.out deleted file mode 100644 index 22d8f36f38..0000000000 --- a/tests/expectations/parser/expression/binary/neq_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370018]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^" diff --git a/tests/expectations/parser/expression/binary/nor.out b/tests/expectations/parser/expression/binary/nor.out deleted file mode 100644 index 7523b7b32c..0000000000 --- a/tests/expectations/parser/expression/binary/nor.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Nor - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Nor - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Nor - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Nor - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Nor - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Nor - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Nor - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Nor - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Nor - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Nor - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Nor - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Nor - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Nor - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Nor - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Nor - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - op: Nor - span: - lo: 13 - hi: 21 - op: Neq - span: - lo: 1 - hi: 21 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - op: Nor - span: - lo: 27 - hi: 35 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - op: Nor - span: - lo: 39 - hi: 47 - op: Neq - span: - lo: 27 - hi: 47 - op: Nor - span: - lo: 1 - hi: 48 diff --git a/tests/expectations/parser/expression/binary/or.out b/tests/expectations/parser/expression/binary/or.out deleted file mode 100644 index cfbb0b1aa8..0000000000 --- a/tests/expectations/parser/expression/binary/or.out +++ /dev/null @@ -1,164 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - Boolean: - - true - - span: - lo: 0 - hi: 4 - right: - Literal: - Boolean: - - true - - span: - lo: 8 - hi: 12 - op: Or - span: - lo: 0 - hi: 12 - - Binary: - left: - Literal: - Boolean: - - false - - span: - lo: 0 - hi: 5 - right: - Literal: - Boolean: - - true - - span: - lo: 7 - hi: 11 - op: Or - span: - lo: 0 - hi: 11 - - Binary: - left: - Binary: - left: - Literal: - Boolean: - - true - - span: - lo: 0 - hi: 4 - right: - Literal: - Boolean: - - false - - span: - lo: 6 - hi: 11 - op: Or - span: - lo: 0 - hi: 11 - right: - Literal: - Boolean: - - false - - span: - lo: 15 - hi: 20 - op: Or - span: - lo: 0 - hi: 20 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - Boolean: - - true - - span: - lo: 0 - hi: 4 - right: - Literal: - Boolean: - - false - - span: - lo: 8 - hi: 13 - op: Or - span: - lo: 0 - hi: 13 - right: - Literal: - Boolean: - - true - - span: - lo: 17 - hi: 21 - op: Or - span: - lo: 0 - hi: 21 - right: - Literal: - Boolean: - - false - - span: - lo: 25 - hi: 30 - op: Or - span: - lo: 0 - hi: 30 - - Binary: - left: - Binary: - left: - Literal: - Boolean: - - true - - span: - lo: 0 - hi: 4 - right: - Binary: - left: - Literal: - Boolean: - - true - - span: - lo: 9 - hi: 13 - right: - Literal: - Boolean: - - false - - span: - lo: 17 - hi: 22 - op: Or - span: - lo: 9 - hi: 22 - op: Or - span: - lo: 0 - hi: 22 - right: - Literal: - Boolean: - - true - - span: - lo: 27 - hi: 31 - op: Or - span: - lo: 0 - hi: 31 diff --git a/tests/expectations/parser/expression/binary/pow.out b/tests/expectations/parser/expression/binary/pow.out deleted file mode 100644 index 8cf1975cfc..0000000000 --- a/tests/expectations/parser/expression/binary/pow.out +++ /dev/null @@ -1,313 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 7 - hi: 10 - op: Pow - span: - lo: 0 - hi: 10 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 5 - hi: 8 - op: Pow - span: - lo: 0 - hi: 8 - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 7 - hi: 10 - right: - Literal: - U8: - - "3" - - span: - lo: 14 - hi: 17 - op: Pow - span: - lo: 7 - hi: 17 - op: Pow - span: - lo: 0 - hi: 17 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Pow - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Pow - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Pow - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Pow - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Pow - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Pow - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Pow - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Pow - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Pow - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Pow - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Pow - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Pow - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Pow - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Pow - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Pow - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - op: Pow - span: - lo: 13 - hi: 21 - op: Pow - span: - lo: 1 - hi: 21 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - op: Pow - span: - lo: 27 - hi: 35 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - op: Pow - span: - lo: 39 - hi: 47 - op: Pow - span: - lo: 27 - hi: 47 - op: Pow - span: - lo: 1 - hi: 48 diff --git a/tests/expectations/parser/expression/binary/pow_wrapped.out b/tests/expectations/parser/expression/binary/pow_wrapped.out deleted file mode 100644 index 223a91ff76..0000000000 --- a/tests/expectations/parser/expression/binary/pow_wrapped.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: PowWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: PowWrapped - span: - lo: 0 - hi: 16 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" - op: PowWrapped - span: - lo: 0 - hi: 31 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" - op: PowWrapped - span: - lo: 0 - hi: 46 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: PowWrapped - span: - lo: 1 - hi: 17 - op: Negate - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: PowWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: PowWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: PowWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: PowWrapped - span: - lo: 1 - hi: 34 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: PowWrapped - span: - lo: 1 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: PowWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: PowWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: PowWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: PowWrapped - span: - lo: 1 - hi: 34 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: PowWrapped - span: - lo: 1 - hi: 17 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" - op: PowWrapped - span: - lo: 21 - hi: 37 - op: Pow - span: - lo: 1 - hi: 37 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":51,\\\"hi\\\":52}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":65,\\\"hi\\\":66}\"}" - op: PowWrapped - span: - lo: 51 - hi: 67 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":71,\\\"hi\\\":72}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" - op: PowWrapped - span: - lo: 71 - hi: 87 - op: Pow - span: - lo: 51 - hi: 87 - op: PowWrapped - span: - lo: 1 - hi: 88 diff --git a/tests/expectations/parser/expression/binary/shl.out b/tests/expectations/parser/expression/binary/shl.out deleted file mode 100644 index eff86a37a0..0000000000 --- a/tests/expectations/parser/expression/binary/shl.out +++ /dev/null @@ -1,461 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 7 - hi: 10 - op: Shl - span: - lo: 0 - hi: 10 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 5 - hi: 8 - op: Shl - span: - lo: 0 - hi: 8 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 7 - hi: 10 - op: Shl - span: - lo: 0 - hi: 10 - right: - Literal: - U8: - - "3" - - span: - lo: 14 - hi: 17 - op: Shl - span: - lo: 0 - hi: 17 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Add - span: - lo: 13 - hi: 22 - op: Shl - span: - lo: 0 - hi: 22 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 7 - hi: 10 - op: Shl - span: - lo: 0 - hi: 10 - right: - Literal: - U8: - - "3" - - span: - lo: 14 - hi: 17 - op: Shl - span: - lo: 0 - hi: 17 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Add - span: - lo: 13 - hi: 22 - op: Shl - span: - lo: 0 - hi: 22 - right: - Binary: - left: - Literal: - U8: - - "5" - - span: - lo: 26 - hi: 29 - right: - Literal: - U8: - - "6" - - span: - lo: 32 - hi: 35 - op: Add - span: - lo: 26 - hi: 35 - op: Shl - span: - lo: 0 - hi: 35 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shl - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Shl - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Shl - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Shl - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Shl - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Shl - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shl - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shl - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Shl - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Shl - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Shl - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shl - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shl - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Shl - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Shl - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - op: Shl - span: - lo: 13 - hi: 21 - op: Shl - span: - lo: 1 - hi: 21 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - op: Shl - span: - lo: 27 - hi: 35 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - op: Shl - span: - lo: 39 - hi: 47 - op: Shl - span: - lo: 27 - hi: 47 - op: Shl - span: - lo: 1 - hi: 48 diff --git a/tests/expectations/parser/expression/binary/shl_wrapped.out b/tests/expectations/parser/expression/binary/shl_wrapped.out deleted file mode 100644 index 478abf1ade..0000000000 --- a/tests/expectations/parser/expression/binary/shl_wrapped.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShlWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: ShlWrapped - span: - lo: 0 - hi: 16 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" - op: ShlWrapped - span: - lo: 0 - hi: 31 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" - op: ShlWrapped - span: - lo: 0 - hi: 46 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: ShlWrapped - span: - lo: 1 - hi: 17 - op: Negate - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: ShlWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShlWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShlWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: ShlWrapped - span: - lo: 1 - hi: 34 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: ShlWrapped - span: - lo: 1 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: ShlWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShlWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShlWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: ShlWrapped - span: - lo: 1 - hi: 34 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: ShlWrapped - span: - lo: 1 - hi: 17 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" - op: ShlWrapped - span: - lo: 21 - hi: 37 - op: Shl - span: - lo: 1 - hi: 37 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":51,\\\"hi\\\":52}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":65,\\\"hi\\\":66}\"}" - op: ShlWrapped - span: - lo: 51 - hi: 67 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":71,\\\"hi\\\":72}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" - op: ShlWrapped - span: - lo: 71 - hi: 87 - op: Shl - span: - lo: 51 - hi: 87 - op: ShlWrapped - span: - lo: 1 - hi: 88 diff --git a/tests/expectations/parser/expression/binary/shr.out b/tests/expectations/parser/expression/binary/shr.out deleted file mode 100644 index 04082f6b28..0000000000 --- a/tests/expectations/parser/expression/binary/shr.out +++ /dev/null @@ -1,461 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 7 - hi: 10 - op: Shr - span: - lo: 0 - hi: 10 - - Binary: - left: - Literal: - U8: - - "2" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "3" - - span: - lo: 5 - hi: 8 - op: Shr - span: - lo: 0 - hi: 8 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 7 - hi: 10 - op: Shr - span: - lo: 0 - hi: 10 - right: - Literal: - U8: - - "3" - - span: - lo: 14 - hi: 17 - op: Shr - span: - lo: 0 - hi: 17 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Add - span: - lo: 13 - hi: 22 - op: Shr - span: - lo: 0 - hi: 22 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 7 - hi: 10 - op: Shr - span: - lo: 0 - hi: 10 - right: - Literal: - U8: - - "3" - - span: - lo: 14 - hi: 17 - op: Shr - span: - lo: 0 - hi: 17 - - Binary: - left: - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "2" - - span: - lo: 6 - hi: 9 - op: Add - span: - lo: 0 - hi: 9 - right: - Binary: - left: - Literal: - U8: - - "3" - - span: - lo: 13 - hi: 16 - right: - Literal: - U8: - - "4" - - span: - lo: 19 - hi: 22 - op: Add - span: - lo: 13 - hi: 22 - op: Shr - span: - lo: 0 - hi: 22 - right: - Binary: - left: - Literal: - U8: - - "5" - - span: - lo: 26 - hi: 29 - right: - Literal: - U8: - - "6" - - span: - lo: 32 - hi: 35 - op: Add - span: - lo: 26 - hi: 35 - op: Shr - span: - lo: 0 - hi: 35 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shr - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Shr - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Shr - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Shr - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Shr - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Shr - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shr - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shr - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Shr - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Shr - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Shr - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shr - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Shr - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Shr - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Shr - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - op: Shr - span: - lo: 13 - hi: 21 - op: Shr - span: - lo: 1 - hi: 21 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - op: Shr - span: - lo: 27 - hi: 35 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - op: Shr - span: - lo: 39 - hi: 47 - op: Shr - span: - lo: 27 - hi: 47 - op: Shr - span: - lo: 1 - hi: 48 diff --git a/tests/expectations/parser/expression/binary/shr_wrapped.out b/tests/expectations/parser/expression/binary/shr_wrapped.out deleted file mode 100644 index fca601254b..0000000000 --- a/tests/expectations/parser/expression/binary/shr_wrapped.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShrWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: ShrWrapped - span: - lo: 0 - hi: 16 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" - op: ShrWrapped - span: - lo: 0 - hi: 31 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" - op: ShrWrapped - span: - lo: 0 - hi: 46 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: ShrWrapped - span: - lo: 1 - hi: 17 - op: Negate - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: ShrWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShrWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShrWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: ShrWrapped - span: - lo: 1 - hi: 34 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: ShrWrapped - span: - lo: 1 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: ShrWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShrWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: ShrWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: ShrWrapped - span: - lo: 1 - hi: 34 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: ShrWrapped - span: - lo: 1 - hi: 17 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" - op: ShrWrapped - span: - lo: 21 - hi: 37 - op: Shr - span: - lo: 1 - hi: 37 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":51,\\\"hi\\\":52}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":65,\\\"hi\\\":66}\"}" - op: ShrWrapped - span: - lo: 51 - hi: 67 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":71,\\\"hi\\\":72}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" - op: ShrWrapped - span: - lo: 71 - hi: 87 - op: Shr - span: - lo: 51 - hi: 87 - op: ShrWrapped - span: - lo: 1 - hi: 88 diff --git a/tests/expectations/parser/expression/binary/sub.out b/tests/expectations/parser/expression/binary/sub.out deleted file mode 100644 index 33bfc0af35..0000000000 --- a/tests/expectations/parser/expression/binary/sub.out +++ /dev/null @@ -1,358 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U8: - - "1" - - span: - lo: 6 - hi: 9 - op: Sub - span: - lo: 0 - hi: 9 - - Binary: - left: - Literal: - U16: - - "2" - - span: - lo: 0 - hi: 4 - right: - Literal: - U64: - - "3" - - span: - lo: 5 - hi: 9 - op: Sub - span: - lo: 0 - hi: 9 - - Binary: - left: - Binary: - left: - Literal: - U32: - - "1" - - span: - lo: 0 - hi: 4 - right: - Literal: - U32: - - "2" - - span: - lo: 7 - hi: 11 - op: Sub - span: - lo: 0 - hi: 11 - right: - Literal: - U32: - - "3" - - span: - lo: 14 - hi: 18 - op: Sub - span: - lo: 0 - hi: 18 - - Binary: - left: - Binary: - left: - Literal: - U8: - - "1" - - span: - lo: 0 - hi: 3 - right: - Literal: - U16: - - "2" - - span: - lo: 6 - hi: 10 - op: Mul - span: - lo: 0 - hi: 10 - right: - Binary: - left: - Literal: - U32: - - "3" - - span: - lo: 13 - hi: 17 - right: - Literal: - I64: - - "4" - - span: - lo: 20 - hi: 24 - op: Mul - span: - lo: 13 - hi: 24 - op: Sub - span: - lo: 0 - hi: 24 - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Sub - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Sub - span: - lo: 0 - hi: 8 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - op: Sub - span: - lo: 0 - hi: 15 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Sub - span: - lo: 0 - hi: 22 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Sub - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Sub - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Sub - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Sub - span: - lo: 2 - hi: 10 - op: Negate - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Sub - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Sub - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - op: Sub - span: - lo: 1 - hi: 11 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Sub - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 0 - hi: 10 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - op: Sub - span: - lo: 2 - hi: 10 - op: Not - span: - lo: 1 - hi: 10 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Sub - span: - lo: 1 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - op: Sub - span: - lo: 1 - hi: 9 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - op: Sub - span: - lo: 13 - hi: 21 - op: Shl - span: - lo: 1 - hi: 21 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" - op: Sub - span: - lo: 27 - hi: 35 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - op: Sub - span: - lo: 39 - hi: 47 - op: Shl - span: - lo: 27 - hi: 47 - op: Sub - span: - lo: 1 - hi: 48 diff --git a/tests/expectations/parser/expression/binary/sub_wrapped.out b/tests/expectations/parser/expression/binary/sub_wrapped.out deleted file mode 100644 index accd061554..0000000000 --- a/tests/expectations/parser/expression/binary/sub_wrapped.out +++ /dev/null @@ -1,243 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: SubWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - op: SubWrapped - span: - lo: 0 - hi: 16 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" - op: SubWrapped - span: - lo: 0 - hi: 31 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" - op: SubWrapped - span: - lo: 0 - hi: 46 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: SubWrapped - span: - lo: 1 - hi: 17 - op: Negate - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: SubWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: SubWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: SubWrapped - span: - lo: 2 - hi: 18 - op: Negate - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: SubWrapped - span: - lo: 1 - hi: 34 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: SubWrapped - span: - lo: 1 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Binary: - left: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: SubWrapped - span: - lo: 1 - hi: 19 - - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: SubWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 0 - hi: 18 - - Binary: - left: - Unary: - receiver: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: SubWrapped - span: - lo: 2 - hi: 18 - op: Not - span: - lo: 1 - hi: 18 - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" - op: SubWrapped - span: - lo: 1 - hi: 34 - - Binary: - left: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: SubWrapped - span: - lo: 1 - hi: 17 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" - op: SubWrapped - span: - lo: 21 - hi: 37 - op: Shl - span: - lo: 1 - hi: 37 - right: - Binary: - left: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":51,\\\"hi\\\":52}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":65,\\\"hi\\\":66}\"}" - op: SubWrapped - span: - lo: 51 - hi: 67 - right: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":71,\\\"hi\\\":72}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" - op: SubWrapped - span: - lo: 71 - hi: 87 - op: Shl - span: - lo: 51 - hi: 87 - op: SubWrapped - span: - lo: 1 - hi: 88 diff --git a/tests/expectations/parser/expression/circuit_init_fail.out b/tests/expectations/parser/expression/circuit_init_fail.out deleted file mode 100644 index a1898918cf..0000000000 --- a/tests/expectations/parser/expression/circuit_init_fail.out +++ /dev/null @@ -1,16 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ''\n --> test:1:3\n |\n 1 | x {\n | ^" - - "did not consume all input: '}' @ 1:3-4\n" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:5\n |\n 1 | x { , }\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,,,}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:6\n |\n 1 | x {x,,}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,,x}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,x}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:8\n |\n 1 | x {x:y,,}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,,x:y}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,x:y}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '}'\n --> test:1:6\n |\n 1 | x {x:}\n | ^" diff --git a/tests/expectations/parser/expression/ident.out b/tests/expectations/parser/expression/ident.out deleted file mode 100644 index 17dcc95565..0000000000 --- a/tests/expectations/parser/expression/ident.out +++ /dev/null @@ -1,23 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - - Identifier: "{\"name\":\"X\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - - Identifier: "{\"name\":\"xxx\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" - - Identifier: "{\"name\":\"XXX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" - - Identifier: "{\"name\":\"x1\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" - - Identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - - Identifier: "{\"name\":\"testx\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - - Identifier: "{\"name\":\"truex\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - - Identifier: "{\"name\":\"TRUE\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - - Identifier: "{\"name\":\"testX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - - Identifier: "{\"name\":\"letX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - - Identifier: "{\"name\":\"constX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" - - Identifier: "{\"name\":\"test_test\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":9}\"}" - - Identifier: "{\"name\":\"self\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - - Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - - Identifier: "{\"name\":\"input\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - - Identifier: "{\"name\":\"selfX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - - Identifier: "{\"name\":\"SelfX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - - Identifier: "{\"name\":\"inputX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" diff --git a/tests/expectations/parser/expression/literal/address.out b/tests/expectations/parser/expression/literal/address.out deleted file mode 100644 index b0e997ef27..0000000000 --- a/tests/expectations/parser/expression/literal/address.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Token -expectation: Pass -outputs: - - "'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9' @ 1:1-64" - - "'ALEO1' @ 1:1-6" - - "'Aleo1' @ 1:1-6" - - "'aleO1' @ 1:1-6" - - "'aleo2qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d9' @ 1:1-64" - - "'bleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d9' @ 1:1-64" diff --git a/tests/expectations/parser/expression/literal/address_fail.out b/tests/expectations/parser/expression/literal/address_fail.out deleted file mode 100644 index 23b56de7c9..0000000000 --- a/tests/expectations/parser/expression/literal/address_fail.out +++ /dev/null @@ -1,14 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6Z2eu975wnpz2925ntjccd5cfqxtyu8sta57J9'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6Z2eu975wnpz2925ntjccd5cfqxtyu8sta57J9\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j9'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j9\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1'\n --> test:1:1\n |\n 1 | aleo1\n | ^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8st'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8st\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1'\n --> test:1:1\n |\n 1 | aleo1\n | ^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x + aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x'\n --> test:1:68\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x + aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" diff --git a/tests/expectations/parser/expression/literal/address_parse.out b/tests/expectations/parser/expression/literal/address_parse.out deleted file mode 100644 index 536b2d1efe..0000000000 --- a/tests/expectations/parser/expression/literal/address_parse.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - Address: - - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9 - - span: - lo: 0 - hi: 63 diff --git a/tests/expectations/parser/expression/literal/bool.out b/tests/expectations/parser/expression/literal/bool.out deleted file mode 100644 index 9222f3dd49..0000000000 --- a/tests/expectations/parser/expression/literal/bool.out +++ /dev/null @@ -1,12 +0,0 @@ ---- -namespace: Token -expectation: Pass -outputs: - - "'true' @ 1:1-5" - - "'True' @ 1:1-5" - - "'TRUE' @ 1:1-5" - - "'truE' @ 1:1-5" - - "'false' @ 1:1-6" - - "'False' @ 1:1-6" - - "'FALSE' @ 1:1-6" - - "'falsE' @ 1:1-6" diff --git a/tests/expectations/parser/expression/literal/bool_parse.out b/tests/expectations/parser/expression/literal/bool_parse.out deleted file mode 100644 index e2dfa68011..0000000000 --- a/tests/expectations/parser/expression/literal/bool_parse.out +++ /dev/null @@ -1,16 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - Boolean: - - true - - span: - lo: 0 - hi: 4 - - Literal: - Boolean: - - false - - span: - lo: 0 - hi: 5 diff --git a/tests/expectations/parser/expression/literal/char.out b/tests/expectations/parser/expression/literal/char.out deleted file mode 100644 index 0a52d2a847..0000000000 --- a/tests/expectations/parser/expression/literal/char.out +++ /dev/null @@ -1,57 +0,0 @@ ---- -namespace: Token -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `'a'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'Z'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\\"'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\''`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\t'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\r'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\0'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{F}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `''`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{E5}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'å'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{4e0}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'Ӡ'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{d800}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'❤'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1F622}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'😭'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{10001F}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x2A'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x7f'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x00'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x01'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x02'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x03'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x04'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x05'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x06'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x07'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x10'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x11'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x12'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x13'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x14'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x15'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x16'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x17'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x20'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x21'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x22'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x23'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x24'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x25'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x26'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x27'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x30'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x31'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x32'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x33'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x34'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x35'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x36'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x37'`.\n" diff --git a/tests/expectations/parser/expression/literal/char_fail.out b/tests/expectations/parser/expression/literal/char_fail.out deleted file mode 100644 index d2da2bcb23..0000000000 --- a/tests/expectations/parser/expression/literal/char_fail.out +++ /dev/null @@ -1,51 +0,0 @@ ---- -namespace: Token -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `'\\'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `\\n`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'a`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `''`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x7'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\xz'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x9A'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x7g'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x80'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\xc1'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\xc2'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\xDF'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\xC0'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\xe0'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x9f'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'abcdefg'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\a'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\z'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\A'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\Z'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\1'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\9'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\*'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\t\\t'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\uz'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u1'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u}`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'🦀\\n'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u123'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'🦀1🦀'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u6🦀}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{af🦀'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764z'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{276g}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u9999999'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u00000000'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u01000000'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{110000}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1234567890}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'😭😂😘'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'⁩'`.\n" diff --git a/tests/expectations/parser/expression/literal/char_parse.out b/tests/expectations/parser/expression/literal/char_parse.out deleted file mode 100644 index c3b482b2c7..0000000000 --- a/tests/expectations/parser/expression/literal/char_parse.out +++ /dev/null @@ -1,55 +0,0 @@ ---- -namespace: Token -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `'a'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'Z'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\\"'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\t'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\r'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\0'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{F}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `''`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{E5}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'å'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{4e0}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'Ӡ'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'❤'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1F622}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'😭'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\u{10001F}'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x2A'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x7f'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x00'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x01'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x02'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x03'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x04'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x05'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x06'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x07'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x10'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x11'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x12'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x13'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x14'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x15'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x16'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x17'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x20'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x21'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x22'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x23'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x24'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x25'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x26'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x27'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x30'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x31'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x32'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x33'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x34'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x35'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x36'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'\\x37'`.\n" diff --git a/tests/expectations/parser/expression/literal/comment.out b/tests/expectations/parser/expression/literal/comment.out deleted file mode 100644 index 346f38884e..0000000000 --- a/tests/expectations/parser/expression/literal/comment.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: {} - circuits: {} diff --git a/tests/expectations/parser/expression/literal/comment_fail.out b/tests/expectations/parser/expression/literal/comment_fail.out deleted file mode 100644 index 1184910801..0000000000 --- a/tests/expectations/parser/expression/literal/comment_fail.out +++ /dev/null @@ -1,15 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370015]: Empty block comment." - - "Error [EPAR0370016]: Block comment does not close with content: `/* test`." - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '/'\n --> test:1:1\n |\n 1 | / /\n | ^" - - "Error [EPAR0370016]: Block comment does not close with content: `/*/`." - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '*'\n --> test:1:1\n |\n 1 | */\n | ^" - - "Error [EPAR0370017]: Could not lex the following content: `🦀**/`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `🦀*/`.\n" - - "Error [EPAR0370016]: Block comment does not close with content: `/*🦀/`." - - "Error [EPAR0370016]: Block comment does not close with content: `/**🦀`." - - "Error [EPAR0370016]: Block comment does not close with content: `/*🦀`." - - "Error [EPAR0370016]: Block comment does not close with content: `/*/*`." diff --git a/tests/expectations/parser/expression/literal/formatted_string.out b/tests/expectations/parser/expression/literal/formatted_string.out deleted file mode 100644 index 47fddf9292..0000000000 --- a/tests/expectations/parser/expression/literal/formatted_string.out +++ /dev/null @@ -1,24 +0,0 @@ ---- -namespace: Token -expectation: Pass -outputs: - - "'\"{}\"' @ 1:1-5" - - "'\" {} \"' @ 1:1-7" - - "'\"{}d\"' @ 1:1-6" - - "'\"{}D\"' @ 1:1-6" - - "'\"d{}\"' @ 1:1-6" - - "'\"D{}\"' @ 1:1-6" - - "'\"D{}D\"' @ 1:1-7" - - "'\"{}{}\"' @ 1:1-7" - - "'\"D{}{}D\"' @ 1:1-9" - - "'\"D{}{}\"' @ 1:1-8" - - "'\"{}{}D\"' @ 1:1-8" - - "'\"D{}D{}D\"' @ 1:1-10" - - "'\"{{}}\"' @ 1:1-7" - - "'\"}}\"' @ 1:1-5" - - "'\"{{\"' @ 1:1-5" - - "'\"}}{{\"' @ 1:1-7" - - "'\"{{}\"' @ 1:1-6" - - "'\"{}}\"' @ 1:1-6" - - "'\"{\"' @ 1:1-4" - - "'\"}\"' @ 1:1-4" diff --git a/tests/expectations/parser/expression/literal/group.out b/tests/expectations/parser/expression/literal/group.out deleted file mode 100644 index 6573e4ac8f..0000000000 --- a/tests/expectations/parser/expression/literal/group.out +++ /dev/null @@ -1,442 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - Group: - Tuple: - x: SignHigh - y: Inferred - span: - lo: 0 - hi: 11 - - Literal: - Group: - Tuple: - x: Inferred - y: SignLow - span: - lo: 0 - hi: 11 - - Literal: - Group: - Tuple: - x: SignHigh - y: SignLow - span: - lo: 0 - hi: 11 - - Literal: - Group: - Tuple: - x: SignLow - y: SignHigh - span: - lo: 0 - hi: 11 - - Literal: - Group: - Tuple: - x: SignHigh - y: SignHigh - span: - lo: 0 - hi: 11 - - Literal: - Group: - Tuple: - x: SignLow - y: SignLow - span: - lo: 0 - hi: 11 - - Literal: - Group: - Tuple: - x: Inferred - y: Inferred - span: - lo: 0 - hi: 11 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: - Number: - - "-456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "-123" - - span: - lo: 2 - hi: 5 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "-123" - - span: - lo: 2 - hi: 5 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: Inferred - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: SignLow - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: SignLow - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: SignHigh - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: SignHigh - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: SignLow - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: Inferred - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: SignHigh - y: - Number: - - "345" - - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: Inferred - y: - Number: - - "345" - - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: SignHigh - y: - Number: - - "345" - - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: SignLow - y: - Number: - - "345" - - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: SignHigh - y: - Number: - - "345" - - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: SignLow - y: - Number: - - "345" - - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: Inferred - y: - Number: - - "345" - - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 13 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Tuple: - x: - Number: - - "123" - - span: - lo: 1 - hi: 4 - y: - Number: - - "456" - - span: - lo: 6 - hi: 9 - span: - lo: 0 - hi: 15 - - Literal: - Group: - Single: - - "1" - - span: - lo: 0 - hi: 6 - - Unary: - receiver: - Literal: - Group: - Single: - - "1" - - span: - lo: 1 - hi: 7 - op: Negate - span: - lo: 0 - hi: 7 diff --git a/tests/expectations/parser/expression/literal/group_fail.out b/tests/expectations/parser/expression/literal/group_fail.out deleted file mode 100644 index 607bbed79e..0000000000 --- a/tests/expectations/parser/expression/literal/group_fail.out +++ /dev/null @@ -1,16 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "did not consume all input: 'group' @ 1:3-8\n" - - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123)group\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:2\n |\n 1 | (,)group\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '+'\n --> test:1:2\n |\n 1 | (+, -,)group\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:2\n |\n 1 | (,+, -)group\n | ^" - - "did not consume all input: 'group' @ 1:6-11\n" - - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456u8)group\n | ^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456field)group\n | ^^^" - - "Error [EPAR0370004]: Unexpected white space between terms (123,456) and group\n --> test:1:11\n |\n 1 | (123, 456) group\n | ^" - - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, )group\n | ^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456, 789)group\n | ^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456)bool\n | ^^^" diff --git a/tests/expectations/parser/expression/literal/int.out b/tests/expectations/parser/expression/literal/int.out deleted file mode 100644 index ccac03f213..0000000000 --- a/tests/expectations/parser/expression/literal/int.out +++ /dev/null @@ -1,111 +0,0 @@ ---- -namespace: Token -expectation: Pass -outputs: - - "'123' @ 1:1-4,'abc123' @ 1:4-10" - - "'123' @ 1:1-4,'abc' @ 1:4-7" - - "'123' @ 1:1-4" - - "'456' @ 1:1-4" - - "'123' @ 1:1-4,'456' @ 1:5-8" - - "'87377802873778028737780287377802873778028737780287377802873778028737780287377802' @ 1:1-81" - - "'8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802' @ 1:1-401" - - "'340130024' @ 1:1-10" - - "'158951116' @ 1:1-10" - - "'155529659' @ 1:1-10" - - "'642023166' @ 1:1-10" - - "'228481736' @ 1:1-10" - - "'469712960' @ 1:1-10" - - "'929437719' @ 1:1-10" - - "'721072814' @ 1:1-10" - - "'363254789' @ 1:1-10" - - "'906732565' @ 1:1-10" - - "'288246391' @ 1:1-10" - - "'724940549' @ 1:1-10" - - "'487101620' @ 1:1-10" - - "'261373583' @ 1:1-10" - - "'891163927' @ 1:1-10" - - "'743967544' @ 1:1-10" - - "'8372586' @ 1:1-8" - - "'461793278' @ 1:1-10" - - "'806307045' @ 1:1-10" - - "'122764546' @ 1:1-10" - - "'356336181' @ 1:1-10" - - "'158370903' @ 1:1-10" - - "'774460877' @ 1:1-10" - - "'557174131' @ 1:1-10" - - "'492401267' @ 1:1-10" - - "'893445620' @ 1:1-10" - - "'957757048' @ 1:1-10" - - "'721540649' @ 1:1-10" - - "'390746493' @ 1:1-10" - - "'211251725' @ 1:1-10" - - "'938266114' @ 1:1-10" - - "'156985870' @ 1:1-10" - - "'703831126' @ 1:1-10" - - "'729964155' @ 1:1-10" - - "'988151305' @ 1:1-10" - - "'320872435' @ 1:1-10" - - "'719287167' @ 1:1-10" - - "'152289486' @ 1:1-10" - - "'740067975' @ 1:1-10" - - "'728627816' @ 1:1-10" - - "'385008978' @ 1:1-10" - - "'553967635' @ 1:1-10" - - "'71980713' @ 1:1-9" - - "'519444716' @ 1:1-10" - - "'116499965' @ 1:1-10" - - "'717422268' @ 1:1-10" - - "'18966279' @ 1:1-9" - - "'22458638' @ 1:1-9" - - "'857282620' @ 1:1-10" - - "'920675898' @ 1:1-10" - - "'762235516' @ 1:1-10" - - "'469018377' @ 1:1-10" - - "'199986521' @ 1:1-10" - - "'536679358' @ 1:1-10" - - "'591399452' @ 1:1-10" - - "'83083158' @ 1:1-9" - - "'599449051' @ 1:1-10" - - "'445442318' @ 1:1-10" - - "'585486590' @ 1:1-10" - - "'209278800' @ 1:1-10" - - "'873568117' @ 1:1-10" - - "'664470940' @ 1:1-10" - - "'465262783' @ 1:1-10" - - "'605652874' @ 1:1-10" - - "'376803940' @ 1:1-10" - - "'965247040' @ 1:1-10" - - "'598474509' @ 1:1-10" - - "'845119918' @ 1:1-10" - - "'648159133' @ 1:1-10" - - "'669051032' @ 1:1-10" - - "'800600261' @ 1:1-10" - - "'434689764' @ 1:1-10" - - "'520060080' @ 1:1-10" - - "'804659385' @ 1:1-10" - - "'537828058' @ 1:1-10" - - "'716600292' @ 1:1-10" - - "'387020273' @ 1:1-10" - - "'199375617' @ 1:1-10" - - "'680337189' @ 1:1-10" - - "'818479931' @ 1:1-10" - - "'893693281' @ 1:1-10" - - "'87377802' @ 1:1-9" - - "'84699261' @ 1:1-9" - - "'292826090' @ 1:1-10" - - "'569171405' @ 1:1-10" - - "'387436237' @ 1:1-10" - - "'150682190' @ 1:1-10" - - "'888770419' @ 1:1-10" - - "'824696431' @ 1:1-10" - - "'765659803' @ 1:1-10" - - "'270163693' @ 1:1-10" - - "'427940240' @ 1:1-10" - - "'504997332' @ 1:1-10" - - "'337808338' @ 1:1-10" - - "'907200008' @ 1:1-10" - - "'757177889' @ 1:1-10" - - "'696697188' @ 1:1-10" - - "'41376051' @ 1:1-9" - - "'496293518' @ 1:1-10" - - "'251218820' @ 1:1-10" diff --git a/tests/expectations/parser/expression/literal/int_fail.out b/tests/expectations/parser/expression/literal/int_fail.out deleted file mode 100644 index 957a328f5f..0000000000 --- a/tests/expectations/parser/expression/literal/int_fail.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." - - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." - - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/expression/literal/int_parse/field.out b/tests/expectations/parser/expression/literal/int_parse/field.out deleted file mode 100644 index 9789a049b3..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/field.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - Field: - - "123" - - span: - lo: 0 - hi: 8 - - Literal: - Field: - - "123" - - span: - lo: 0 - hi: 8 - - Literal: - Field: - - "456" - - span: - lo: 0 - hi: 8 - - Literal: - Field: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 85 - - Literal: - Field: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 405 - - Literal: - Field: - - "340130024" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "158951116" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "155529659" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "642023166" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "228481736" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "469712960" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "929437719" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "721072814" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "363254789" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "906732565" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "288246391" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "724940549" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "487101620" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "261373583" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "891163927" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "743967544" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "8372586" - - span: - lo: 0 - hi: 12 - - Literal: - Field: - - "461793278" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "806307045" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "122764546" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "356336181" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "158370903" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "774460877" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "557174131" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "492401267" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "893445620" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "957757048" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "721540649" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "390746493" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "211251725" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "938266114" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "156985870" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "703831126" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "729964155" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "988151305" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "320872435" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "719287167" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "152289486" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "740067975" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "728627816" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "385008978" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "553967635" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "71980713" - - span: - lo: 0 - hi: 13 - - Literal: - Field: - - "519444716" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "116499965" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "717422268" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "18966279" - - span: - lo: 0 - hi: 13 - - Literal: - Field: - - "22458638" - - span: - lo: 0 - hi: 13 - - Literal: - Field: - - "857282620" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "920675898" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "762235516" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "469018377" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "199986521" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "536679358" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "591399452" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "83083158" - - span: - lo: 0 - hi: 13 - - Literal: - Field: - - "599449051" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "445442318" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "585486590" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "209278800" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "873568117" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "664470940" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "465262783" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "605652874" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "376803940" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "965247040" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "598474509" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "845119918" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "648159133" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "669051032" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "800600261" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "434689764" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "520060080" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "804659385" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "537828058" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "716600292" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "387020273" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "199375617" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "680337189" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "818479931" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "893693281" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "87377802" - - span: - lo: 0 - hi: 13 - - Literal: - Field: - - "84699261" - - span: - lo: 0 - hi: 13 - - Literal: - Field: - - "292826090" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "569171405" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "387436237" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "150682190" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "888770419" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "824696431" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "765659803" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "270163693" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "427940240" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "504997332" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "337808338" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "907200008" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "757177889" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "696697188" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "41376051" - - span: - lo: 0 - hi: 13 - - Literal: - Field: - - "496293518" - - span: - lo: 0 - hi: 14 - - Literal: - Field: - - "251218820" - - span: - lo: 0 - hi: 14 diff --git a/tests/expectations/parser/expression/literal/int_parse/field_fail.out b/tests/expectations/parser/expression/literal/int_parse/field_fail.out deleted file mode 100644 index 68daceda67..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/field_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/expression/literal/int_parse/i128.out b/tests/expectations/parser/expression/literal/int_parse/i128.out deleted file mode 100644 index 0e61e79d70..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/i128.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - I128: - - "123" - - span: - lo: 0 - hi: 7 - - Literal: - I128: - - "123" - - span: - lo: 0 - hi: 7 - - Literal: - I128: - - "456" - - span: - lo: 0 - hi: 7 - - Literal: - I128: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 84 - - Literal: - I128: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 404 - - Literal: - I128: - - "340130024" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "158951116" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "155529659" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "642023166" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "228481736" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "469712960" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "929437719" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "721072814" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "363254789" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "906732565" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "288246391" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "724940549" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "487101620" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "261373583" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "891163927" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "743967544" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "8372586" - - span: - lo: 0 - hi: 11 - - Literal: - I128: - - "461793278" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "806307045" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "122764546" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "356336181" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "158370903" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "774460877" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "557174131" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "492401267" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "893445620" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "957757048" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "721540649" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "390746493" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "211251725" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "938266114" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "156985870" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "703831126" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "729964155" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "988151305" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "320872435" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "719287167" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "152289486" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "740067975" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "728627816" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "385008978" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "553967635" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "71980713" - - span: - lo: 0 - hi: 12 - - Literal: - I128: - - "519444716" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "116499965" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "717422268" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "18966279" - - span: - lo: 0 - hi: 12 - - Literal: - I128: - - "22458638" - - span: - lo: 0 - hi: 12 - - Literal: - I128: - - "857282620" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "920675898" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "762235516" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "469018377" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "199986521" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "536679358" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "591399452" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "83083158" - - span: - lo: 0 - hi: 12 - - Literal: - I128: - - "599449051" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "445442318" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "585486590" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "209278800" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "873568117" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "664470940" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "465262783" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "605652874" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "376803940" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "965247040" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "598474509" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "845119918" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "648159133" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "669051032" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "800600261" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "434689764" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "520060080" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "804659385" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "537828058" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "716600292" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "387020273" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "199375617" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "680337189" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "818479931" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "893693281" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "87377802" - - span: - lo: 0 - hi: 12 - - Literal: - I128: - - "84699261" - - span: - lo: 0 - hi: 12 - - Literal: - I128: - - "292826090" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "569171405" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "387436237" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "150682190" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "888770419" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "824696431" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "765659803" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "270163693" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "427940240" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "504997332" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "337808338" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "907200008" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "757177889" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "696697188" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "41376051" - - span: - lo: 0 - hi: 12 - - Literal: - I128: - - "496293518" - - span: - lo: 0 - hi: 13 - - Literal: - I128: - - "251218820" - - span: - lo: 0 - hi: 13 diff --git a/tests/expectations/parser/expression/literal/int_parse/i16.out b/tests/expectations/parser/expression/literal/int_parse/i16.out deleted file mode 100644 index 4da22229ad..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/i16.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - I16: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - I16: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - I16: - - "456" - - span: - lo: 0 - hi: 6 - - Literal: - I16: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 83 - - Literal: - I16: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 403 - - Literal: - I16: - - "340130024" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "158951116" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "155529659" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "642023166" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "228481736" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "469712960" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "929437719" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "721072814" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "363254789" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "906732565" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "288246391" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "724940549" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "487101620" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "261373583" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "891163927" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "743967544" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "8372586" - - span: - lo: 0 - hi: 10 - - Literal: - I16: - - "461793278" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "806307045" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "122764546" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "356336181" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "158370903" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "774460877" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "557174131" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "492401267" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "893445620" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "957757048" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "721540649" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "390746493" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "211251725" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "938266114" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "156985870" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "703831126" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "729964155" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "988151305" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "320872435" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "719287167" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "152289486" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "740067975" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "728627816" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "385008978" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "553967635" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "71980713" - - span: - lo: 0 - hi: 11 - - Literal: - I16: - - "519444716" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "116499965" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "717422268" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "18966279" - - span: - lo: 0 - hi: 11 - - Literal: - I16: - - "22458638" - - span: - lo: 0 - hi: 11 - - Literal: - I16: - - "857282620" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "920675898" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "762235516" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "469018377" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "199986521" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "536679358" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "591399452" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "83083158" - - span: - lo: 0 - hi: 11 - - Literal: - I16: - - "599449051" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "445442318" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "585486590" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "209278800" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "873568117" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "664470940" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "465262783" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "605652874" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "376803940" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "965247040" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "598474509" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "845119918" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "648159133" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "669051032" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "800600261" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "434689764" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "520060080" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "804659385" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "537828058" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "716600292" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "387020273" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "199375617" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "680337189" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "818479931" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "893693281" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "87377802" - - span: - lo: 0 - hi: 11 - - Literal: - I16: - - "84699261" - - span: - lo: 0 - hi: 11 - - Literal: - I16: - - "292826090" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "569171405" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "387436237" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "150682190" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "888770419" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "824696431" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "765659803" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "270163693" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "427940240" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "504997332" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "337808338" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "907200008" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "757177889" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "696697188" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "41376051" - - span: - lo: 0 - hi: 11 - - Literal: - I16: - - "496293518" - - span: - lo: 0 - hi: 12 - - Literal: - I16: - - "251218820" - - span: - lo: 0 - hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/i32.out b/tests/expectations/parser/expression/literal/int_parse/i32.out deleted file mode 100644 index 2ab28183df..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/i32.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - I32: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - I32: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - I32: - - "456" - - span: - lo: 0 - hi: 6 - - Literal: - I32: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 83 - - Literal: - I32: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 403 - - Literal: - I32: - - "340130024" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "158951116" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "155529659" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "642023166" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "228481736" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "469712960" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "929437719" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "721072814" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "363254789" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "906732565" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "288246391" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "724940549" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "487101620" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "261373583" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "891163927" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "743967544" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "8372586" - - span: - lo: 0 - hi: 10 - - Literal: - I32: - - "461793278" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "806307045" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "122764546" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "356336181" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "158370903" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "774460877" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "557174131" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "492401267" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "893445620" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "957757048" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "721540649" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "390746493" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "211251725" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "938266114" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "156985870" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "703831126" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "729964155" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "988151305" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "320872435" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "719287167" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "152289486" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "740067975" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "728627816" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "385008978" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "553967635" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "71980713" - - span: - lo: 0 - hi: 11 - - Literal: - I32: - - "519444716" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "116499965" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "717422268" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "18966279" - - span: - lo: 0 - hi: 11 - - Literal: - I32: - - "22458638" - - span: - lo: 0 - hi: 11 - - Literal: - I32: - - "857282620" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "920675898" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "762235516" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "469018377" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "199986521" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "536679358" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "591399452" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "83083158" - - span: - lo: 0 - hi: 11 - - Literal: - I32: - - "599449051" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "445442318" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "585486590" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "209278800" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "873568117" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "664470940" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "465262783" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "605652874" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "376803940" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "965247040" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "598474509" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "845119918" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "648159133" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "669051032" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "800600261" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "434689764" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "520060080" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "804659385" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "537828058" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "716600292" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "387020273" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "199375617" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "680337189" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "818479931" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "893693281" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "87377802" - - span: - lo: 0 - hi: 11 - - Literal: - I32: - - "84699261" - - span: - lo: 0 - hi: 11 - - Literal: - I32: - - "292826090" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "569171405" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "387436237" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "150682190" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "888770419" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "824696431" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "765659803" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "270163693" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "427940240" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "504997332" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "337808338" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "907200008" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "757177889" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "696697188" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "41376051" - - span: - lo: 0 - hi: 11 - - Literal: - I32: - - "496293518" - - span: - lo: 0 - hi: 12 - - Literal: - I32: - - "251218820" - - span: - lo: 0 - hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/i64.out b/tests/expectations/parser/expression/literal/int_parse/i64.out deleted file mode 100644 index 31870870f2..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/i64.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - I64: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - I64: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - I64: - - "456" - - span: - lo: 0 - hi: 6 - - Literal: - I64: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 83 - - Literal: - I64: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 403 - - Literal: - I64: - - "340130024" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "158951116" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "155529659" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "642023166" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "228481736" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "469712960" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "929437719" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "721072814" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "363254789" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "906732565" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "288246391" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "724940549" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "487101620" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "261373583" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "891163927" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "743967544" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "8372586" - - span: - lo: 0 - hi: 10 - - Literal: - I64: - - "461793278" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "806307045" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "122764546" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "356336181" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "158370903" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "774460877" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "557174131" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "492401267" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "893445620" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "957757048" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "721540649" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "390746493" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "211251725" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "938266114" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "156985870" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "703831126" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "729964155" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "988151305" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "320872435" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "719287167" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "152289486" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "740067975" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "728627816" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "385008978" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "553967635" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "71980713" - - span: - lo: 0 - hi: 11 - - Literal: - I64: - - "519444716" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "116499965" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "717422268" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "18966279" - - span: - lo: 0 - hi: 11 - - Literal: - I64: - - "22458638" - - span: - lo: 0 - hi: 11 - - Literal: - I64: - - "857282620" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "920675898" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "762235516" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "469018377" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "199986521" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "536679358" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "591399452" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "83083158" - - span: - lo: 0 - hi: 11 - - Literal: - I64: - - "599449051" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "445442318" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "585486590" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "209278800" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "873568117" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "664470940" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "465262783" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "605652874" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "376803940" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "965247040" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "598474509" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "845119918" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "648159133" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "669051032" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "800600261" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "434689764" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "520060080" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "804659385" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "537828058" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "716600292" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "387020273" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "199375617" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "680337189" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "818479931" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "893693281" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "87377802" - - span: - lo: 0 - hi: 11 - - Literal: - I64: - - "84699261" - - span: - lo: 0 - hi: 11 - - Literal: - I64: - - "292826090" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "569171405" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "387436237" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "150682190" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "888770419" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "824696431" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "765659803" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "270163693" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "427940240" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "504997332" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "337808338" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "907200008" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "757177889" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "696697188" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "41376051" - - span: - lo: 0 - hi: 11 - - Literal: - I64: - - "496293518" - - span: - lo: 0 - hi: 12 - - Literal: - I64: - - "251218820" - - span: - lo: 0 - hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/i8.out b/tests/expectations/parser/expression/literal/int_parse/i8.out deleted file mode 100644 index cf6fe6fb31..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/i8.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - I8: - - "123" - - span: - lo: 0 - hi: 5 - - Literal: - I8: - - "123" - - span: - lo: 0 - hi: 5 - - Literal: - I8: - - "456" - - span: - lo: 0 - hi: 5 - - Literal: - I8: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 82 - - Literal: - I8: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 402 - - Literal: - I8: - - "340130024" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "158951116" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "155529659" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "642023166" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "228481736" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "469712960" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "929437719" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "721072814" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "363254789" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "906732565" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "288246391" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "724940549" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "487101620" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "261373583" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "891163927" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "743967544" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "8372586" - - span: - lo: 0 - hi: 9 - - Literal: - I8: - - "461793278" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "806307045" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "122764546" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "356336181" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "158370903" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "774460877" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "557174131" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "492401267" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "893445620" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "957757048" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "721540649" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "390746493" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "211251725" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "938266114" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "156985870" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "703831126" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "729964155" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "988151305" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "320872435" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "719287167" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "152289486" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "740067975" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "728627816" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "385008978" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "553967635" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "71980713" - - span: - lo: 0 - hi: 10 - - Literal: - I8: - - "519444716" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "116499965" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "717422268" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "18966279" - - span: - lo: 0 - hi: 10 - - Literal: - I8: - - "22458638" - - span: - lo: 0 - hi: 10 - - Literal: - I8: - - "857282620" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "920675898" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "762235516" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "469018377" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "199986521" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "536679358" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "591399452" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "83083158" - - span: - lo: 0 - hi: 10 - - Literal: - I8: - - "599449051" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "445442318" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "585486590" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "209278800" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "873568117" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "664470940" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "465262783" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "605652874" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "376803940" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "965247040" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "598474509" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "845119918" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "648159133" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "669051032" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "800600261" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "434689764" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "520060080" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "804659385" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "537828058" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "716600292" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "387020273" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "199375617" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "680337189" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "818479931" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "893693281" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "87377802" - - span: - lo: 0 - hi: 10 - - Literal: - I8: - - "84699261" - - span: - lo: 0 - hi: 10 - - Literal: - I8: - - "292826090" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "569171405" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "387436237" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "150682190" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "888770419" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "824696431" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "765659803" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "270163693" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "427940240" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "504997332" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "337808338" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "907200008" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "757177889" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "696697188" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "41376051" - - span: - lo: 0 - hi: 10 - - Literal: - I8: - - "496293518" - - span: - lo: 0 - hi: 11 - - Literal: - I8: - - "251218820" - - span: - lo: 0 - hi: 11 diff --git a/tests/expectations/parser/expression/literal/int_parse/implicit.out b/tests/expectations/parser/expression/literal/int_parse/implicit.out deleted file mode 100644 index 1030593369..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/implicit.out +++ /dev/null @@ -1,109 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 456.\n --> test:1:1\n |\n 1 | 456\n | ^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 87377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 87377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 340130024.\n --> test:1:1\n |\n 1 | 340130024\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 158951116.\n --> test:1:1\n |\n 1 | 158951116\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 155529659.\n --> test:1:1\n |\n 1 | 155529659\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 642023166.\n --> test:1:1\n |\n 1 | 642023166\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 228481736.\n --> test:1:1\n |\n 1 | 228481736\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 469712960.\n --> test:1:1\n |\n 1 | 469712960\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 929437719.\n --> test:1:1\n |\n 1 | 929437719\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 721072814.\n --> test:1:1\n |\n 1 | 721072814\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 363254789.\n --> test:1:1\n |\n 1 | 363254789\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 906732565.\n --> test:1:1\n |\n 1 | 906732565\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 288246391.\n --> test:1:1\n |\n 1 | 288246391\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 724940549.\n --> test:1:1\n |\n 1 | 724940549\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 487101620.\n --> test:1:1\n |\n 1 | 487101620\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 261373583.\n --> test:1:1\n |\n 1 | 261373583\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 891163927.\n --> test:1:1\n |\n 1 | 891163927\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 743967544.\n --> test:1:1\n |\n 1 | 743967544\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 8372586.\n --> test:1:1\n |\n 1 | 8372586\n | ^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 461793278.\n --> test:1:1\n |\n 1 | 461793278\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 806307045.\n --> test:1:1\n |\n 1 | 806307045\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 122764546.\n --> test:1:1\n |\n 1 | 122764546\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 356336181.\n --> test:1:1\n |\n 1 | 356336181\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 158370903.\n --> test:1:1\n |\n 1 | 158370903\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 774460877.\n --> test:1:1\n |\n 1 | 774460877\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 557174131.\n --> test:1:1\n |\n 1 | 557174131\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 492401267.\n --> test:1:1\n |\n 1 | 492401267\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 893445620.\n --> test:1:1\n |\n 1 | 893445620\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 957757048.\n --> test:1:1\n |\n 1 | 957757048\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 721540649.\n --> test:1:1\n |\n 1 | 721540649\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 390746493.\n --> test:1:1\n |\n 1 | 390746493\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 211251725.\n --> test:1:1\n |\n 1 | 211251725\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 938266114.\n --> test:1:1\n |\n 1 | 938266114\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 156985870.\n --> test:1:1\n |\n 1 | 156985870\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 703831126.\n --> test:1:1\n |\n 1 | 703831126\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 729964155.\n --> test:1:1\n |\n 1 | 729964155\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 988151305.\n --> test:1:1\n |\n 1 | 988151305\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 320872435.\n --> test:1:1\n |\n 1 | 320872435\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 719287167.\n --> test:1:1\n |\n 1 | 719287167\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 152289486.\n --> test:1:1\n |\n 1 | 152289486\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 740067975.\n --> test:1:1\n |\n 1 | 740067975\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 728627816.\n --> test:1:1\n |\n 1 | 728627816\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 385008978.\n --> test:1:1\n |\n 1 | 385008978\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 553967635.\n --> test:1:1\n |\n 1 | 553967635\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 71980713.\n --> test:1:1\n |\n 1 | 71980713\n | ^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 519444716.\n --> test:1:1\n |\n 1 | 519444716\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 116499965.\n --> test:1:1\n |\n 1 | 116499965\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 717422268.\n --> test:1:1\n |\n 1 | 717422268\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 18966279.\n --> test:1:1\n |\n 1 | 18966279\n | ^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 22458638.\n --> test:1:1\n |\n 1 | 22458638\n | ^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 857282620.\n --> test:1:1\n |\n 1 | 857282620\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 920675898.\n --> test:1:1\n |\n 1 | 920675898\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 762235516.\n --> test:1:1\n |\n 1 | 762235516\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 469018377.\n --> test:1:1\n |\n 1 | 469018377\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 199986521.\n --> test:1:1\n |\n 1 | 199986521\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 536679358.\n --> test:1:1\n |\n 1 | 536679358\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 591399452.\n --> test:1:1\n |\n 1 | 591399452\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 83083158.\n --> test:1:1\n |\n 1 | 83083158\n | ^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 599449051.\n --> test:1:1\n |\n 1 | 599449051\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 445442318.\n --> test:1:1\n |\n 1 | 445442318\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 585486590.\n --> test:1:1\n |\n 1 | 585486590\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 209278800.\n --> test:1:1\n |\n 1 | 209278800\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 873568117.\n --> test:1:1\n |\n 1 | 873568117\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 664470940.\n --> test:1:1\n |\n 1 | 664470940\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 465262783.\n --> test:1:1\n |\n 1 | 465262783\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 605652874.\n --> test:1:1\n |\n 1 | 605652874\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 376803940.\n --> test:1:1\n |\n 1 | 376803940\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 965247040.\n --> test:1:1\n |\n 1 | 965247040\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 598474509.\n --> test:1:1\n |\n 1 | 598474509\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 845119918.\n --> test:1:1\n |\n 1 | 845119918\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 648159133.\n --> test:1:1\n |\n 1 | 648159133\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 669051032.\n --> test:1:1\n |\n 1 | 669051032\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 800600261.\n --> test:1:1\n |\n 1 | 800600261\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 434689764.\n --> test:1:1\n |\n 1 | 434689764\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 520060080.\n --> test:1:1\n |\n 1 | 520060080\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 804659385.\n --> test:1:1\n |\n 1 | 804659385\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 537828058.\n --> test:1:1\n |\n 1 | 537828058\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 716600292.\n --> test:1:1\n |\n 1 | 716600292\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 387020273.\n --> test:1:1\n |\n 1 | 387020273\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 199375617.\n --> test:1:1\n |\n 1 | 199375617\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 680337189.\n --> test:1:1\n |\n 1 | 680337189\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 818479931.\n --> test:1:1\n |\n 1 | 818479931\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 893693281.\n --> test:1:1\n |\n 1 | 893693281\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 87377802.\n --> test:1:1\n |\n 1 | 87377802\n | ^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 84699261.\n --> test:1:1\n |\n 1 | 84699261\n | ^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 292826090.\n --> test:1:1\n |\n 1 | 292826090\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 569171405.\n --> test:1:1\n |\n 1 | 569171405\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 387436237.\n --> test:1:1\n |\n 1 | 387436237\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 150682190.\n --> test:1:1\n |\n 1 | 150682190\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 888770419.\n --> test:1:1\n |\n 1 | 888770419\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 824696431.\n --> test:1:1\n |\n 1 | 824696431\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 765659803.\n --> test:1:1\n |\n 1 | 765659803\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 270163693.\n --> test:1:1\n |\n 1 | 270163693\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 427940240.\n --> test:1:1\n |\n 1 | 427940240\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 504997332.\n --> test:1:1\n |\n 1 | 504997332\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 337808338.\n --> test:1:1\n |\n 1 | 337808338\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 907200008.\n --> test:1:1\n |\n 1 | 907200008\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 757177889.\n --> test:1:1\n |\n 1 | 757177889\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 696697188.\n --> test:1:1\n |\n 1 | 696697188\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 41376051.\n --> test:1:1\n |\n 1 | 41376051\n | ^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 496293518.\n --> test:1:1\n |\n 1 | 496293518\n | ^^^^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 251218820.\n --> test:1:1\n |\n 1 | 251218820\n | ^^^^^^^^^" diff --git a/tests/expectations/parser/expression/literal/int_parse/mono_group.out b/tests/expectations/parser/expression/literal/int_parse/mono_group.out deleted file mode 100644 index d8ebd0c812..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/mono_group.out +++ /dev/null @@ -1,739 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - Group: - Single: - - "123" - - span: - lo: 0 - hi: 8 - - Literal: - Group: - Single: - - "123" - - span: - lo: 0 - hi: 8 - - Literal: - Group: - Single: - - "456" - - span: - lo: 0 - hi: 8 - - Literal: - Group: - Single: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 85 - - Literal: - Group: - Single: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 405 - - Literal: - Group: - Single: - - "340130024" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "158951116" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "155529659" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "642023166" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "228481736" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "469712960" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "929437719" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "721072814" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "363254789" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "906732565" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "288246391" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "724940549" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "487101620" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "261373583" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "891163927" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "743967544" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "8372586" - - span: - lo: 0 - hi: 12 - - Literal: - Group: - Single: - - "461793278" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "806307045" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "122764546" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "356336181" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "158370903" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "774460877" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "557174131" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "492401267" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "893445620" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "957757048" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "721540649" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "390746493" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "211251725" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "938266114" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "156985870" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "703831126" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "729964155" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "988151305" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "320872435" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "719287167" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "152289486" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "740067975" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "728627816" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "385008978" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "553967635" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "71980713" - - span: - lo: 0 - hi: 13 - - Literal: - Group: - Single: - - "519444716" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "116499965" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "717422268" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "18966279" - - span: - lo: 0 - hi: 13 - - Literal: - Group: - Single: - - "22458638" - - span: - lo: 0 - hi: 13 - - Literal: - Group: - Single: - - "857282620" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "920675898" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "762235516" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "469018377" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "199986521" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "536679358" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "591399452" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "83083158" - - span: - lo: 0 - hi: 13 - - Literal: - Group: - Single: - - "599449051" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "445442318" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "585486590" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "209278800" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "873568117" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "664470940" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "465262783" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "605652874" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "376803940" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "965247040" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "598474509" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "845119918" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "648159133" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "669051032" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "800600261" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "434689764" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "520060080" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "804659385" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "537828058" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "716600292" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "387020273" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "199375617" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "680337189" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "818479931" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "893693281" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "87377802" - - span: - lo: 0 - hi: 13 - - Literal: - Group: - Single: - - "84699261" - - span: - lo: 0 - hi: 13 - - Literal: - Group: - Single: - - "292826090" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "569171405" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "387436237" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "150682190" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "888770419" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "824696431" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "765659803" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "270163693" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "427940240" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "504997332" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "337808338" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "907200008" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "757177889" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "696697188" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "41376051" - - span: - lo: 0 - hi: 13 - - Literal: - Group: - Single: - - "496293518" - - span: - lo: 0 - hi: 14 - - Literal: - Group: - Single: - - "251218820" - - span: - lo: 0 - hi: 14 diff --git a/tests/expectations/parser/expression/literal/int_parse/scalar.out b/tests/expectations/parser/expression/literal/int_parse/scalar.out deleted file mode 100644 index 23e5fd754d..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/scalar.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - Scalar: - - "123" - - span: - lo: 0 - hi: 9 - - Literal: - Scalar: - - "123" - - span: - lo: 0 - hi: 9 - - Literal: - Scalar: - - "456" - - span: - lo: 0 - hi: 9 - - Literal: - Scalar: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 86 - - Literal: - Scalar: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 406 - - Literal: - Scalar: - - "340130024" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "158951116" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "155529659" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "642023166" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "228481736" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "469712960" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "929437719" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "721072814" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "363254789" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "906732565" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "288246391" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "724940549" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "487101620" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "261373583" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "891163927" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "743967544" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "8372586" - - span: - lo: 0 - hi: 13 - - Literal: - Scalar: - - "461793278" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "806307045" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "122764546" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "356336181" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "158370903" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "774460877" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "557174131" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "492401267" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "893445620" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "957757048" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "721540649" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "390746493" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "211251725" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "938266114" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "156985870" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "703831126" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "729964155" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "988151305" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "320872435" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "719287167" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "152289486" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "740067975" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "728627816" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "385008978" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "553967635" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "71980713" - - span: - lo: 0 - hi: 14 - - Literal: - Scalar: - - "519444716" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "116499965" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "717422268" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "18966279" - - span: - lo: 0 - hi: 14 - - Literal: - Scalar: - - "22458638" - - span: - lo: 0 - hi: 14 - - Literal: - Scalar: - - "857282620" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "920675898" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "762235516" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "469018377" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "199986521" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "536679358" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "591399452" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "83083158" - - span: - lo: 0 - hi: 14 - - Literal: - Scalar: - - "599449051" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "445442318" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "585486590" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "209278800" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "873568117" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "664470940" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "465262783" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "605652874" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "376803940" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "965247040" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "598474509" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "845119918" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "648159133" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "669051032" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "800600261" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "434689764" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "520060080" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "804659385" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "537828058" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "716600292" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "387020273" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "199375617" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "680337189" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "818479931" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "893693281" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "87377802" - - span: - lo: 0 - hi: 14 - - Literal: - Scalar: - - "84699261" - - span: - lo: 0 - hi: 14 - - Literal: - Scalar: - - "292826090" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "569171405" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "387436237" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "150682190" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "888770419" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "824696431" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "765659803" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "270163693" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "427940240" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "504997332" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "337808338" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "907200008" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "757177889" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "696697188" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "41376051" - - span: - lo: 0 - hi: 14 - - Literal: - Scalar: - - "496293518" - - span: - lo: 0 - hi: 15 - - Literal: - Scalar: - - "251218820" - - span: - lo: 0 - hi: 15 diff --git a/tests/expectations/parser/expression/literal/int_parse/u128.out b/tests/expectations/parser/expression/literal/int_parse/u128.out deleted file mode 100644 index b8cab02aa0..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/u128.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - U128: - - "123" - - span: - lo: 0 - hi: 7 - - Literal: - U128: - - "123" - - span: - lo: 0 - hi: 7 - - Literal: - U128: - - "456" - - span: - lo: 0 - hi: 7 - - Literal: - U128: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 84 - - Literal: - U128: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 404 - - Literal: - U128: - - "340130024" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "158951116" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "155529659" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "642023166" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "228481736" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "469712960" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "929437719" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "721072814" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "363254789" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "906732565" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "288246391" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "724940549" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "487101620" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "261373583" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "891163927" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "743967544" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "8372586" - - span: - lo: 0 - hi: 11 - - Literal: - U128: - - "461793278" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "806307045" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "122764546" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "356336181" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "158370903" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "774460877" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "557174131" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "492401267" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "893445620" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "957757048" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "721540649" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "390746493" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "211251725" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "938266114" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "156985870" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "703831126" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "729964155" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "988151305" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "320872435" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "719287167" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "152289486" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "740067975" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "728627816" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "385008978" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "553967635" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "71980713" - - span: - lo: 0 - hi: 12 - - Literal: - U128: - - "519444716" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "116499965" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "717422268" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "18966279" - - span: - lo: 0 - hi: 12 - - Literal: - U128: - - "22458638" - - span: - lo: 0 - hi: 12 - - Literal: - U128: - - "857282620" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "920675898" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "762235516" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "469018377" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "199986521" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "536679358" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "591399452" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "83083158" - - span: - lo: 0 - hi: 12 - - Literal: - U128: - - "599449051" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "445442318" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "585486590" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "209278800" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "873568117" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "664470940" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "465262783" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "605652874" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "376803940" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "965247040" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "598474509" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "845119918" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "648159133" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "669051032" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "800600261" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "434689764" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "520060080" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "804659385" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "537828058" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "716600292" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "387020273" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "199375617" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "680337189" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "818479931" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "893693281" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "87377802" - - span: - lo: 0 - hi: 12 - - Literal: - U128: - - "84699261" - - span: - lo: 0 - hi: 12 - - Literal: - U128: - - "292826090" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "569171405" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "387436237" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "150682190" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "888770419" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "824696431" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "765659803" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "270163693" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "427940240" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "504997332" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "337808338" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "907200008" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "757177889" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "696697188" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "41376051" - - span: - lo: 0 - hi: 12 - - Literal: - U128: - - "496293518" - - span: - lo: 0 - hi: 13 - - Literal: - U128: - - "251218820" - - span: - lo: 0 - hi: 13 diff --git a/tests/expectations/parser/expression/literal/int_parse/u16.out b/tests/expectations/parser/expression/literal/int_parse/u16.out deleted file mode 100644 index 18a3d874ca..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/u16.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - U16: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - U16: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - U16: - - "456" - - span: - lo: 0 - hi: 6 - - Literal: - U16: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 83 - - Literal: - U16: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 403 - - Literal: - U16: - - "340130024" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "158951116" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "155529659" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "642023166" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "228481736" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "469712960" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "929437719" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "721072814" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "363254789" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "906732565" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "288246391" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "724940549" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "487101620" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "261373583" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "891163927" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "743967544" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "8372586" - - span: - lo: 0 - hi: 10 - - Literal: - U16: - - "461793278" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "806307045" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "122764546" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "356336181" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "158370903" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "774460877" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "557174131" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "492401267" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "893445620" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "957757048" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "721540649" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "390746493" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "211251725" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "938266114" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "156985870" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "703831126" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "729964155" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "988151305" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "320872435" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "719287167" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "152289486" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "740067975" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "728627816" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "385008978" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "553967635" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "71980713" - - span: - lo: 0 - hi: 11 - - Literal: - U16: - - "519444716" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "116499965" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "717422268" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "18966279" - - span: - lo: 0 - hi: 11 - - Literal: - U16: - - "22458638" - - span: - lo: 0 - hi: 11 - - Literal: - U16: - - "857282620" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "920675898" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "762235516" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "469018377" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "199986521" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "536679358" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "591399452" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "83083158" - - span: - lo: 0 - hi: 11 - - Literal: - U16: - - "599449051" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "445442318" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "585486590" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "209278800" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "873568117" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "664470940" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "465262783" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "605652874" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "376803940" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "965247040" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "598474509" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "845119918" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "648159133" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "669051032" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "800600261" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "434689764" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "520060080" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "804659385" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "537828058" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "716600292" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "387020273" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "199375617" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "680337189" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "818479931" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "893693281" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "87377802" - - span: - lo: 0 - hi: 11 - - Literal: - U16: - - "84699261" - - span: - lo: 0 - hi: 11 - - Literal: - U16: - - "292826090" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "569171405" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "387436237" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "150682190" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "888770419" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "824696431" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "765659803" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "270163693" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "427940240" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "504997332" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "337808338" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "907200008" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "757177889" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "696697188" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "41376051" - - span: - lo: 0 - hi: 11 - - Literal: - U16: - - "496293518" - - span: - lo: 0 - hi: 12 - - Literal: - U16: - - "251218820" - - span: - lo: 0 - hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/u32.out b/tests/expectations/parser/expression/literal/int_parse/u32.out deleted file mode 100644 index 3e75200db9..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/u32.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - U32: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - U32: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - U32: - - "456" - - span: - lo: 0 - hi: 6 - - Literal: - U32: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 83 - - Literal: - U32: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 403 - - Literal: - U32: - - "340130024" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "158951116" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "155529659" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "642023166" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "228481736" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "469712960" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "929437719" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "721072814" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "363254789" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "906732565" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "288246391" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "724940549" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "487101620" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "261373583" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "891163927" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "743967544" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "8372586" - - span: - lo: 0 - hi: 10 - - Literal: - U32: - - "461793278" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "806307045" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "122764546" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "356336181" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "158370903" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "774460877" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "557174131" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "492401267" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "893445620" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "957757048" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "721540649" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "390746493" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "211251725" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "938266114" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "156985870" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "703831126" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "729964155" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "988151305" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "320872435" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "719287167" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "152289486" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "740067975" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "728627816" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "385008978" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "553967635" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "71980713" - - span: - lo: 0 - hi: 11 - - Literal: - U32: - - "519444716" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "116499965" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "717422268" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "18966279" - - span: - lo: 0 - hi: 11 - - Literal: - U32: - - "22458638" - - span: - lo: 0 - hi: 11 - - Literal: - U32: - - "857282620" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "920675898" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "762235516" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "469018377" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "199986521" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "536679358" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "591399452" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "83083158" - - span: - lo: 0 - hi: 11 - - Literal: - U32: - - "599449051" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "445442318" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "585486590" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "209278800" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "873568117" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "664470940" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "465262783" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "605652874" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "376803940" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "965247040" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "598474509" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "845119918" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "648159133" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "669051032" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "800600261" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "434689764" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "520060080" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "804659385" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "537828058" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "716600292" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "387020273" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "199375617" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "680337189" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "818479931" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "893693281" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "87377802" - - span: - lo: 0 - hi: 11 - - Literal: - U32: - - "84699261" - - span: - lo: 0 - hi: 11 - - Literal: - U32: - - "292826090" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "569171405" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "387436237" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "150682190" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "888770419" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "824696431" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "765659803" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "270163693" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "427940240" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "504997332" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "337808338" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "907200008" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "757177889" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "696697188" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "41376051" - - span: - lo: 0 - hi: 11 - - Literal: - U32: - - "496293518" - - span: - lo: 0 - hi: 12 - - Literal: - U32: - - "251218820" - - span: - lo: 0 - hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/u64.out b/tests/expectations/parser/expression/literal/int_parse/u64.out deleted file mode 100644 index 722dd4bd20..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/u64.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - U64: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - U64: - - "123" - - span: - lo: 0 - hi: 6 - - Literal: - U64: - - "456" - - span: - lo: 0 - hi: 6 - - Literal: - U64: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 83 - - Literal: - U64: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 403 - - Literal: - U64: - - "340130024" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "158951116" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "155529659" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "642023166" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "228481736" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "469712960" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "929437719" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "721072814" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "363254789" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "906732565" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "288246391" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "724940549" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "487101620" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "261373583" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "891163927" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "743967544" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "8372586" - - span: - lo: 0 - hi: 10 - - Literal: - U64: - - "461793278" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "806307045" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "122764546" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "356336181" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "158370903" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "774460877" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "557174131" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "492401267" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "893445620" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "957757048" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "721540649" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "390746493" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "211251725" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "938266114" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "156985870" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "703831126" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "729964155" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "988151305" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "320872435" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "719287167" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "152289486" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "740067975" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "728627816" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "385008978" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "553967635" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "71980713" - - span: - lo: 0 - hi: 11 - - Literal: - U64: - - "519444716" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "116499965" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "717422268" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "18966279" - - span: - lo: 0 - hi: 11 - - Literal: - U64: - - "22458638" - - span: - lo: 0 - hi: 11 - - Literal: - U64: - - "857282620" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "920675898" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "762235516" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "469018377" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "199986521" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "536679358" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "591399452" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "83083158" - - span: - lo: 0 - hi: 11 - - Literal: - U64: - - "599449051" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "445442318" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "585486590" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "209278800" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "873568117" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "664470940" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "465262783" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "605652874" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "376803940" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "965247040" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "598474509" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "845119918" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "648159133" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "669051032" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "800600261" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "434689764" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "520060080" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "804659385" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "537828058" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "716600292" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "387020273" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "199375617" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "680337189" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "818479931" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "893693281" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "87377802" - - span: - lo: 0 - hi: 11 - - Literal: - U64: - - "84699261" - - span: - lo: 0 - hi: 11 - - Literal: - U64: - - "292826090" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "569171405" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "387436237" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "150682190" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "888770419" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "824696431" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "765659803" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "270163693" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "427940240" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "504997332" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "337808338" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "907200008" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "757177889" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "696697188" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "41376051" - - span: - lo: 0 - hi: 11 - - Literal: - U64: - - "496293518" - - span: - lo: 0 - hi: 12 - - Literal: - U64: - - "251218820" - - span: - lo: 0 - hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/u8.out b/tests/expectations/parser/expression/literal/int_parse/u8.out deleted file mode 100644 index 710cf4c164..0000000000 --- a/tests/expectations/parser/expression/literal/int_parse/u8.out +++ /dev/null @@ -1,634 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Literal: - U8: - - "123" - - span: - lo: 0 - hi: 5 - - Literal: - U8: - - "123" - - span: - lo: 0 - hi: 5 - - Literal: - U8: - - "456" - - span: - lo: 0 - hi: 5 - - Literal: - U8: - - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 82 - - Literal: - U8: - - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" - - span: - lo: 0 - hi: 402 - - Literal: - U8: - - "340130024" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "158951116" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "155529659" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "642023166" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "228481736" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "469712960" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "929437719" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "721072814" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "363254789" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "906732565" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "288246391" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "724940549" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "487101620" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "261373583" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "891163927" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "743967544" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "8372586" - - span: - lo: 0 - hi: 9 - - Literal: - U8: - - "461793278" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "806307045" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "122764546" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "356336181" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "158370903" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "774460877" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "557174131" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "492401267" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "893445620" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "957757048" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "721540649" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "390746493" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "211251725" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "938266114" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "156985870" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "703831126" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "729964155" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "988151305" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "320872435" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "719287167" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "152289486" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "740067975" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "728627816" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "385008978" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "553967635" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "71980713" - - span: - lo: 0 - hi: 10 - - Literal: - U8: - - "519444716" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "116499965" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "717422268" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "18966279" - - span: - lo: 0 - hi: 10 - - Literal: - U8: - - "22458638" - - span: - lo: 0 - hi: 10 - - Literal: - U8: - - "857282620" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "920675898" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "762235516" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "469018377" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "199986521" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "536679358" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "591399452" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "83083158" - - span: - lo: 0 - hi: 10 - - Literal: - U8: - - "599449051" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "445442318" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "585486590" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "209278800" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "873568117" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "664470940" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "465262783" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "605652874" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "376803940" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "965247040" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "598474509" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "845119918" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "648159133" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "669051032" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "800600261" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "434689764" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "520060080" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "804659385" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "537828058" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "716600292" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "387020273" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "199375617" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "680337189" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "818479931" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "893693281" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "87377802" - - span: - lo: 0 - hi: 10 - - Literal: - U8: - - "84699261" - - span: - lo: 0 - hi: 10 - - Literal: - U8: - - "292826090" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "569171405" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "387436237" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "150682190" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "888770419" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "824696431" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "765659803" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "270163693" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "427940240" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "504997332" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "337808338" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "907200008" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "757177889" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "696697188" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "41376051" - - span: - lo: 0 - hi: 10 - - Literal: - U8: - - "496293518" - - span: - lo: 0 - hi: 11 - - Literal: - U8: - - "251218820" - - span: - lo: 0 - hi: 11 diff --git a/tests/expectations/parser/expression/literal/postfix_types.out b/tests/expectations/parser/expression/literal/postfix_types.out deleted file mode 100644 index 00ff4531d4..0000000000 --- a/tests/expectations/parser/expression/literal/postfix_types.out +++ /dev/null @@ -1,62 +0,0 @@ ---- -namespace: Token -expectation: Pass -outputs: - - "'field' @ 1:1-6" - - "'Field' @ 1:1-6" - - "'fielD' @ 1:1-6" - - "'FIELD' @ 1:1-6" - - "'group' @ 1:1-6" - - "'Group' @ 1:1-6" - - "'grouP' @ 1:1-6" - - "'GROUP' @ 1:1-6" - - "'u8' @ 1:1-3" - - "'u16' @ 1:1-4" - - "'u32' @ 1:1-4" - - "'u64' @ 1:1-4" - - "'u128' @ 1:1-5" - - "'i8' @ 1:1-3" - - "'i16' @ 1:1-4" - - "'i32' @ 1:1-4" - - "'i64' @ 1:1-4" - - "'i128' @ 1:1-5" - - "'U8' @ 1:1-3" - - "'U16' @ 1:1-4" - - "'U32' @ 1:1-4" - - "'U64' @ 1:1-4" - - "'U128' @ 1:1-5" - - "'U8' @ 1:1-3" - - "'U16' @ 1:1-4" - - "'U32' @ 1:1-4" - - "'U64' @ 1:1-4" - - "'U128' @ 1:1-5" - - "'u' @ 1:1-2" - - "'8' @ 1:1-2" - - "'u' @ 1:1-2" - - "'16' @ 1:1-3" - - "'u' @ 1:1-2" - - "'32' @ 1:1-3" - - "'u' @ 1:1-2" - - "'64' @ 1:1-3" - - "'u' @ 1:1-2" - - "'128' @ 1:1-4" - - "'i' @ 1:1-2" - - "'8' @ 1:1-2" - - "'i' @ 1:1-2" - - "'16' @ 1:1-3" - - "'i' @ 1:1-2" - - "'32' @ 1:1-3" - - "'i' @ 1:1-2" - - "'64' @ 1:1-3" - - "'i' @ 1:1-2" - - "'128' @ 1:1-4" - - "'U' @ 1:1-2,'8' @ 1:3-4" - - "'U' @ 1:1-2,'16' @ 1:3-5" - - "'U' @ 1:1-2,'32' @ 1:3-5" - - "'U' @ 1:1-2,'64' @ 1:3-5" - - "'U' @ 1:1-2,'128' @ 1:3-6" - - "'U' @ 1:1-2,'8' @ 1:3-4" - - "'U' @ 1:1-2,'16' @ 1:3-5" - - "'U' @ 1:1-2,'32' @ 1:3-5" - - "'U' @ 1:1-2,'64' @ 1:3-5" - - "'U' @ 1:1-2,'128' @ 1:3-6" diff --git a/tests/expectations/parser/expression/literal/string.out b/tests/expectations/parser/expression/literal/string.out deleted file mode 100644 index f2647db005..0000000000 --- a/tests/expectations/parser/expression/literal/string.out +++ /dev/null @@ -1,25 +0,0 @@ ---- -namespace: Token -expectation: Pass -outputs: - - "'\"string\"' @ 1:1-9" - - "'\"another { } string\"' @ 1:1-21" - - "'\"{ ] [ ; a\"' @ 1:1-12" - - "'\"test 😒€\"' @ 1:1-10" - - "'\"😭😂😘\"' @ 1:1-6" - - "'\"✋🏿\"' @ 1:1-5" - - "'\"🦀\"' @ 1:1-4" - - "'\"￿\"' @ 1:1-4" - - "'\"���\"' @ 1:1-6" - - "'\"(>3<)三\"' @ 1:1-9" - - "'\"ヽ༼ ಠ益ಠ ༽ノ\"' @ 1:1-12" - - "'\"(╯°□°)╯︵ ┻━┻\"' @ 1:1-15" - - "'\"┬─┬ ノ( ゜-゜ノ)\"' @ 1:1-15" - - "'\"( ͡° ͜ʖ ͡°)\"' @ 1:1-14" - - "'\"b\"' @ 1:1-4" - - "'\"ᕙ(▀̿ĺ̯▀̿ ̿)ᕗ\"' @ 1:1-15" - - "'\"♥╣[-_-]╠♥\"' @ 1:1-12" - - "'\"b\"' @ 1:1-4" - - "'\"(⑅∫°ਊ°)∫\"' @ 1:1-11" - - "'\"b\"' @ 1:1-4" - - "'\"🦀°1\"' @ 1:1-6" diff --git a/tests/expectations/parser/expression/literal/string_fail.out b/tests/expectations/parser/expression/literal/string_fail.out deleted file mode 100644 index f118491be6..0000000000 --- a/tests/expectations/parser/expression/literal/string_fail.out +++ /dev/null @@ -1,8 +0,0 @@ ---- -namespace: Token -expectation: Fail -outputs: - - "Error [EPAR0370014]: Expected a closed string but found `Hello world!`." - - "Error [EPAR0370014]: Expected a closed string but found `\\`." - - "Error [EPAR0370014]: Expected a closed string but found `⭇😍;`." - - "Error [EPAR0370021]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/expression/ternary.out b/tests/expectations/parser/expression/ternary.out deleted file mode 100644 index 07651c1b8f..0000000000 --- a/tests/expectations/parser/expression/ternary.out +++ /dev/null @@ -1,52 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Ternary: - condition: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - if_true: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - if_false: - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - span: - lo: 0 - hi: 9 - - Ternary: - condition: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - if_true: - Ternary: - condition: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - if_true: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - if_false: - Identifier: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - span: - lo: 4 - hi: 13 - if_false: - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - span: - lo: 0 - hi: 17 - - Ternary: - condition: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - if_true: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - if_false: - Ternary: - condition: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - if_true: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - if_false: - Identifier: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - span: - lo: 8 - hi: 17 - span: - lo: 0 - hi: 17 diff --git a/tests/expectations/parser/expression/token_format.out b/tests/expectations/parser/expression/token_format.out deleted file mode 100644 index 2320e8a368..0000000000 --- a/tests/expectations/parser/expression/token_format.out +++ /dev/null @@ -1,74 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `'h'`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `@test`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '&&'\n --> test:1:1\n |\n 1 | &&\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '||'\n --> test:1:1\n |\n 1 | ||\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '=='\n --> test:1:1\n |\n 1 | ==\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '!='\n --> test:1:1\n |\n 1 | !=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<'\n --> test:1:1\n |\n 1 | <\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<='\n --> test:1:1\n |\n 1 | <=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>'\n --> test:1:1\n |\n 1 | >\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>='\n --> test:1:1\n |\n 1 | >=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '+'\n --> test:1:1\n |\n 1 | +\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:1\n |\n 1 | -\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '*'\n --> test:1:1\n |\n 1 | *\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '**'\n --> test:1:1\n |\n 1 | **\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '/'\n --> test:1:1\n |\n 1 | /\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:1\n |\n 1 | =\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '+='\n --> test:1:1\n |\n 1 | +=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '-='\n --> test:1:1\n |\n 1 | -=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '*='\n --> test:1:1\n |\n 1 | *=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '/='\n --> test:1:1\n |\n 1 | /=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '**='\n --> test:1:1\n |\n 1 | **=\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:1\n |\n 1 | (\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ')'\n --> test:1:1\n |\n 1 | )\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:1\n |\n 1 | ]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '{'\n --> test:1:1\n |\n 1 | {\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '}'\n --> test:1:1\n |\n 1 | }\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:1\n |\n 1 | ,\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '.'\n --> test:1:1\n |\n 1 | .\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '..'\n --> test:1:1\n |\n 1 | ..\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '..'\n --> test:1:1\n |\n 1 | ...\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:1\n |\n 1 | ;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ':'\n --> test:1:1\n |\n 1 | :\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ''\n --> test:1:2\n |\n 1 | h::\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '?'\n --> test:1:1\n |\n 1 | ?\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '->'\n --> test:1:1\n |\n 1 | ->\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '_'\n --> test:1:1\n |\n 1 | _\n | ^" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'console'\n --> test:1:1\n |\n 1 | console\n | ^^^^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'const'\n --> test:1:1\n |\n 1 | const\n | ^^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'else'\n --> test:1:1\n |\n 1 | else\n | ^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'for'\n --> test:1:1\n |\n 1 | for\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'function'\n --> test:1:1\n |\n 1 | function\n | ^^^^^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'in'\n --> test:1:1\n |\n 1 | in\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'let'\n --> test:1:1\n |\n 1 | let\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '&'\n --> test:1:1\n |\n 1 | &\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'return'\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" diff --git a/tests/expectations/parser/expression/unary/abs.out b/tests/expectations/parser/expression/unary/abs.out deleted file mode 100644 index 5d95459b3f..0000000000 --- a/tests/expectations/parser/expression/unary/abs.out +++ /dev/null @@ -1,146 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Abs - span: - lo: 0 - hi: 7 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Abs - span: - lo: 0 - hi: 7 - op: Abs - span: - lo: 0 - hi: 13 - op: Abs - span: - lo: 0 - hi: 19 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Abs - span: - lo: 1 - hi: 8 - op: Negate - span: - lo: 0 - hi: 8 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: Abs - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Abs - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Abs - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Abs - span: - lo: 1 - hi: 16 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Abs - span: - lo: 1 - hi: 8 - op: Not - span: - lo: 0 - hi: 8 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: Abs - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Abs - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Abs - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 1 - hi: 9 - op: Abs - span: - lo: 1 - hi: 16 diff --git a/tests/expectations/parser/expression/unary/abs_wrapped.out b/tests/expectations/parser/expression/unary/abs_wrapped.out deleted file mode 100644 index 5433c93542..0000000000 --- a/tests/expectations/parser/expression/unary/abs_wrapped.out +++ /dev/null @@ -1,146 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: AbsWrapped - span: - lo: 0 - hi: 15 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: AbsWrapped - span: - lo: 0 - hi: 15 - op: AbsWrapped - span: - lo: 0 - hi: 29 - op: AbsWrapped - span: - lo: 0 - hi: 43 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: AbsWrapped - span: - lo: 1 - hi: 16 - op: Negate - span: - lo: 0 - hi: 16 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: AbsWrapped - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: AbsWrapped - span: - lo: 2 - hi: 17 - op: Negate - span: - lo: 0 - hi: 17 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: AbsWrapped - span: - lo: 2 - hi: 17 - op: Negate - span: - lo: 1 - hi: 17 - op: AbsWrapped - span: - lo: 1 - hi: 32 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: AbsWrapped - span: - lo: 1 - hi: 16 - op: Not - span: - lo: 0 - hi: 16 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: AbsWrapped - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: AbsWrapped - span: - lo: 2 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: AbsWrapped - span: - lo: 2 - hi: 17 - op: Not - span: - lo: 1 - hi: 17 - op: AbsWrapped - span: - lo: 1 - hi: 32 diff --git a/tests/expectations/parser/expression/unary/double.out b/tests/expectations/parser/expression/unary/double.out deleted file mode 100644 index f3dbdaaed1..0000000000 --- a/tests/expectations/parser/expression/unary/double.out +++ /dev/null @@ -1,146 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Double - span: - lo: 0 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Double - span: - lo: 0 - hi: 10 - op: Double - span: - lo: 0 - hi: 19 - op: Double - span: - lo: 0 - hi: 28 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Double - span: - lo: 1 - hi: 11 - op: Negate - span: - lo: 0 - hi: 11 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: Double - span: - lo: 1 - hi: 13 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Double - span: - lo: 2 - hi: 12 - op: Negate - span: - lo: 0 - hi: 12 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Double - span: - lo: 2 - hi: 12 - op: Negate - span: - lo: 1 - hi: 12 - op: Double - span: - lo: 1 - hi: 22 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Double - span: - lo: 1 - hi: 11 - op: Not - span: - lo: 0 - hi: 11 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: Double - span: - lo: 1 - hi: 13 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Double - span: - lo: 2 - hi: 12 - op: Not - span: - lo: 0 - hi: 12 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Double - span: - lo: 2 - hi: 12 - op: Not - span: - lo: 1 - hi: 12 - op: Double - span: - lo: 1 - hi: 22 diff --git a/tests/expectations/parser/expression/unary/inv.out b/tests/expectations/parser/expression/unary/inv.out deleted file mode 100644 index a42f31203b..0000000000 --- a/tests/expectations/parser/expression/unary/inv.out +++ /dev/null @@ -1,146 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Inverse - span: - lo: 0 - hi: 7 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Inverse - span: - lo: 0 - hi: 7 - op: Inverse - span: - lo: 0 - hi: 13 - op: Inverse - span: - lo: 0 - hi: 19 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Inverse - span: - lo: 1 - hi: 8 - op: Negate - span: - lo: 0 - hi: 8 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: Inverse - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Inverse - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Inverse - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Inverse - span: - lo: 1 - hi: 16 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Inverse - span: - lo: 1 - hi: 8 - op: Not - span: - lo: 0 - hi: 8 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: Inverse - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Inverse - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Inverse - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 1 - hi: 9 - op: Inverse - span: - lo: 1 - hi: 16 diff --git a/tests/expectations/parser/expression/unary/neg.out b/tests/expectations/parser/expression/unary/neg.out deleted file mode 100644 index 6bddc3c4e1..0000000000 --- a/tests/expectations/parser/expression/unary/neg.out +++ /dev/null @@ -1,204 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Negate - span: - lo: 0 - hi: 2 - - Unary: - receiver: - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - arguments: [] - span: - lo: 1 - hi: 4 - op: Negate - span: - lo: 0 - hi: 4 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: Negate - span: - lo: 0 - hi: 3 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: Negate - span: - lo: 0 - hi: 3 - - Unary: - receiver: - Literal: - I8: - - "5" - - span: - lo: 1 - hi: 4 - op: Negate - span: - lo: 0 - hi: 4 - - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Negate - span: - lo: 0 - hi: 7 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Negate - span: - lo: 0 - hi: 7 - op: Negate - span: - lo: 0 - hi: 13 - op: Negate - span: - lo: 0 - hi: 19 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Negate - span: - lo: 1 - hi: 8 - op: Negate - span: - lo: 0 - hi: 8 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: Negate - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 1 - hi: 16 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Negate - span: - lo: 1 - hi: 8 - op: Not - span: - lo: 0 - hi: 8 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: Negate - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 1 - hi: 9 - op: Negate - span: - lo: 1 - hi: 16 diff --git a/tests/expectations/parser/expression/unary/not.out b/tests/expectations/parser/expression/unary/not.out deleted file mode 100644 index ab180c58e4..0000000000 --- a/tests/expectations/parser/expression/unary/not.out +++ /dev/null @@ -1,191 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Not - span: - lo: 0 - hi: 2 - - Unary: - receiver: - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - arguments: [] - span: - lo: 1 - hi: 4 - op: Not - span: - lo: 0 - hi: 4 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: Not - span: - lo: 0 - hi: 3 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Not - span: - lo: 0 - hi: 7 - op: Not - span: - lo: 0 - hi: 13 - op: Not - span: - lo: 0 - hi: 19 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Not - span: - lo: 1 - hi: 8 - op: Negate - span: - lo: 0 - hi: 8 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: Not - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 2 - hi: 9 - op: Negate - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 1 - hi: 16 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Not - span: - lo: 1 - hi: 8 - op: Not - span: - lo: 0 - hi: 8 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: Not - span: - lo: 1 - hi: 10 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 0 - hi: 9 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 2 - hi: 9 - op: Not - span: - lo: 1 - hi: 9 - op: Not - span: - lo: 1 - hi: 16 diff --git a/tests/expectations/parser/expression/unary/sqrt.out b/tests/expectations/parser/expression/unary/sqrt.out deleted file mode 100644 index e719601954..0000000000 --- a/tests/expectations/parser/expression/unary/sqrt.out +++ /dev/null @@ -1,158 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: SquareRoot - span: - lo: 2 - hi: 17 - op: Negate - span: - lo: 1 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: SquareRoot - span: - lo: 0 - hi: 15 - op: SquareRoot - span: - lo: 0 - hi: 29 - op: SquareRoot - span: - lo: 0 - hi: 43 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: SquareRoot - span: - lo: 1 - hi: 16 - op: Negate - span: - lo: 0 - hi: 16 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: SquareRoot - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: SquareRoot - span: - lo: 2 - hi: 17 - op: Negate - span: - lo: 0 - hi: 17 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: SquareRoot - span: - lo: 2 - hi: 17 - op: Negate - span: - lo: 1 - hi: 17 - op: SquareRoot - span: - lo: 1 - hi: 32 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: SquareRoot - span: - lo: 1 - hi: 16 - op: Not - span: - lo: 0 - hi: 16 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: SquareRoot - span: - lo: 1 - hi: 18 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: SquareRoot - span: - lo: 2 - hi: 17 - op: Not - span: - lo: 0 - hi: 17 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: SquareRoot - span: - lo: 2 - hi: 17 - op: Not - span: - lo: 1 - hi: 17 - op: SquareRoot - span: - lo: 1 - hi: 32 diff --git a/tests/expectations/parser/expression/unary/square.out b/tests/expectations/parser/expression/unary/square.out deleted file mode 100644 index da10785118..0000000000 --- a/tests/expectations/parser/expression/unary/square.out +++ /dev/null @@ -1,158 +0,0 @@ ---- -namespace: ParseExpression -expectation: Pass -outputs: - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Square - span: - lo: 2 - hi: 12 - op: Negate - span: - lo: 1 - hi: 12 - op: Not - span: - lo: 0 - hi: 12 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - op: Square - span: - lo: 0 - hi: 10 - op: Square - span: - lo: 0 - hi: 19 - op: Square - span: - lo: 0 - hi: 28 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Square - span: - lo: 1 - hi: 11 - op: Negate - span: - lo: 0 - hi: 11 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Negate - span: - lo: 1 - hi: 3 - op: Square - span: - lo: 1 - hi: 13 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Square - span: - lo: 2 - hi: 12 - op: Negate - span: - lo: 0 - hi: 12 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Square - span: - lo: 2 - hi: 12 - op: Negate - span: - lo: 1 - hi: 12 - op: Square - span: - lo: 1 - hi: 22 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" - op: Square - span: - lo: 1 - hi: 11 - op: Not - span: - lo: 0 - hi: 11 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Not - span: - lo: 1 - hi: 3 - op: Square - span: - lo: 1 - hi: 13 - - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Square - span: - lo: 2 - hi: 12 - op: Not - span: - lo: 0 - hi: 12 - - Unary: - receiver: - Unary: - receiver: - Unary: - receiver: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" - op: Square - span: - lo: 2 - hi: 12 - op: Not - span: - lo: 1 - hi: 12 - op: Square - span: - lo: 1 - hi: 22 diff --git a/tests/expectations/parser/functions/annotated_arg_not_ident.out b/tests/expectations/parser/functions/annotated_arg_not_ident.out deleted file mode 100644 index ef1ea8f721..0000000000 --- a/tests/expectations/parser/functions/annotated_arg_not_ident.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `@foo(?,`.\n" diff --git a/tests/expectations/parser/functions/annotated_context_fail.out b/tests/expectations/parser/functions/annotated_context_fail.out deleted file mode 100644 index f3a6bba1a3..0000000000 --- a/tests/expectations/parser/functions/annotated_context_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `@context`.\n" diff --git a/tests/expectations/parser/functions/bounded_recursion.out b/tests/expectations/parser/functions/bounded_recursion.out deleted file mode 100644 index a723c42bba..0000000000 --- a/tests/expectations/parser/functions/bounded_recursion.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:5:9\n |\n 5 | x(y+1u32);\n | ^^^^^^^^^^\nError [EPAR0370022]: Expression statements are not supported.\n --> test:10:5\n |\n 10 | x(1u32);\n | ^^^^^^^^" diff --git a/tests/expectations/parser/functions/const_input.out b/tests/expectations/parser/functions/const_input.out deleted file mode 100644 index eaf68aae4d..0000000000 --- a/tests/expectations/parser/functions/const_input.out +++ /dev/null @@ -1,50 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - input: - - Variable: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" - mode: Const - type_: U8 - span: - lo: 19 - hi: 20 - output: U8 - core_mapping: ~ - block: - statements: [] - span: - lo: 32 - hi: 34 - span: - lo: 2 - hi: 34 - "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}": - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" - input: - - Variable: - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":56,\\\"hi\\\":57}\"}" - mode: Const - type_: U64 - span: - lo: 56 - hi: 57 - output: U8 - core_mapping: ~ - block: - statements: [] - span: - lo: 70 - hi: 72 - span: - lo: 36 - hi: 72 - circuits: {} diff --git a/tests/expectations/parser/functions/const_param.out b/tests/expectations/parser/functions/const_param.out deleted file mode 100644 index 3f0c3fb156..0000000000 --- a/tests/expectations/parser/functions/const_param.out +++ /dev/null @@ -1,86 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - input: - - Variable: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - mode: Private - type_: U32 - span: - lo: 13 - hi: 14 - - Variable: - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":30,\\\"hi\\\":31}\"}" - mode: Const - type_: I32 - span: - lo: 30 - hi: 31 - output: U8 - core_mapping: ~ - block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 57 - hi: 60 - span: - lo: 50 - hi: 60 - span: - lo: 44 - hi: 63 - span: - lo: 2 - hi: 63 - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}" - input: - - Variable: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" - mode: Const - type_: U32 - span: - lo: 85 - hi: 86 - - Variable: - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":93,\\\"hi\\\":94}\"}" - mode: Private - type_: I32 - span: - lo: 93 - hi: 94 - output: U8 - core_mapping: ~ - block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 120 - hi: 123 - span: - lo: 113 - hi: 123 - span: - lo: 107 - hi: 126 - span: - lo: 65 - hi: 126 - circuits: {} diff --git a/tests/expectations/parser/functions/const_public_param_fail.out b/tests/expectations/parser/functions/const_public_param_fail.out deleted file mode 100644 index 91bf7adfbf..0000000000 --- a/tests/expectations/parser/functions/const_public_param_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'public'\n --> test:3:26\n |\n 3 | function x(x: u32, const public y: i32) {\n | ^^^^^^" diff --git a/tests/expectations/parser/functions/empty2.out b/tests/expectations/parser/functions/empty2.out deleted file mode 100644 index 34b29b06c1..0000000000 --- a/tests/expectations/parser/functions/empty2.out +++ /dev/null @@ -1,23 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - input: [] - output: U8 - core_mapping: ~ - block: - statements: [] - span: - lo: 21 - hi: 23 - span: - lo: 2 - hi: 23 - circuits: {} diff --git a/tests/expectations/parser/functions/escape_fail.out b/tests/expectations/parser/functions/escape_fail.out deleted file mode 100644 index ffd5855107..0000000000 --- a/tests/expectations/parser/functions/escape_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n" diff --git a/tests/expectations/parser/functions/ident_token_fail.out b/tests/expectations/parser/functions/ident_token_fail.out deleted file mode 100644 index 6ed7a2602a..0000000000 --- a/tests/expectations/parser/functions/ident_token_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected 'function', 'circuit', 'test' -- found '1'\n --> test:3:1\n |\n 3 | 1 main() {}\n | ^" diff --git a/tests/expectations/parser/functions/infinite_recursion.out b/tests/expectations/parser/functions/infinite_recursion.out deleted file mode 100644 index de9721cb10..0000000000 --- a/tests/expectations/parser/functions/infinite_recursion.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:4:5\n |\n 4 | inf();\n | ^^^^^^\nError [EPAR0370022]: Expression statements are not supported.\n --> test:8:5\n |\n 8 | inf();\n | ^^^^^^" diff --git a/tests/expectations/parser/functions/mut_input_fail.out b/tests/expectations/parser/functions/mut_input_fail.out deleted file mode 100644 index 6218eab0f5..0000000000 --- a/tests/expectations/parser/functions/mut_input_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected : -- found 'a'\n --> test:3:16\n |\n 3 | function f(mut a: u8) {}\n | ^" diff --git a/tests/expectations/parser/functions/params.out b/tests/expectations/parser/functions/params.out deleted file mode 100644 index 801ada80b2..0000000000 --- a/tests/expectations/parser/functions/params.out +++ /dev/null @@ -1,48 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - input: - - Variable: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - mode: Private - type_: U32 - span: - lo: 13 - hi: 14 - - Variable: - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" - mode: Private - type_: I32 - span: - lo: 21 - hi: 22 - output: U8 - core_mapping: ~ - block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 48 - hi: 51 - span: - lo: 41 - hi: 51 - span: - lo: 35 - hi: 54 - span: - lo: 2 - hi: 54 - circuits: {} diff --git a/tests/expectations/parser/functions/params_return.out b/tests/expectations/parser/functions/params_return.out deleted file mode 100644 index 130109a949..0000000000 --- a/tests/expectations/parser/functions/params_return.out +++ /dev/null @@ -1,48 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - input: - - Variable: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - mode: Private - type_: U32 - span: - lo: 13 - hi: 14 - - Variable: - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" - mode: Private - type_: I32 - span: - lo: 21 - hi: 22 - output: U32 - core_mapping: ~ - block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 49 - hi: 52 - span: - lo: 42 - hi: 52 - span: - lo: 36 - hi: 55 - span: - lo: 2 - hi: 55 - circuits: {} diff --git a/tests/expectations/parser/functions/public_const_param_fail.out b/tests/expectations/parser/functions/public_const_param_fail.out deleted file mode 100644 index 2454b98a57..0000000000 --- a/tests/expectations/parser/functions/public_const_param_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370020]: A parameter cannot be both public and const.\n --> test:3:20\n |\n 3 | function x(x: u32, public const y: i32) {\n | ^^^^^^^^^^^^" diff --git a/tests/expectations/parser/functions/public_param.out b/tests/expectations/parser/functions/public_param.out deleted file mode 100644 index bacf2c3c4e..0000000000 --- a/tests/expectations/parser/functions/public_param.out +++ /dev/null @@ -1,86 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - input: - - Variable: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - mode: Private - type_: U32 - span: - lo: 13 - hi: 14 - - Variable: - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" - mode: Public - type_: I32 - span: - lo: 28 - hi: 29 - output: U8 - core_mapping: ~ - block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 55 - hi: 58 - span: - lo: 48 - hi: 58 - span: - lo: 42 - hi: 61 - span: - lo: 2 - hi: 61 - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":72,\\\"hi\\\":73}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":72,\\\"hi\\\":73}\"}" - input: - - Variable: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":81,\\\"hi\\\":82}\"}" - mode: Public - type_: U32 - span: - lo: 81 - hi: 82 - - Variable: - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":89,\\\"hi\\\":90}\"}" - mode: Private - type_: I32 - span: - lo: 89 - hi: 90 - output: U8 - core_mapping: ~ - block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 116 - hi: 119 - span: - lo: 109 - hi: 119 - span: - lo: 103 - hi: 122 - span: - lo: 63 - hi: 122 - circuits: {} diff --git a/tests/expectations/parser/functions/return.out b/tests/expectations/parser/functions/return.out deleted file mode 100644 index a2de7e2d95..0000000000 --- a/tests/expectations/parser/functions/return.out +++ /dev/null @@ -1,34 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: - "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" - input: [] - output: U32 - core_mapping: ~ - block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 35 - hi: 38 - span: - lo: 28 - hi: 38 - span: - lo: 22 - hi: 41 - span: - lo: 2 - hi: 41 - circuits: {} diff --git a/tests/expectations/parser/functions/test_keyword_fail.out b/tests/expectations/parser/functions/test_keyword_fail.out deleted file mode 100644 index 9ce9f3faa9..0000000000 --- a/tests/expectations/parser/functions/test_keyword_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370011]: \"test function...\" is deprecated. Did you mean @test annotation?\n --> test:3:1\n |\n 3 | test main() {}\n | ^^^^" diff --git a/tests/expectations/parser/inputs/input_const.out b/tests/expectations/parser/inputs/input_const.out deleted file mode 100644 index 5668fc4524..0000000000 --- a/tests/expectations/parser/inputs/input_const.out +++ /dev/null @@ -1,207 +0,0 @@ ---- -namespace: Input -expectation: Pass -outputs: - - sections: - - name: main - definitions: - - mode: Const - type_: Boolean - name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - value: - Literal: - Boolean: - - true - - span: - lo: 26 - hi: 30 - span: - lo: 18 - hi: 22 - - mode: Const - type_: U8 - name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" - value: - Literal: - U8: - - "2" - - span: - lo: 49 - hi: 52 - span: - lo: 41 - hi: 43 - - mode: Const - type_: Field - name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":60,\\\"hi\\\":61}\"}" - value: - Literal: - Field: - - "0" - - span: - lo: 71 - hi: 77 - span: - lo: 63 - hi: 68 - - mode: Const - type_: Group - name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" - value: - Literal: - Group: - Tuple: - x: - Number: - - "0" - - span: - lo: 97 - hi: 98 - y: - Number: - - "1" - - span: - lo: 100 - hi: 101 - span: - lo: 96 - hi: 107 - span: - lo: 88 - hi: 93 - - mode: Const - type_: Address - name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":115,\\\"hi\\\":116}\"}" - value: - Literal: - Address: - - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 - - span: - lo: 128 - hi: 191 - span: - lo: 118 - hi: 125 - - mode: Const - type_: I8 - name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":199,\\\"hi\\\":200}\"}" - value: - Unary: - receiver: - Literal: - I8: - - "2" - - span: - lo: 211 - hi: 214 - op: Negate - span: - lo: 210 - hi: 214 - span: - lo: 202 - hi: 204 - span: - lo: 3 - hi: 7 - - name: registers - definitions: - - mode: Private - type_: Boolean - name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":229,\\\"hi\\\":231}\"}" - value: - Literal: - Boolean: - - true - - span: - lo: 241 - hi: 245 - span: - lo: 233 - hi: 237 - - mode: Private - type_: U8 - name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":247,\\\"hi\\\":249}\"}" - value: - Literal: - U8: - - "2" - - span: - lo: 259 - hi: 262 - span: - lo: 251 - hi: 253 - - mode: Private - type_: Field - name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":264,\\\"hi\\\":266}\"}" - value: - Literal: - Field: - - "0" - - span: - lo: 276 - hi: 282 - span: - lo: 268 - hi: 273 - - mode: Private - type_: Group - name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":284,\\\"hi\\\":286}\"}" - value: - Literal: - Group: - Tuple: - x: - Number: - - "0" - - span: - lo: 297 - hi: 298 - y: - Number: - - "1" - - span: - lo: 300 - hi: 301 - span: - lo: 296 - hi: 307 - span: - lo: 288 - hi: 293 - - mode: Private - type_: Address - name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":309,\\\"hi\\\":311}\"}" - value: - Literal: - Address: - - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 - - span: - lo: 323 - hi: 386 - span: - lo: 313 - hi: 320 - - mode: Private - type_: I8 - name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":388,\\\"hi\\\":390}\"}" - value: - Unary: - receiver: - Literal: - I8: - - "1" - - span: - lo: 398 - hi: 401 - op: Negate - span: - lo: 397 - hi: 401 - span: - lo: 392 - hi: 394 - span: - lo: 218 - hi: 227 diff --git a/tests/expectations/parser/inputs/input_constant.out b/tests/expectations/parser/inputs/input_constant.out deleted file mode 100644 index 62d5f3cd67..0000000000 --- a/tests/expectations/parser/inputs/input_constant.out +++ /dev/null @@ -1,207 +0,0 @@ ---- -namespace: Input -expectation: Pass -outputs: - - sections: - - name: main - definitions: - - mode: Const - type_: Boolean - name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - value: - Literal: - Boolean: - - true - - span: - lo: 29 - hi: 33 - span: - lo: 21 - hi: 25 - - mode: Const - type_: U8 - name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" - value: - Literal: - U8: - - "2" - - span: - lo: 55 - hi: 58 - span: - lo: 47 - hi: 49 - - mode: Const - type_: Field - name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":69,\\\"hi\\\":70}\"}" - value: - Literal: - Field: - - "0" - - span: - lo: 80 - hi: 86 - span: - lo: 72 - hi: 77 - - mode: Const - type_: Group - name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":97,\\\"hi\\\":98}\"}" - value: - Literal: - Group: - Tuple: - x: - Number: - - "0" - - span: - lo: 109 - hi: 110 - y: - Number: - - "1" - - span: - lo: 112 - hi: 113 - span: - lo: 108 - hi: 119 - span: - lo: 100 - hi: 105 - - mode: Const - type_: Address - name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":130,\\\"hi\\\":131}\"}" - value: - Literal: - Address: - - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 - - span: - lo: 143 - hi: 206 - span: - lo: 133 - hi: 140 - - mode: Const - type_: I8 - name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":217,\\\"hi\\\":218}\"}" - value: - Unary: - receiver: - Literal: - I8: - - "2" - - span: - lo: 229 - hi: 232 - op: Negate - span: - lo: 228 - hi: 232 - span: - lo: 220 - hi: 222 - span: - lo: 3 - hi: 7 - - name: registers - definitions: - - mode: Private - type_: Boolean - name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":247,\\\"hi\\\":249}\"}" - value: - Literal: - Boolean: - - true - - span: - lo: 259 - hi: 263 - span: - lo: 251 - hi: 255 - - mode: Private - type_: U8 - name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":265,\\\"hi\\\":267}\"}" - value: - Literal: - U8: - - "2" - - span: - lo: 277 - hi: 280 - span: - lo: 269 - hi: 271 - - mode: Private - type_: Field - name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":282,\\\"hi\\\":284}\"}" - value: - Literal: - Field: - - "0" - - span: - lo: 294 - hi: 300 - span: - lo: 286 - hi: 291 - - mode: Private - type_: Group - name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":302,\\\"hi\\\":304}\"}" - value: - Literal: - Group: - Tuple: - x: - Number: - - "0" - - span: - lo: 315 - hi: 316 - y: - Number: - - "1" - - span: - lo: 318 - hi: 319 - span: - lo: 314 - hi: 325 - span: - lo: 306 - hi: 311 - - mode: Private - type_: Address - name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":327,\\\"hi\\\":329}\"}" - value: - Literal: - Address: - - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 - - span: - lo: 341 - hi: 404 - span: - lo: 331 - hi: 338 - - mode: Private - type_: I8 - name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":406,\\\"hi\\\":408}\"}" - value: - Unary: - receiver: - Literal: - I8: - - "1" - - span: - lo: 416 - hi: 419 - op: Negate - span: - lo: 415 - hi: 419 - span: - lo: 410 - hi: 412 - span: - lo: 236 - hi: 245 diff --git a/tests/expectations/parser/inputs/input_constant_public_fail.out b/tests/expectations/parser/inputs/input_constant_public_fail.out deleted file mode 100644 index 3a6bfe1661..0000000000 --- a/tests/expectations/parser/inputs/input_constant_public_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Input -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'public'\n --> test:4:10\n |\n 4 | constant public a: bool = true; \n | ^^^^^^" diff --git a/tests/expectations/parser/inputs/input_fail.out b/tests/expectations/parser/inputs/input_fail.out deleted file mode 100644 index 5f8bf95de3..0000000000 --- a/tests/expectations/parser/inputs/input_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Input -expectation: Fail -outputs: - - "Error [EPAR0370000]: main\n --> test:3:1\n |\n 3 | main\n | ^^^^" diff --git a/tests/expectations/parser/inputs/input_public.out b/tests/expectations/parser/inputs/input_public.out deleted file mode 100644 index 18d7b88b7c..0000000000 --- a/tests/expectations/parser/inputs/input_public.out +++ /dev/null @@ -1,207 +0,0 @@ ---- -namespace: Input -expectation: Pass -outputs: - - sections: - - name: main - definitions: - - mode: Public - type_: Boolean - name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - value: - Literal: - Boolean: - - true - - span: - lo: 27 - hi: 31 - span: - lo: 19 - hi: 23 - - mode: Public - type_: U8 - name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":57,\\\"hi\\\":58}\"}" - value: - Literal: - U8: - - "2" - - span: - lo: 68 - hi: 71 - span: - lo: 60 - hi: 62 - - mode: Public - type_: Field - name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":100,\\\"hi\\\":101}\"}" - value: - Literal: - Field: - - "0" - - span: - lo: 111 - hi: 117 - span: - lo: 103 - hi: 108 - - mode: Public - type_: Group - name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":146,\\\"hi\\\":147}\"}" - value: - Literal: - Group: - Tuple: - x: - Number: - - "0" - - span: - lo: 158 - hi: 159 - y: - Number: - - "1" - - span: - lo: 161 - hi: 162 - span: - lo: 157 - hi: 168 - span: - lo: 149 - hi: 154 - - mode: Public - type_: Address - name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":187,\\\"hi\\\":188}\"}" - value: - Literal: - Address: - - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 - - span: - lo: 200 - hi: 263 - span: - lo: 190 - hi: 197 - - mode: Public - type_: I8 - name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":272,\\\"hi\\\":273}\"}" - value: - Unary: - receiver: - Literal: - I8: - - "2" - - span: - lo: 284 - hi: 287 - op: Negate - span: - lo: 283 - hi: 287 - span: - lo: 275 - hi: 277 - span: - lo: 3 - hi: 7 - - name: registers - definitions: - - mode: Private - type_: Boolean - name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":302,\\\"hi\\\":304}\"}" - value: - Literal: - Boolean: - - true - - span: - lo: 314 - hi: 318 - span: - lo: 306 - hi: 310 - - mode: Private - type_: U8 - name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":337,\\\"hi\\\":339}\"}" - value: - Literal: - U8: - - "2" - - span: - lo: 349 - hi: 352 - span: - lo: 341 - hi: 343 - - mode: Private - type_: Field - name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":374,\\\"hi\\\":376}\"}" - value: - Literal: - Field: - - "0" - - span: - lo: 386 - hi: 392 - span: - lo: 378 - hi: 383 - - mode: Private - type_: Group - name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":414,\\\"hi\\\":416}\"}" - value: - Literal: - Group: - Tuple: - x: - Number: - - "0" - - span: - lo: 427 - hi: 428 - y: - Number: - - "1" - - span: - lo: 430 - hi: 431 - span: - lo: 426 - hi: 437 - span: - lo: 418 - hi: 423 - - mode: Private - type_: Address - name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":449,\\\"hi\\\":451}\"}" - value: - Literal: - Address: - - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 - - span: - lo: 463 - hi: 526 - span: - lo: 453 - hi: 460 - - mode: Private - type_: I8 - name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":528,\\\"hi\\\":530}\"}" - value: - Unary: - receiver: - Literal: - I8: - - "1" - - span: - lo: 538 - hi: 541 - op: Negate - span: - lo: 537 - hi: 541 - span: - lo: 532 - hi: 534 - span: - lo: 291 - hi: 300 diff --git a/tests/expectations/parser/inputs/input_public_constant_fail.out b/tests/expectations/parser/inputs/input_public_constant_fail.out deleted file mode 100644 index 0c14795cf5..0000000000 --- a/tests/expectations/parser/inputs/input_public_constant_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Input -expectation: Fail -outputs: - - "Error [EPAR0370020]: A parameter cannot be both public and const.\n --> test:4:1\n |\n 4 | public constant a: bool = true;\n | ^^^^^^^^^^^^^^^" diff --git a/tests/expectations/parser/program/backslash_eof.out b/tests/expectations/parser/program/backslash_eof.out deleted file mode 100644 index ffd5855107..0000000000 --- a/tests/expectations/parser/program/backslash_eof.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n" diff --git a/tests/expectations/parser/program/bidi_comment_2_fail.out b/tests/expectations/parser/program/bidi_comment_2_fail.out deleted file mode 100644 index 8ab69aa897..0000000000 --- a/tests/expectations/parser/program/bidi_comment_2_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370021]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/program/bidi_comment_fail.out b/tests/expectations/parser/program/bidi_comment_fail.out deleted file mode 100644 index 8ab69aa897..0000000000 --- a/tests/expectations/parser/program/bidi_comment_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370021]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/program/dollar_eof.out b/tests/expectations/parser/program/dollar_eof.out deleted file mode 100644 index 7c1ad0c68b..0000000000 --- a/tests/expectations/parser/program/dollar_eof.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `$`.\n" diff --git a/tests/expectations/parser/program/escape_u8_eof.out b/tests/expectations/parser/program/escape_u8_eof.out deleted file mode 100644 index 38a3131683..0000000000 --- a/tests/expectations/parser/program/escape_u8_eof.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `\\1u8`.\n" diff --git a/tests/expectations/parser/program/hex_eof.out b/tests/expectations/parser/program/hex_eof.out deleted file mode 100644 index e2e5c92722..0000000000 --- a/tests/expectations/parser/program/hex_eof.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/program/pipe_eof.out b/tests/expectations/parser/program/pipe_eof.out deleted file mode 100644 index cd3e0fe4fc..0000000000 --- a/tests/expectations/parser/program/pipe_eof.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/parser/program/q_eof.out b/tests/expectations/parser/program/q_eof.out deleted file mode 100644 index 2a1de6e129..0000000000 --- a/tests/expectations/parser/program/q_eof.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370014]: Expected a closed string but found ``." diff --git a/tests/expectations/parser/program/sq_eof.out b/tests/expectations/parser/program/sq_eof.out deleted file mode 100644 index 6d71c1dc6b..0000000000 --- a/tests/expectations/parser/program/sq_eof.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `'`.\n" diff --git a/tests/expectations/parser/program/tilde_eof.out b/tests/expectations/parser/program/tilde_eof.out deleted file mode 100644 index 10c51ba0fe..0000000000 --- a/tests/expectations/parser/program/tilde_eof.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" diff --git a/tests/expectations/parser/program/unclosed_unicode_eof_fail.out b/tests/expectations/parser/program/unclosed_unicode_eof_fail.out deleted file mode 100644 index 15e4c10e35..0000000000 --- a/tests/expectations/parser/program/unclosed_unicode_eof_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370017]: Could not lex the following content: `'\\u`.\n" diff --git a/tests/expectations/parser/serialize/one_plus_one.out b/tests/expectations/parser/serialize/one_plus_one.out deleted file mode 100644 index f5a47bf8b9..0000000000 --- a/tests/expectations/parser/serialize/one_plus_one.out +++ /dev/null @@ -1,27 +0,0 @@ ---- -namespace: Serialize -expectation: Pass -outputs: - - name: "" - network: "" - expected_input: [] - imports: {} - functions: - "{\"name\":\"main\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":15}\"}": - identifier: "{\"name\":\"main\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":15}\"}" - input: [] - output: U8 - core_mapping: ~ - block: - statements: - - Return: - expression: - Binary: - left: - Literal: - U8: "1" - right: - Literal: - U8: "1" - op: Add - circuits: {} diff --git a/tests/expectations/parser/serialize/parser_error.out b/tests/expectations/parser/serialize/parser_error.out deleted file mode 100644 index d37e0e45a0..0000000000 --- a/tests/expectations/parser/serialize/parser_error.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Serialize -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected 'function', 'circuit', 'test' -- found 'invalid'\n --> test:3:1\n |\n 3 | invalid\n | ^^^^^^^" diff --git a/tests/expectations/parser/statement/assign.out b/tests/expectations/parser/statement/assign.out deleted file mode 100644 index a3e12f1b46..0000000000 --- a/tests/expectations/parser/statement/assign.out +++ /dev/null @@ -1,45 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - value: - Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":8}\"}" - span: - lo: 0 - hi: 8 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - value: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - op: Add - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 7 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" - value: - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - arguments: [] - span: - lo: 4 - hi: 7 - span: - lo: 0 - hi: 7 diff --git a/tests/expectations/parser/statement/block.out b/tests/expectations/parser/statement/block.out deleted file mode 100644 index cef6defe29..0000000000 --- a/tests/expectations/parser/statement/block.out +++ /dev/null @@ -1,84 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Block: - statements: [] - span: - lo: 0 - hi: 2 - - Block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 9 - hi: 12 - span: - lo: 2 - hi: 12 - span: - lo: 0 - hi: 15 - - Block: - statements: - - Block: - statements: [] - span: - lo: 1 - hi: 3 - span: - lo: 0 - hi: 4 - - Block: - statements: - - Block: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 11 - hi: 14 - span: - lo: 4 - hi: 14 - span: - lo: 2 - hi: 17 - span: - lo: 0 - hi: 19 - - Block: - statements: - - Conditional: - condition: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - then: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 16 - hi: 19 - span: - lo: 9 - hi: 19 - span: - lo: 7 - hi: 22 - otherwise: ~ - span: - lo: 2 - hi: 22 - span: - lo: 0 - hi: 24 diff --git a/tests/expectations/parser/statement/conditional.out b/tests/expectations/parser/statement/conditional.out deleted file mode 100644 index bd6e2b982d..0000000000 --- a/tests/expectations/parser/statement/conditional.out +++ /dev/null @@ -1,143 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Conditional: - condition: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" - then: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 14 - hi: 17 - span: - lo: 7 - hi: 17 - span: - lo: 5 - hi: 20 - otherwise: ~ - span: - lo: 0 - hi: 20 - - Conditional: - condition: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - then: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 16 - hi: 19 - span: - lo: 9 - hi: 19 - span: - lo: 7 - hi: 22 - otherwise: ~ - span: - lo: 0 - hi: 22 - - Conditional: - condition: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - then: - statements: [] - span: - lo: 7 - hi: 9 - otherwise: - Block: - statements: [] - span: - lo: 15 - hi: 17 - span: - lo: 0 - hi: 17 - - Conditional: - condition: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - op: Add - span: - lo: 3 - hi: 6 - then: - statements: [] - span: - lo: 7 - hi: 9 - otherwise: - Conditional: - condition: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - right: - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - op: Add - span: - lo: 18 - hi: 21 - then: - statements: [] - span: - lo: 22 - hi: 24 - otherwise: - Block: - statements: [] - span: - lo: 30 - hi: 32 - span: - lo: 15 - hi: 32 - span: - lo: 0 - hi: 32 - - Conditional: - condition: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - op: Add - span: - lo: 3 - hi: 6 - then: - statements: - - Return: - expression: - Literal: - U8: - - "0" - - span: - lo: 16 - hi: 19 - span: - lo: 9 - hi: 19 - span: - lo: 7 - hi: 22 - otherwise: ~ - span: - lo: 0 - hi: 22 diff --git a/tests/expectations/parser/statement/conditional_fail.out b/tests/expectations/parser/statement/conditional_fail.out deleted file mode 100644 index 6282f02aa2..0000000000 --- a/tests/expectations/parser/statement/conditional_fail.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:23\n |\n 1 | if true {} else let x = 2;\n | ^" diff --git a/tests/expectations/parser/statement/console.out b/tests/expectations/parser/statement/console.out deleted file mode 100644 index b50fd15ea8..0000000000 --- a/tests/expectations/parser/statement/console.out +++ /dev/null @@ -1,83 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Console: - function: - Assert: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Console: - function: - Error: - string: "{}" - parameters: - - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - span: - lo: 13 - hi: 22 - span: - lo: 0 - hi: 22 - - Console: - function: - Error: - string: "{}{}" - parameters: - - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":22,\\\"hi\\\":23}\"}" - - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":25,\\\"hi\\\":26}\"}" - span: - lo: 13 - hi: 27 - span: - lo: 0 - hi: 27 - - Console: - function: - Error: - string: x - parameters: [] - span: - lo: 13 - hi: 18 - span: - lo: 0 - hi: 18 - - Console: - function: - Log: - string: "{}" - parameters: - - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" - span: - lo: 11 - hi: 20 - span: - lo: 0 - hi: 20 - - Console: - function: - Log: - string: "{}{}" - parameters: - - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" - - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" - span: - lo: 11 - hi: 25 - span: - lo: 0 - hi: 25 - - Console: - function: - Log: - string: x - parameters: [] - span: - lo: 11 - hi: 16 - span: - lo: 0 - hi: 16 diff --git a/tests/expectations/parser/statement/console_fail.out b/tests/expectations/parser/statement/console_fail.out deleted file mode 100644 index 782ac5f37a..0000000000 --- a/tests/expectations/parser/statement/console_fail.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370021]: Unicode bidi override code point encountered." - - "Error [EPAR0370009]: unexpected string: expected 'formatted static_string', found '1'\n --> test:1:13\n |\n 1 | console.log(1);\n | ^" - - "Error [EPAR0370007]: unexpected identifier: expected 'assert', 'error', 'log' -- found 'test'\n --> test:1:9\n |\n 1 | console.test();\n | ^^^^" diff --git a/tests/expectations/parser/statement/definition.out b/tests/expectations/parser/statement/definition.out deleted file mode 100644 index 5844b2fbb5..0000000000 --- a/tests/expectations/parser/statement/definition.out +++ /dev/null @@ -1,200 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U16 - value: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: Add - span: - lo: 13 - hi: 16 - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - arguments: [] - span: - lo: 12 - hi: 15 - span: - lo: 0 - hi: 15 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: String - value: - Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":20}\"}" - span: - lo: 0 - hi: 20 - - Definition: - declaration_type: Const - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - type_: I8 - value: - Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":18}\"}" - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Const - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - type_: I16 - value: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Add - span: - lo: 15 - hi: 18 - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Const - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - type_: I8 - value: - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" - arguments: [] - span: - lo: 14 - hi: 17 - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Const - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - type_: String - value: - Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":22}\"}" - span: - lo: 0 - hi: 22 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U32 - value: - Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":17}\"}" - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U32 - value: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - op: Add - span: - lo: 13 - hi: 16 - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U32 - value: - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" - arguments: [] - span: - lo: 13 - hi: 16 - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Const - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - type_: U32 - value: - Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":19}\"}" - span: - lo: 0 - hi: 19 - - Definition: - declaration_type: Const - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - type_: U32 - value: - Binary: - left: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - right: - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Add - span: - lo: 15 - hi: 18 - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Const - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - type_: U32 - value: - Call: - function: - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" - arguments: [] - span: - lo: 15 - hi: 18 - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: Address - value: - Literal: - Address: - - aleo15u4r0gzjtqzepkgurgn7p3u5kkhs9p74rx6aun3uh2s5std6759svgmg53 - - span: - lo: 17 - hi: 80 - span: - lo: 0 - hi: 80 diff --git a/tests/expectations/parser/statement/definition_fail.out b/tests/expectations/parser/statement/definition_fail.out deleted file mode 100644 index eb2aacecf5..0000000000 --- a/tests/expectations/parser/statement/definition_fail.out +++ /dev/null @@ -1,47 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = expr;\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = ();\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = x+y;\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = (x,y);\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = x();\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = expr;\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = ();\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = x+y;\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = (x,y);\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = x();\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = expr;\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = ();\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = x+y;\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = (x,y);\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = x();\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = expr;\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = ();\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = x+y;\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = (x,y);\n | ^" - - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = x();\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x,y,,) = ();\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (,x,y) = ();\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x,,y) = ();\n | ^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8; (2,,)] = [[0,0], [0,0]];\n | ^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'const'\n --> test:1:8\n |\n 1 | let x: const = expr;\n | ^^^^^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'let'\n --> test:1:10\n |\n 1 | const x: let = expr;\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ''\n --> test:1:1\n |\n 1 | let\n | ^^^" - - "Error [EPAR0370005]: expected : -- found ''\n --> test:1:5\n |\n 1 | let x\n | ^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found ''\n --> test:1:6\n |\n 1 | let x:\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = (a, y]);\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:5\n |\n 1 | let = 1u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ';'\n --> test:1:4\n |\n 1 | let;\n | ^" - - "Error [EPAR0370005]: expected : -- found '1'\n --> test:1:7\n |\n 1 | let x 1u8;\n | ^" - - "Error [EPAR0370005]: expected = -- found ';'\n --> test:1:10\n |\n 1 | let x: u8;\n | ^" - - "Error [EPAR0370005]: expected = -- found ''\n --> test:1:8\n |\n 1 | let x: u8\n | ^^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '='\n --> test:1:8\n |\n 1 | let x: = 1;\n | ^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8] = 1;\n | ^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8;\n | ^" - - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:15\n |\n 1 | let dbg: u8 = ];\n | ^" - - "Error [EPAR0370017]: Could not lex the following content: `🦀:`.\n" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x) = ...;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x,) = ...;\n | ^" diff --git a/tests/expectations/parser/statement/expression.out b/tests/expectations/parser/statement/expression.out deleted file mode 100644 index 51d6760b69..0000000000 --- a/tests/expectations/parser/statement/expression.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | expr;\n | ^^^^^" - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x+y;\n | ^^^^" - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x();\n | ^^^^" diff --git a/tests/expectations/parser/statement/expression_fail.out b/tests/expectations/parser/statement/expression_fail.out deleted file mode 100644 index bf934dda75..0000000000 --- a/tests/expectations/parser/statement/expression_fail.out +++ /dev/null @@ -1,10 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:2\n |\n 1 | (];\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [);\n | ^" - - "Error [EPAR0370017]: Could not lex the following content: `\\y`.\n" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:6\n |\n 1 | (x,y|;\n | ^" - - "Error [EPAR0370005]: expected ; -- found '['\n --> test:1:2\n |\n 1 | x[};\n | ^" - - "Error [EPAR0370005]: expected ) -- found ']'\n --> test:1:6\n |\n 1 | (x, y];\n | ^" diff --git a/tests/expectations/parser/statement/hex_int_fail.out b/tests/expectations/parser/statement/hex_int_fail.out deleted file mode 100644 index e5abf3d258..0000000000 --- a/tests/expectations/parser/statement/hex_int_fail.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." - - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." - - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/statement/iteration.out b/tests/expectations/parser/statement/iteration.out deleted file mode 100644 index 404942821b..0000000000 --- a/tests/expectations/parser/statement/iteration.out +++ /dev/null @@ -1,136 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Iteration: - variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - start: - Literal: - U8: - - "0" - - span: - lo: 13 - hi: 16 - stop: - Literal: - U8: - - "7" - - span: - lo: 18 - hi: 21 - inclusive: false - block: - statements: [] - span: - lo: 22 - hi: 24 - span: - lo: 0 - hi: 24 - - Iteration: - variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: I64 - start: - Literal: - I64: - - "0" - - span: - lo: 14 - hi: 18 - stop: - Literal: - I64: - - "7" - - span: - lo: 20 - hi: 24 - inclusive: false - block: - statements: - - Return: - expression: - Literal: - U8: - - "1" - - span: - lo: 34 - hi: 37 - span: - lo: 27 - hi: 37 - span: - lo: 25 - hi: 40 - span: - lo: 0 - hi: 40 - - Iteration: - variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: Field - start: - Literal: - Field: - - "0" - - span: - lo: 16 - hi: 22 - stop: - Literal: - U8: - - "99" - - span: - lo: 24 - hi: 28 - inclusive: false - block: - statements: - - Return: - expression: - Literal: - U8: - - "1" - - span: - lo: 38 - hi: 41 - span: - lo: 31 - hi: 41 - span: - lo: 29 - hi: 44 - span: - lo: 0 - hi: 44 - - Iteration: - variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: Boolean - start: - Literal: - U8: - - "0" - - span: - lo: 15 - hi: 18 - stop: - Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":24}\"}" - inclusive: false - block: - statements: - - Return: - expression: - Literal: - U8: - - "1" - - span: - lo: 34 - hi: 37 - span: - lo: 27 - hi: 37 - span: - lo: 25 - hi: 40 - span: - lo: 0 - hi: 40 diff --git a/tests/expectations/parser/statement/let_mut_recover.out b/tests/expectations/parser/statement/let_mut_recover.out deleted file mode 100644 index f3ab17869e..0000000000 --- a/tests/expectations/parser/statement/let_mut_recover.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected -> -- found '{'\n --> test:3:16\n |\n 3 | function foo() {\n | ^" diff --git a/tests/expectations/parser/statement/return.out b/tests/expectations/parser/statement/return.out deleted file mode 100644 index 9b608bd054..0000000000 --- a/tests/expectations/parser/statement/return.out +++ /dev/null @@ -1,21 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Return: - expression: - Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":11}\"}" - span: - lo: 0 - hi: 11 - - Return: - expression: - Literal: - U8: - - "5" - - span: - lo: 7 - hi: 10 - span: - lo: 0 - hi: 10 diff --git a/tests/expectations/parser/statement/return_fail.out b/tests/expectations/parser/statement/return_fail.out deleted file mode 100644 index 09afea018d..0000000000 --- a/tests/expectations/parser/statement/return_fail.out +++ /dev/null @@ -1,7 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" - - "Error [EPAR0370018]: Could not parse the implicit value: 5.\n --> test:1:8\n |\n 1 | return 5\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:2:1\n |\n 2 | if x {}\n | ^^" diff --git a/tests/expectations/parser/unreachable/define.out b/tests/expectations/parser/unreachable/define.out deleted file mode 100644 index 67b881be2c..0000000000 --- a/tests/expectations/parser/unreachable/define.out +++ /dev/null @@ -1,49 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:1\n |\n 1 | ; x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '.'\n --> test:1:1\n |\n 1 | . x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'import'\n --> test:1:1\n |\n 1 | import x = 10u8;\n | ^^^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:1\n |\n 1 | , x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [ x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:1\n |\n 1 | ] x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:11\n |\n 1 | { x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '}'\n --> test:1:1\n |\n 1 | } x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ) -- found '='\n --> test:1:5\n |\n 1 | ( x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ')'\n --> test:1:1\n |\n 1 | ) x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ':'\n --> test:1:1\n |\n 1 | : x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '::'\n --> test:1:1\n |\n 1 | :: x = 10u8;\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '?'\n --> test:1:1\n |\n 1 | ? x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '_'\n --> test:1:1\n |\n 1 | _ x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:1\n |\n 1 | = x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '=='\n --> test:1:1\n |\n 1 | == x = 10u8;\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '!='\n --> test:1:1\n |\n 1 | != x = 10u8;\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>'\n --> test:1:1\n |\n 1 | > x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>='\n --> test:1:1\n |\n 1 | >= x = 10u8;\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<'\n --> test:1:1\n |\n 1 | < x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<='\n --> test:1:1\n |\n 1 | <= x = 10u8;\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>'\n --> test:1:1\n |\n 1 | > x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '..'\n --> test:1:1\n |\n 1 | .. x = 10u8;\n | ^^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:4\n |\n 1 | as x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected . -- found 'x'\n --> test:1:9\n |\n 1 | console x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | for x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected { -- found '='\n --> test:1:6\n |\n 1 | if x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'else'\n --> test:1:1\n |\n 1 | else x = 10u8;\n | ^^^^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:4\n |\n 1 | i8 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | i16 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | i32 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | i64 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | i128 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:4\n |\n 1 | u8 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | u16 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | u32 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | u64 x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | u128 x = 10u8;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '&'\n --> test:1:1\n |\n 1 | & x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found '='\n --> test:1:10\n |\n 1 | return x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | self x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | Self x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | true x = 10u8;\n | ^" - - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:7\n |\n 1 | false x = 10u8;\n | ^" - - "Error [EPAR0370018]: Could not parse the implicit value: 0.\n --> test:1:1\n |\n 1 | 0 x = 10u8;\n | ^" diff --git a/tests/expectations/parser/unreachable/eat_ident.out b/tests/expectations/parser/unreachable/eat_ident.out deleted file mode 100644 index 39f564c282..0000000000 --- a/tests/expectations/parser/unreachable/eat_ident.out +++ /dev/null @@ -1,5 +0,0 @@ ---- -namespace: Parse -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ';'\n --> test:3:9\n |\n 3 | circuit ;\n | ^" diff --git a/tests/expectations/parser/unreachable/eat_int.out b/tests/expectations/parser/unreachable/eat_int.out deleted file mode 100644 index 600a89e081..0000000000 --- a/tests/expectations/parser/unreachable/eat_int.out +++ /dev/null @@ -1,56 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '-'\n --> test:1:3\n |\n 1 | x.-12\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_;\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_.\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_import\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_,\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_*\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_+\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_-\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_/\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_[\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_]\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_{\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_}\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_(\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_)\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_:\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_::\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_?\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0__\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_=\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_==\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_!\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_!=\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_>\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_>=\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_<\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_<=\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_>\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_..\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_as\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_console\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_const\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_let\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_for\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_if\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_else\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i8\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i16\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i32\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i64\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i128\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u8\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u16\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u32\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u64\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u128\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_&\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_return\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_self\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_Self\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_true\n | ^" - - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_false\n | ^" diff --git a/tests/expectations/parser/unreachable/equality_and_order_expression.out b/tests/expectations/parser/unreachable/equality_and_order_expression.out deleted file mode 100644 index 6fa21e2342..0000000000 --- a/tests/expectations/parser/unreachable/equality_and_order_expression.out +++ /dev/null @@ -1,56 +0,0 @@ ---- -namespace: ParseExpression -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ; {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 . {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 import {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 , {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 * {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 + {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 - {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 / {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 [ {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ] {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 { {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 } {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ( {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ) {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 : {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 :: {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ? {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 _ {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 = {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 == {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ! {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 != {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 > {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 >= {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 < {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 <= {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 > {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 .. {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 as {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 console {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 const {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 let {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 for {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 if {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 else {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i8 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i16 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i32 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i64 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i128 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u8 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u16 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u32 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u64 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u128 {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 & {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 return {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 self {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 Self {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 true {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 false {}\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 0 {}\n | ^^" diff --git a/tests/expectations/parser/unreachable/expect_ident.out b/tests/expectations/parser/unreachable/expect_ident.out deleted file mode 100644 index af9d367a5a..0000000000 --- a/tests/expectations/parser/unreachable/expect_ident.out +++ /dev/null @@ -1,56 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ';'\n --> test:1:4\n |\n 1 | x::;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '.'\n --> test:1:4\n |\n 1 | x::.\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'import'\n --> test:1:4\n |\n 1 | x::import\n | ^^^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x::,\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '*'\n --> test:1:4\n |\n 1 | x::*\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '+'\n --> test:1:4\n |\n 1 | x::+\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '-'\n --> test:1:4\n |\n 1 | x::-\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '/'\n --> test:1:4\n |\n 1 | x::/\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '['\n --> test:1:4\n |\n 1 | x::[\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ']'\n --> test:1:4\n |\n 1 | x::]\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '{'\n --> test:1:4\n |\n 1 | x::{\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '}'\n --> test:1:4\n |\n 1 | x::}\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:4\n |\n 1 | x::(\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ')'\n --> test:1:4\n |\n 1 | x::)\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ':'\n --> test:1:4\n |\n 1 | x:::\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '::'\n --> test:1:4\n |\n 1 | x::::\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '?'\n --> test:1:4\n |\n 1 | x::?\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '_'\n --> test:1:4\n |\n 1 | x::_\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:4\n |\n 1 | x::=\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '=='\n --> test:1:4\n |\n 1 | x::==\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '!'\n --> test:1:4\n |\n 1 | x::!\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '!='\n --> test:1:4\n |\n 1 | x::!=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '>'\n --> test:1:4\n |\n 1 | x::>\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '>='\n --> test:1:4\n |\n 1 | x::>=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '<'\n --> test:1:4\n |\n 1 | x::<\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '<='\n --> test:1:4\n |\n 1 | x::<=\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '>'\n --> test:1:4\n |\n 1 | x::>\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '..'\n --> test:1:4\n |\n 1 | x::..\n | ^^" - - "Error [EPAR0370005]: expected ; -- found ''\n --> test:1:4\n |\n 1 | x::as\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'console'\n --> test:1:4\n |\n 1 | x::console\n | ^^^^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'const'\n --> test:1:4\n |\n 1 | x::const\n | ^^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'let'\n --> test:1:4\n |\n 1 | x::let\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'for'\n --> test:1:4\n |\n 1 | x::for\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'if'\n --> test:1:4\n |\n 1 | x::if\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'else'\n --> test:1:4\n |\n 1 | x::else\n | ^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i8'\n --> test:1:4\n |\n 1 | x::i8\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i16'\n --> test:1:4\n |\n 1 | x::i16\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i32'\n --> test:1:4\n |\n 1 | x::i32\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i64'\n --> test:1:4\n |\n 1 | x::i64\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i128'\n --> test:1:4\n |\n 1 | x::i128\n | ^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u8'\n --> test:1:4\n |\n 1 | x::u8\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u16'\n --> test:1:4\n |\n 1 | x::u16\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u32'\n --> test:1:4\n |\n 1 | x::u32\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u64'\n --> test:1:4\n |\n 1 | x::u64\n | ^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u128'\n --> test:1:4\n |\n 1 | x::u128\n | ^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '&'\n --> test:1:4\n |\n 1 | x::&\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'return'\n --> test:1:4\n |\n 1 | x::return\n | ^^^^^^" - - "Error [EPAR0370005]: expected ; -- found ''\n --> test:1:4\n |\n 1 | x::self\n | ^^^^" - - "Error [EPAR0370005]: expected ; -- found ''\n --> test:1:4\n |\n 1 | x::Self\n | ^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'true'\n --> test:1:4\n |\n 1 | x::true\n | ^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'false'\n --> test:1:4\n |\n 1 | x::false\n | ^^^^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '0'\n --> test:1:4\n |\n 1 | x::0\n | ^" diff --git a/tests/expectations/parser/unreachable/math_op_fail.out b/tests/expectations/parser/unreachable/math_op_fail.out deleted file mode 100644 index cf3f11861f..0000000000 --- a/tests/expectations/parser/unreachable/math_op_fail.out +++ /dev/null @@ -1,63 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ; b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a import b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a , b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a [ b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ] b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a { b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a } b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ( b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ) b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a : b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ? b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a _ b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a = b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ! b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a .. b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a console b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a const b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a let b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a for b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a if b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a else b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i8 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i16 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i32 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i64 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i128 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u8 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u16 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u32 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u64 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u128 b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a & b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a return b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a self b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a Self b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a true b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a false b;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a 0 b;\n | ^" - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x;=b;\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:3\n |\n 1 | x.=b;\n | ^" - - "Error [EPAR0370005]: expected ; -- found ','\n --> test:1:2\n |\n 1 | x,=b; // 43\n | ^" - - "Error [EPAR0370005]: expected ; -- found '['\n --> test:1:2\n |\n 1 | x[=b;\n | ^" - - "Error [EPAR0370005]: expected ; -- found ']'\n --> test:1:2\n |\n 1 | x]=b;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:3\n |\n 1 | x{=b;\n | ^" - - "Error [EPAR0370005]: expected ; -- found '}'\n --> test:1:2\n |\n 1 | x}=b;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:4\n |\n 1 | x=(;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ')'\n --> test:1:3\n |\n 1 | x=);\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found ':'\n --> test:1:3\n |\n 1 | x=:;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '::'\n --> test:1:3\n |\n 1 | x=::;\n | ^^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:3\n |\n 1 | x?=b;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:4\n |\n 1 | x!==b;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:4\n |\n 1 | x>==b;\n | ^" - - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:4\n |\n 1 | x<==b;\n | ^" - - "Error [EPAR0370005]: expected ; -- found '..'\n --> test:1:2\n |\n 1 | x..=b;\n | ^^" - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x==b;\n | ^^^^^" - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x!=b;\n | ^^^^^" - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x<=b;\n | ^^^^^" - - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" diff --git a/tests/expectations/parser/unreachable/math_op_pass.out b/tests/expectations/parser/unreachable/math_op_pass.out deleted file mode 100644 index 01b3561a4c..0000000000 --- a/tests/expectations/parser/unreachable/math_op_pass.out +++ /dev/null @@ -1,312 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Binary: - left: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Eq - span: - lo: 12 - hi: 18 - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Binary: - left: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Neq - span: - lo: 12 - hi: 18 - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Binary: - left: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Gt - span: - lo: 12 - hi: 17 - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Binary: - left: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Gte - span: - lo: 12 - hi: 18 - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Binary: - left: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Lt - span: - lo: 12 - hi: 17 - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Binary: - left: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" - op: Lte - span: - lo: 12 - hi: 18 - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Binary: - left: - Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" - right: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" - op: Gt - span: - lo: 12 - hi: 17 - span: - lo: 0 - hi: 17 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"x_\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" - span: - lo: 0 - hi: 4 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xconsole\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":8}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" - span: - lo: 0 - hi: 10 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xconst\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - span: - lo: 0 - hi: 8 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xlet\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 6 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xfor\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 6 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xif\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - span: - lo: 0 - hi: 5 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xelse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - span: - lo: 0 - hi: 7 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xi8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - span: - lo: 0 - hi: 5 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xi16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 6 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xi32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 6 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xi64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 6 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xi128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - span: - lo: 0 - hi: 7 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xu8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - span: - lo: 0 - hi: 5 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xu16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 6 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 6 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xu64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" - span: - lo: 0 - hi: 6 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xu128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - span: - lo: 0 - hi: 7 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xreturn\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":7}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" - span: - lo: 0 - hi: 9 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xtrue\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" - span: - lo: 0 - hi: 7 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"xfalse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" - span: - lo: 0 - hi: 8 - - Assign: - operation: Assign - place: - Identifier: "{\"name\":\"x0\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" - value: - Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" - span: - lo: 0 - hi: 4 diff --git a/tests/expectations/parser/unreachable/postfix_fail.out b/tests/expectations/parser/unreachable/postfix_fail.out deleted file mode 100644 index 1391c02928..0000000000 --- a/tests/expectations/parser/unreachable/postfix_fail.out +++ /dev/null @@ -1,24 +0,0 @@ ---- -namespace: ParseStatement -expectation: Fail -outputs: - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a;;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a.;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a,;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a[;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a];\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a{;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a};\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a);\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a:;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a?;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a=;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a==;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a!;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a!=;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a>;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a>=;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a<;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a<=;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a>;\n | ^" - - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a..;\n | ^" diff --git a/tests/expectations/parser/unreachable/postfix_pass.out b/tests/expectations/parser/unreachable/postfix_pass.out deleted file mode 100644 index 74b006212c..0000000000 --- a/tests/expectations/parser/unreachable/postfix_pass.out +++ /dev/null @@ -1,229 +0,0 @@ ---- -namespace: ParseStatement -expectation: Pass -outputs: - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"aimport\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":19}\"}" - span: - lo: 0 - hi: 19 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"a_\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":14}\"}" - span: - lo: 0 - hi: 14 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"aas\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" - span: - lo: 0 - hi: 15 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"aconsole\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":20}\"}" - span: - lo: 0 - hi: 20 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"aconst\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":18}\"}" - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"alet\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"afor\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"aif\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" - span: - lo: 0 - hi: 15 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"aelse\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"ai8\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" - span: - lo: 0 - hi: 15 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"ai16\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"ai32\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"ai64\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"ai128\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"au8\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" - span: - lo: 0 - hi: 15 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"au16\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"au32\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"au64\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" - span: - lo: 0 - hi: 16 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"au128\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"areturn\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":19}\"}" - span: - lo: 0 - hi: 19 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"aself\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"aSelf\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"atrue\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" - span: - lo: 0 - hi: 17 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"afalse\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":18}\"}" - span: - lo: 0 - hi: 18 - - Definition: - declaration_type: Let - variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" - type_: U8 - value: - Identifier: "{\"name\":\"a0\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":14}\"}" - span: - lo: 0 - hi: 14 From 7f636ca06d6425467c2663690c1e1d106627f48f Mon Sep 17 00:00:00 2001 From: collin <16715212+collinc97@users.noreply.github.com> Date: Wed, 3 Aug 2022 13:47:17 -0700 Subject: [PATCH 2/5] regen tests --- compiler/compiler/src/test.rs | 3 +- .../expectations/compiler/address/binary.out | 9 + .../expectations/compiler/address/branch.out | 9 + tests/expectations/compiler/address/equal.out | 9 + .../expectations/compiler/address/gt_fail.out | 5 + .../compiler/address/gte_fail.out | 5 + .../expectations/compiler/address/lt_fail.out | 5 + .../compiler/address/lte_fail.out | 5 + .../expectations/compiler/address/ternary.out | 10 + tests/expectations/compiler/boolean/and.out | 12 + .../compiler/boolean/conditional.out | 12 + tests/expectations/compiler/boolean/equal.out | 12 + .../compiler/boolean/not_equal.out | 12 + .../compiler/boolean/operator_methods.out | 12 + tests/expectations/compiler/boolean/or.out | 12 + ...rcuit_function_namespace_conflict_fail.out | 5 + .../circuits/duplicate_circuit_variable.out | 5 + .../circuits/duplicate_name_context.out | 5 + .../expectations/compiler/circuits/inline.out | 9 + .../compiler/circuits/inline_fail.out | 5 + .../compiler/circuits/inline_member_fail.out | 5 + .../compiler/circuits/inline_member_pass.out | 5 + .../compiler/circuits/inline_undefined.out | 5 + .../compiler/circuits/member_variable.out | 9 + .../circuits/member_variable_fail.out | 5 + .../expectations/compiler/console/assert.out | 9 + tests/expectations/compiler/console/error.out | 9 + tests/expectations/compiler/console/log.out | 9 + .../compiler/console/log_conditional.out | 10 + .../compiler/console/log_fail.out | 5 + .../compiler/console/log_input.out | 9 + .../compiler/console/log_parameter.out | 9 + .../compiler/console/log_parameter_many.out | 9 + .../console/log_parameter_unkown_fail.out | 5 + .../compiler/console/log_string.out | 5 + .../core/algorithms/bhp1024_commit.out | 9 + .../compiler/core/algorithms/bhp1024_hash.out | 9 + .../core/algorithms/bhp256_commit.out | 9 + .../compiler/core/algorithms/bhp256_hash.out | 9 + .../core/algorithms/bhp512_commit.out | 9 + .../compiler/core/algorithms/bhp512_hash.out | 9 + .../core/algorithms/bhp768_commit.out | 9 + .../compiler/core/algorithms/bhp768_hash.out | 9 + .../core/algorithms/pedersen128_hash.out | 9 + .../core/algorithms/pedersen64_hash.out | 9 + .../core/algorithms/pedersen_fail.out | 5 + .../core/algorithms/poseidon2_hash.out | 9 + .../core/algorithms/poseidon4_hash.out | 9 + .../core/algorithms/poseidon8_hash.out | 9 + .../compiler/definition/out_of_order.out | 9 + .../use_decl_variable_as_assign_fail.out | 5 + tests/expectations/compiler/field/add.out | 9 + tests/expectations/compiler/field/div.out | 9 + tests/expectations/compiler/field/eq.out | 9 + tests/expectations/compiler/field/field.out | 9 + tests/expectations/compiler/field/mul.out | 9 + tests/expectations/compiler/field/negate.out | 9 + .../field/no_space_between_literal.out | 5 + .../compiler/field/operator_methods.out | 9 + tests/expectations/compiler/field/pow.out | 9 + tests/expectations/compiler/field/sub.out | 9 + tests/expectations/compiler/field/ternary.out | 9 + .../compiler/function/9_inputs_fail.out | 5 + .../compiler/function/conditional_return.out | 9 + .../function/duplicate_definition_fail.out | 5 + .../function/duplicate_parameter_fail.out | 5 + .../compiler/function/no_return_fail.out | 5 + .../compiler/function/scope_fail.out | 5 + .../shadow_function_with_input_fail.out | 5 + .../function/shadow_parameter_fail.out | 5 + .../compiler/function/undefined_fail.out | 5 + tests/expectations/compiler/group/add.out | 9 + .../expectations/compiler/group/assert_eq.out | 9 + tests/expectations/compiler/group/eq.out | 9 + .../expectations/compiler/group/group_mul.out | 9 + tests/expectations/compiler/group/input.out | 9 + tests/expectations/compiler/group/mul.out | 9 + .../compiler/group/mult_by_group_fail.out | 5 + .../compiler/group/mult_by_scalar.out | 9 + tests/expectations/compiler/group/negate.out | 9 + .../group/no_space_between_literal.out | 5 + .../compiler/group/operator_methods.out | 9 + .../compiler/group/point_input.out | 9 + tests/expectations/compiler/group/sub.out | 9 + tests/expectations/compiler/group/ternary.out | 9 + tests/expectations/compiler/group/x_and_y.out | 9 + .../compiler/group/x_sign_high.out | 9 + .../compiler/group/x_sign_inferred.out | 9 + .../compiler/group/x_sign_low.out | 9 + tests/expectations/compiler/group/zero.out | 9 + tests/expectations/compiler/input/main.out | 9 + .../compiler/input/main_field.out | 9 + .../compiler/integers/i128/add.out | 9 + .../compiler/integers/i128/and.out | 9 + .../compiler/integers/i128/console_assert.out | 9 + .../compiler/integers/i128/div.out | 9 + .../compiler/integers/i128/eq.out | 9 + .../compiler/integers/i128/ge.out | 10 + .../compiler/integers/i128/gt.out | 10 + .../compiler/integers/i128/le.out | 10 + .../compiler/integers/i128/lt.out | 10 + .../compiler/integers/i128/max.out | 9 + .../compiler/integers/i128/max_fail.out | 5 + .../compiler/integers/i128/min.out | 9 + .../compiler/integers/i128/min_fail.out | 5 + .../compiler/integers/i128/mul.out | 9 + .../compiler/integers/i128/ne.out | 10 + .../compiler/integers/i128/negate.out | 10 + .../integers/i128/negate_min_fail.out | 5 + .../compiler/integers/i128/negate_zero.out | 9 + .../i128/no_space_between_literal.out | 5 + .../integers/i128/operator_methods.out | 9 + .../compiler/integers/i128/or.out | 9 + .../compiler/integers/i128/pow.out | 9 + .../compiler/integers/i128/shl.out | 9 + .../compiler/integers/i128/shr.out | 9 + .../compiler/integers/i128/sub.out | 9 + .../compiler/integers/i128/ternary.out | 10 + .../compiler/integers/i128/xor.out | 9 + .../compiler/integers/i16/add.out | 9 + .../compiler/integers/i16/and.out | 9 + .../compiler/integers/i16/console_assert.out | 9 + .../compiler/integers/i16/div.out | 9 + .../expectations/compiler/integers/i16/eq.out | 9 + .../expectations/compiler/integers/i16/ge.out | 10 + .../expectations/compiler/integers/i16/gt.out | 10 + .../expectations/compiler/integers/i16/le.out | 10 + .../expectations/compiler/integers/i16/lt.out | 10 + .../compiler/integers/i16/max.out | 9 + .../compiler/integers/i16/max_fail.out | 5 + .../compiler/integers/i16/min.out | 9 + .../compiler/integers/i16/min_fail.out | 5 + .../compiler/integers/i16/mul.out | 9 + .../expectations/compiler/integers/i16/ne.out | 10 + .../compiler/integers/i16/negate.out | 10 + .../compiler/integers/i16/negate_min_fail.out | 5 + .../compiler/integers/i16/negate_zero.out | 9 + .../integers/i16/no_space_between_literal.out | 5 + .../integers/i16/operator_methods.out | 9 + .../expectations/compiler/integers/i16/or.out | 9 + .../compiler/integers/i16/pow.out | 9 + .../compiler/integers/i16/shl.out | 9 + .../compiler/integers/i16/shr.out | 9 + .../compiler/integers/i16/sub.out | 9 + .../compiler/integers/i16/ternary.out | 10 + .../compiler/integers/i16/xor.out | 9 + .../compiler/integers/i32/add.out | 9 + .../compiler/integers/i32/and.out | 9 + .../compiler/integers/i32/console_assert.out | 9 + .../compiler/integers/i32/div.out | 9 + .../expectations/compiler/integers/i32/eq.out | 9 + .../expectations/compiler/integers/i32/ge.out | 10 + .../expectations/compiler/integers/i32/gt.out | 10 + .../expectations/compiler/integers/i32/le.out | 10 + .../expectations/compiler/integers/i32/lt.out | 10 + .../compiler/integers/i32/max.out | 9 + .../compiler/integers/i32/max_fail.out | 5 + .../compiler/integers/i32/min.out | 9 + .../compiler/integers/i32/min_fail.out | 5 + .../compiler/integers/i32/mul.out | 9 + .../expectations/compiler/integers/i32/ne.out | 10 + .../compiler/integers/i32/negate.out | 10 + .../compiler/integers/i32/negate_min_fail.out | 5 + .../compiler/integers/i32/negate_zero.out | 9 + .../integers/i32/no_space_between_literal.out | 5 + .../integers/i32/operator_methods.out | 9 + .../expectations/compiler/integers/i32/or.out | 9 + .../compiler/integers/i32/pow.out | 9 + .../compiler/integers/i32/shl.out | 9 + .../compiler/integers/i32/shr.out | 9 + .../compiler/integers/i32/sub.out | 9 + .../compiler/integers/i32/ternary.out | 10 + .../compiler/integers/i32/xor.out | 9 + .../compiler/integers/i64/add.out | 9 + .../compiler/integers/i64/and.out | 9 + .../compiler/integers/i64/console_assert.out | 9 + .../compiler/integers/i64/div.out | 9 + .../expectations/compiler/integers/i64/eq.out | 9 + .../expectations/compiler/integers/i64/ge.out | 10 + .../expectations/compiler/integers/i64/gt.out | 10 + .../expectations/compiler/integers/i64/le.out | 10 + .../expectations/compiler/integers/i64/lt.out | 10 + .../compiler/integers/i64/max.out | 9 + .../compiler/integers/i64/max_fail.out | 5 + .../compiler/integers/i64/min.out | 9 + .../compiler/integers/i64/min_fail.out | 5 + .../compiler/integers/i64/mul.out | 9 + .../expectations/compiler/integers/i64/ne.out | 10 + .../compiler/integers/i64/negate.out | 10 + .../compiler/integers/i64/negate_min_fail.out | 5 + .../compiler/integers/i64/negate_zero.out | 9 + .../integers/i64/no_space_between_literal.out | 5 + .../integers/i64/operator_methods.out | 9 + .../expectations/compiler/integers/i64/or.out | 9 + .../compiler/integers/i64/pow.out | 9 + .../compiler/integers/i64/shl.out | 9 + .../compiler/integers/i64/shr.out | 9 + .../compiler/integers/i64/sub.out | 9 + .../compiler/integers/i64/ternary.out | 10 + .../compiler/integers/i64/xor.out | 9 + .../expectations/compiler/integers/i8/add.out | 9 + .../expectations/compiler/integers/i8/and.out | 9 + .../compiler/integers/i8/console_assert.out | 9 + .../expectations/compiler/integers/i8/div.out | 9 + .../expectations/compiler/integers/i8/eq.out | 9 + .../expectations/compiler/integers/i8/ge.out | 10 + .../expectations/compiler/integers/i8/gt.out | 10 + .../expectations/compiler/integers/i8/le.out | 10 + .../expectations/compiler/integers/i8/lt.out | 10 + .../expectations/compiler/integers/i8/max.out | 9 + .../compiler/integers/i8/max_fail.out | 5 + .../expectations/compiler/integers/i8/min.out | 9 + .../compiler/integers/i8/min_fail.out | 5 + .../expectations/compiler/integers/i8/mul.out | 9 + .../expectations/compiler/integers/i8/ne.out | 10 + .../compiler/integers/i8/negate.out | 10 + .../compiler/integers/i8/negate_min_fail.out | 5 + .../compiler/integers/i8/negate_zero.out | 9 + .../integers/i8/no_space_between_literal.out | 5 + .../compiler/integers/i8/operator_methods.out | 9 + .../expectations/compiler/integers/i8/or.out | 9 + .../expectations/compiler/integers/i8/pow.out | 9 + .../expectations/compiler/integers/i8/shl.out | 9 + .../expectations/compiler/integers/i8/shr.out | 9 + .../expectations/compiler/integers/i8/sub.out | 9 + .../compiler/integers/i8/ternary.out | 10 + .../expectations/compiler/integers/i8/xor.out | 9 + .../compiler/integers/u128/add.out | 9 + .../compiler/integers/u128/and.out | 9 + .../compiler/integers/u128/console_assert.out | 9 + .../compiler/integers/u128/div.out | 9 + .../compiler/integers/u128/eq.out | 9 + .../compiler/integers/u128/ge.out | 10 + .../compiler/integers/u128/gt.out | 10 + .../compiler/integers/u128/le.out | 10 + .../compiler/integers/u128/lt.out | 10 + .../compiler/integers/u128/max.out | 9 + .../compiler/integers/u128/max_fail.out | 5 + .../compiler/integers/u128/min.out | 9 + .../compiler/integers/u128/min_fail.out | 5 + .../compiler/integers/u128/mul.out | 9 + .../compiler/integers/u128/ne.out | 10 + .../u128/no_space_between_literal.out | 5 + .../integers/u128/operator_methods.out | 9 + .../compiler/integers/u128/or.out | 9 + .../compiler/integers/u128/pow.out | 9 + .../compiler/integers/u128/shl.out | 9 + .../compiler/integers/u128/shr.out | 9 + .../compiler/integers/u128/sub.out | 9 + .../compiler/integers/u128/ternary.out | 10 + .../compiler/integers/u128/xor.out | 9 + .../compiler/integers/u16/add.out | 9 + .../compiler/integers/u16/and.out | 9 + .../compiler/integers/u16/console_assert.out | 9 + .../compiler/integers/u16/div.out | 9 + .../expectations/compiler/integers/u16/eq.out | 9 + .../expectations/compiler/integers/u16/ge.out | 10 + .../expectations/compiler/integers/u16/gt.out | 10 + .../expectations/compiler/integers/u16/le.out | 10 + .../expectations/compiler/integers/u16/lt.out | 10 + .../compiler/integers/u16/max.out | 9 + .../compiler/integers/u16/max_fail.out | 5 + .../compiler/integers/u16/min.out | 9 + .../compiler/integers/u16/min_fail.out | 5 + .../compiler/integers/u16/mul.out | 9 + .../expectations/compiler/integers/u16/ne.out | 10 + .../integers/u16/no_space_between_literal.out | 5 + .../integers/u16/operator_methods.out | 9 + .../expectations/compiler/integers/u16/or.out | 9 + .../compiler/integers/u16/pow.out | 9 + .../compiler/integers/u16/shl.out | 9 + .../compiler/integers/u16/shr.out | 9 + .../compiler/integers/u16/sub.out | 9 + .../compiler/integers/u16/ternary.out | 10 + .../compiler/integers/u16/xor.out | 9 + .../compiler/integers/u32/add.out | 9 + .../compiler/integers/u32/and.out | 9 + .../compiler/integers/u32/console_assert.out | 9 + .../compiler/integers/u32/div.out | 9 + .../expectations/compiler/integers/u32/eq.out | 9 + .../expectations/compiler/integers/u32/ge.out | 10 + .../expectations/compiler/integers/u32/gt.out | 10 + .../expectations/compiler/integers/u32/le.out | 10 + .../expectations/compiler/integers/u32/lt.out | 10 + .../compiler/integers/u32/max.out | 9 + .../compiler/integers/u32/max_fail.out | 5 + .../compiler/integers/u32/min.out | 9 + .../compiler/integers/u32/min_fail.out | 5 + .../compiler/integers/u32/mul.out | 9 + .../expectations/compiler/integers/u32/ne.out | 10 + .../integers/u32/no_space_between_literal.out | 5 + .../integers/u32/operator_methods.out | 9 + .../expectations/compiler/integers/u32/or.out | 9 + .../compiler/integers/u32/pow.out | 9 + .../compiler/integers/u32/shl.out | 9 + .../compiler/integers/u32/shr.out | 9 + .../compiler/integers/u32/sub.out | 9 + .../compiler/integers/u32/ternary.out | 10 + .../compiler/integers/u32/xor.out | 9 + .../compiler/integers/u64/add.out | 9 + .../compiler/integers/u64/and.out | 9 + .../compiler/integers/u64/console_assert.out | 9 + .../compiler/integers/u64/div.out | 9 + .../expectations/compiler/integers/u64/eq.out | 9 + .../expectations/compiler/integers/u64/ge.out | 10 + .../expectations/compiler/integers/u64/gt.out | 10 + .../expectations/compiler/integers/u64/le.out | 10 + .../expectations/compiler/integers/u64/lt.out | 10 + .../compiler/integers/u64/max.out | 9 + .../compiler/integers/u64/max_fail.out | 5 + .../compiler/integers/u64/min.out | 9 + .../compiler/integers/u64/min_fail.out | 5 + .../compiler/integers/u64/mul.out | 9 + .../expectations/compiler/integers/u64/ne.out | 10 + .../integers/u64/no_space_between_literal.out | 5 + .../integers/u64/operator_methods.out | 9 + .../expectations/compiler/integers/u64/or.out | 9 + .../compiler/integers/u64/pow.out | 9 + .../compiler/integers/u64/shl.out | 9 + .../compiler/integers/u64/shr.out | 9 + .../compiler/integers/u64/sub.out | 9 + .../compiler/integers/u64/ternary.out | 10 + .../compiler/integers/u64/xor.out | 9 + .../expectations/compiler/integers/u8/add.out | 9 + .../expectations/compiler/integers/u8/and.out | 9 + .../compiler/integers/u8/console_assert.out | 9 + .../expectations/compiler/integers/u8/div.out | 9 + .../expectations/compiler/integers/u8/eq.out | 9 + .../expectations/compiler/integers/u8/ge.out | 10 + .../expectations/compiler/integers/u8/gt.out | 10 + .../expectations/compiler/integers/u8/le.out | 10 + .../expectations/compiler/integers/u8/lt.out | 10 + .../expectations/compiler/integers/u8/max.out | 9 + .../compiler/integers/u8/max_fail.out | 5 + .../expectations/compiler/integers/u8/min.out | 9 + .../compiler/integers/u8/min_fail.out | 5 + .../expectations/compiler/integers/u8/mul.out | 9 + .../expectations/compiler/integers/u8/ne.out | 10 + .../integers/u8/no_space_between_literal.out | 5 + .../compiler/integers/u8/operator_methods.out | 9 + .../expectations/compiler/integers/u8/or.out | 9 + .../expectations/compiler/integers/u8/pow.out | 9 + .../expectations/compiler/integers/u8/shl.out | 9 + .../expectations/compiler/integers/u8/shr.out | 9 + .../expectations/compiler/integers/u8/sub.out | 9 + .../compiler/integers/u8/ternary.out | 10 + .../expectations/compiler/integers/u8/xor.out | 9 + .../compiler/records/balance_wrong_ty.out | 5 + .../compiler/records/declaration.out | 9 + .../records/duplicate_circuit_name_fail.out | 5 + .../compiler/records/duplicate_var_fail.out | 5 + .../compiler/records/init_expression.out | 9 + .../records/init_expression_shorthand.out | 9 + .../records/init_expression_type_fail.out | 5 + .../records/init_expression_var_fail.out | 5 + .../compiler/records/no_owner_fail.out | 5 + .../compiler/records/owner_wrong_ty.out | 5 + tests/expectations/compiler/scalar/add.out | 9 + tests/expectations/compiler/scalar/cmp.out | 9 + .../expectations/compiler/scalar/div_fail.out | 5 + tests/expectations/compiler/scalar/eq.out | 9 + .../scalar/no_space_between_literal.out | 5 + .../compiler/scalar/operator_methods.out | 9 + tests/expectations/compiler/scalar/scalar.out | 9 + .../compiler/scalar/square_root_fail.out | 5 + .../expectations/compiler/scalar/ternary.out | 9 + .../compiler/statements/all_loops_fail.out | 5 + .../compiler/statements/assign.out | 9 + .../compiler/statements/assign_fail.out | 5 + .../compiler/statements/assign_ternary.out | 5 + .../compiler/statements/block.out | 9 + .../compiler/statements/chain.out | 11 + .../statements/compare_diff_types_fail.out | 5 + .../compare_invalid_negates_fail.out | 5 + .../statements/duplicate_variable.out | 5 + .../compiler/statements/iteration_basic.out | 9 + .../compiler/statements/iteration_nested.out | 9 + .../compiler/statements/loop_returns_fail.out | 5 + .../compiler/statements/multiple_returns.out | 10 + .../multiple_returns_in_one_block_fail.out | 5 + .../compiler/statements/mutate.out | 10 + .../statements/non_existant_var_exp_fail.out | 5 + .../statements/non_existant_vars_mul_fail.out | 5 + .../statements/operations/add_assign.out | 9 + .../statements/operations/and_assign.out | 9 + .../statements/operations/bitand_assign.out | 9 + .../statements/operations/bitor_assign.out | 9 + .../statements/operations/bitxor_assign.out | 9 + .../statements/operations/div_assign.out | 9 + .../statements/operations/mul_assign.out | 9 + .../statements/operations/or_assign.out | 9 + .../statements/operations/pow_assign.out | 9 + .../statements/operations/shl_assign.out | 9 + .../statements/operations/shr_assign.out | 9 + .../statements/operations/sub_assign.out | 9 + ...after_complete_conditional_return_fail.out | 5 + .../ternary_explicit_and_implicit.out | 9 + .../compiler/tuple/access_negative_fail.out | 5 + .../tuple/access_out_of_bounds_fail.out | 5 + .../compiler/tuple/declare_fail.out | 5 + .../compiler/tuple/function_return.out | 9 + .../tuple/function_return_single_fail.out | 5 + .../tuple/function_return_zero_fail.out | 5 + .../compiler/tuple/return_statement_fail.out | 5 + .../compiler/tuple/tuple_not_allowed.out | 5 + .../expectations/compiler/tuple/type_fail.out | 5 + .../parser/expression/access/call.out | 45 ++ .../parser/expression/array_init_fail.out | 8 + .../parser/expression/array_inline_fail.out | 9 + .../parser/expression/binary/add.out | 461 +++++++++++ .../parser/expression/binary/add_wrapped.out | 243 ++++++ .../parser/expression/binary/and.out | 313 ++++++++ .../parser/expression/binary/bit_and.out | 461 +++++++++++ .../parser/expression/binary/bit_or.out | 461 +++++++++++ .../parser/expression/binary/bit_xor.out | 461 +++++++++++ .../parser/expression/binary/div.out | 358 +++++++++ .../parser/expression/binary/div_wrapped.out | 243 ++++++ .../parser/expression/binary/eq.out | 423 ++++++++++ .../parser/expression/binary/eq_fail.out | 5 + .../parser/expression/binary/ge.out | 326 ++++++++ .../parser/expression/binary/ge_fail.out | 7 + .../parser/expression/binary/gt.out | 326 ++++++++ .../parser/expression/binary/gt_fail.out | 7 + .../parser/expression/binary/le.out | 326 ++++++++ .../parser/expression/binary/le_fail.out | 7 + .../parser/expression/binary/lt.out | 326 ++++++++ .../parser/expression/binary/lt_fail.out | 7 + .../parser/expression/binary/mul.out | 429 ++++++++++ .../parser/expression/binary/mul_wrapped.out | 243 ++++++ .../parser/expression/binary/nand.out | 243 ++++++ .../parser/expression/binary/neq.out | 423 ++++++++++ .../parser/expression/binary/neq_fail.out | 5 + .../parser/expression/binary/nor.out | 243 ++++++ .../parser/expression/binary/or.out | 164 ++++ .../parser/expression/binary/pow.out | 313 ++++++++ .../parser/expression/binary/pow_wrapped.out | 243 ++++++ .../parser/expression/binary/shl.out | 461 +++++++++++ .../parser/expression/binary/shl_wrapped.out | 243 ++++++ .../parser/expression/binary/shr.out | 461 +++++++++++ .../parser/expression/binary/shr_wrapped.out | 243 ++++++ .../parser/expression/binary/sub.out | 358 +++++++++ .../parser/expression/binary/sub_wrapped.out | 243 ++++++ .../parser/expression/circuit_init_fail.out | 16 + .../expectations/parser/expression/ident.out | 23 + .../parser/expression/literal/address.out | 10 + .../expression/literal/address_fail.out | 14 + .../expression/literal/address_parse.out | 10 + .../parser/expression/literal/bool.out | 12 + .../parser/expression/literal/bool_parse.out | 16 + .../parser/expression/literal/char.out | 57 ++ .../parser/expression/literal/char_fail.out | 51 ++ .../parser/expression/literal/char_parse.out | 55 ++ .../parser/expression/literal/comment.out | 10 + .../expression/literal/comment_fail.out | 15 + .../expression/literal/formatted_string.out | 24 + .../parser/expression/literal/group.out | 442 +++++++++++ .../parser/expression/literal/group_fail.out | 16 + .../parser/expression/literal/int.out | 111 +++ .../parser/expression/literal/int_fail.out | 7 + .../expression/literal/int_parse/field.out | 634 +++++++++++++++ .../literal/int_parse/field_fail.out | 5 + .../expression/literal/int_parse/i128.out | 634 +++++++++++++++ .../expression/literal/int_parse/i16.out | 634 +++++++++++++++ .../expression/literal/int_parse/i32.out | 634 +++++++++++++++ .../expression/literal/int_parse/i64.out | 634 +++++++++++++++ .../expression/literal/int_parse/i8.out | 634 +++++++++++++++ .../expression/literal/int_parse/implicit.out | 109 +++ .../literal/int_parse/mono_group.out | 739 ++++++++++++++++++ .../expression/literal/int_parse/scalar.out | 634 +++++++++++++++ .../expression/literal/int_parse/u128.out | 634 +++++++++++++++ .../expression/literal/int_parse/u16.out | 634 +++++++++++++++ .../expression/literal/int_parse/u32.out | 634 +++++++++++++++ .../expression/literal/int_parse/u64.out | 634 +++++++++++++++ .../expression/literal/int_parse/u8.out | 634 +++++++++++++++ .../expression/literal/postfix_types.out | 62 ++ .../parser/expression/literal/string.out | 25 + .../parser/expression/literal/string_fail.out | 8 + .../parser/expression/ternary.out | 52 ++ .../parser/expression/token_format.out | 74 ++ .../parser/expression/unary/abs.out | 146 ++++ .../parser/expression/unary/abs_wrapped.out | 146 ++++ .../parser/expression/unary/double.out | 146 ++++ .../parser/expression/unary/inv.out | 146 ++++ .../parser/expression/unary/neg.out | 204 +++++ .../parser/expression/unary/not.out | 191 +++++ .../parser/expression/unary/sqrt.out | 158 ++++ .../parser/expression/unary/square.out | 158 ++++ .../functions/annotated_arg_not_ident.out | 5 + .../functions/annotated_context_fail.out | 5 + .../parser/functions/bounded_recursion.out | 5 + .../parser/functions/const_input.out | 50 ++ .../parser/functions/const_param.out | 86 ++ .../functions/const_public_param_fail.out | 5 + .../expectations/parser/functions/empty2.out | 23 + .../parser/functions/escape_fail.out | 5 + .../parser/functions/ident_token_fail.out | 5 + .../parser/functions/infinite_recursion.out | 5 + .../parser/functions/mut_input_fail.out | 5 + .../expectations/parser/functions/params.out | 48 ++ .../parser/functions/params_return.out | 48 ++ .../functions/public_const_param_fail.out | 5 + .../parser/functions/public_param.out | 86 ++ .../expectations/parser/functions/return.out | 34 + .../parser/functions/test_keyword_fail.out | 5 + .../parser/inputs/input_const.out | 207 +++++ .../parser/inputs/input_constant.out | 207 +++++ .../inputs/input_constant_public_fail.out | 5 + .../expectations/parser/inputs/input_fail.out | 5 + .../parser/inputs/input_public.out | 207 +++++ .../inputs/input_public_constant_fail.out | 5 + .../parser/program/backslash_eof.out | 5 + .../parser/program/bidi_comment_2_fail.out | 5 + .../parser/program/bidi_comment_fail.out | 5 + .../parser/program/dollar_eof.out | 5 + .../parser/program/escape_u8_eof.out | 5 + tests/expectations/parser/program/hex_eof.out | 5 + .../expectations/parser/program/pipe_eof.out | 5 + tests/expectations/parser/program/q_eof.out | 5 + tests/expectations/parser/program/sq_eof.out | 5 + .../expectations/parser/program/tilde_eof.out | 5 + .../program/unclosed_unicode_eof_fail.out | 5 + .../parser/serialize/one_plus_one.out | 27 + .../parser/serialize/parser_error.out | 5 + .../expectations/parser/statement/assign.out | 45 ++ tests/expectations/parser/statement/block.out | 84 ++ .../parser/statement/conditional.out | 143 ++++ .../parser/statement/conditional_fail.out | 5 + .../expectations/parser/statement/console.out | 83 ++ .../parser/statement/console_fail.out | 7 + .../parser/statement/definition.out | 200 +++++ .../parser/statement/definition_fail.out | 47 ++ .../parser/statement/expression.out | 7 + .../parser/statement/expression_fail.out | 10 + .../parser/statement/hex_int_fail.out | 7 + .../parser/statement/iteration.out | 136 ++++ .../parser/statement/let_mut_recover.out | 5 + .../expectations/parser/statement/return.out | 21 + .../parser/statement/return_fail.out | 7 + .../parser/unreachable/define.out | 49 ++ .../parser/unreachable/eat_ident.out | 5 + .../parser/unreachable/eat_int.out | 56 ++ .../equality_and_order_expression.out | 56 ++ .../parser/unreachable/expect_ident.out | 56 ++ .../parser/unreachable/math_op_fail.out | 63 ++ .../parser/unreachable/math_op_pass.out | 312 ++++++++ .../parser/unreachable/postfix_fail.out | 24 + .../parser/unreachable/postfix_pass.out | 229 ++++++ tests/parser/inputs/input_const.leo | 4 +- tests/parser/inputs/input_constant.leo | 4 +- tests/parser/inputs/input_public.leo | 4 +- tests/parser/statement/definition.leo | 2 +- 551 files changed, 26184 insertions(+), 8 deletions(-) create mode 100644 tests/expectations/compiler/address/binary.out create mode 100644 tests/expectations/compiler/address/branch.out create mode 100644 tests/expectations/compiler/address/equal.out create mode 100644 tests/expectations/compiler/address/gt_fail.out create mode 100644 tests/expectations/compiler/address/gte_fail.out create mode 100644 tests/expectations/compiler/address/lt_fail.out create mode 100644 tests/expectations/compiler/address/lte_fail.out create mode 100644 tests/expectations/compiler/address/ternary.out create mode 100644 tests/expectations/compiler/boolean/and.out create mode 100644 tests/expectations/compiler/boolean/conditional.out create mode 100644 tests/expectations/compiler/boolean/equal.out create mode 100644 tests/expectations/compiler/boolean/not_equal.out create mode 100644 tests/expectations/compiler/boolean/operator_methods.out create mode 100644 tests/expectations/compiler/boolean/or.out create mode 100644 tests/expectations/compiler/circuits/circuit_function_namespace_conflict_fail.out create mode 100644 tests/expectations/compiler/circuits/duplicate_circuit_variable.out create mode 100644 tests/expectations/compiler/circuits/duplicate_name_context.out create mode 100644 tests/expectations/compiler/circuits/inline.out create mode 100644 tests/expectations/compiler/circuits/inline_fail.out create mode 100644 tests/expectations/compiler/circuits/inline_member_fail.out create mode 100644 tests/expectations/compiler/circuits/inline_member_pass.out create mode 100644 tests/expectations/compiler/circuits/inline_undefined.out create mode 100644 tests/expectations/compiler/circuits/member_variable.out create mode 100644 tests/expectations/compiler/circuits/member_variable_fail.out create mode 100644 tests/expectations/compiler/console/assert.out create mode 100644 tests/expectations/compiler/console/error.out create mode 100644 tests/expectations/compiler/console/log.out create mode 100644 tests/expectations/compiler/console/log_conditional.out create mode 100644 tests/expectations/compiler/console/log_fail.out create mode 100644 tests/expectations/compiler/console/log_input.out create mode 100644 tests/expectations/compiler/console/log_parameter.out create mode 100644 tests/expectations/compiler/console/log_parameter_many.out create mode 100644 tests/expectations/compiler/console/log_parameter_unkown_fail.out create mode 100644 tests/expectations/compiler/console/log_string.out create mode 100644 tests/expectations/compiler/core/algorithms/bhp1024_commit.out create mode 100644 tests/expectations/compiler/core/algorithms/bhp1024_hash.out create mode 100644 tests/expectations/compiler/core/algorithms/bhp256_commit.out create mode 100644 tests/expectations/compiler/core/algorithms/bhp256_hash.out create mode 100644 tests/expectations/compiler/core/algorithms/bhp512_commit.out create mode 100644 tests/expectations/compiler/core/algorithms/bhp512_hash.out create mode 100644 tests/expectations/compiler/core/algorithms/bhp768_commit.out create mode 100644 tests/expectations/compiler/core/algorithms/bhp768_hash.out create mode 100644 tests/expectations/compiler/core/algorithms/pedersen128_hash.out create mode 100644 tests/expectations/compiler/core/algorithms/pedersen64_hash.out create mode 100644 tests/expectations/compiler/core/algorithms/pedersen_fail.out create mode 100644 tests/expectations/compiler/core/algorithms/poseidon2_hash.out create mode 100644 tests/expectations/compiler/core/algorithms/poseidon4_hash.out create mode 100644 tests/expectations/compiler/core/algorithms/poseidon8_hash.out create mode 100644 tests/expectations/compiler/definition/out_of_order.out create mode 100644 tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out create mode 100644 tests/expectations/compiler/field/add.out create mode 100644 tests/expectations/compiler/field/div.out create mode 100644 tests/expectations/compiler/field/eq.out create mode 100644 tests/expectations/compiler/field/field.out create mode 100644 tests/expectations/compiler/field/mul.out create mode 100644 tests/expectations/compiler/field/negate.out create mode 100644 tests/expectations/compiler/field/no_space_between_literal.out create mode 100644 tests/expectations/compiler/field/operator_methods.out create mode 100644 tests/expectations/compiler/field/pow.out create mode 100644 tests/expectations/compiler/field/sub.out create mode 100644 tests/expectations/compiler/field/ternary.out create mode 100644 tests/expectations/compiler/function/9_inputs_fail.out create mode 100644 tests/expectations/compiler/function/conditional_return.out create mode 100644 tests/expectations/compiler/function/duplicate_definition_fail.out create mode 100644 tests/expectations/compiler/function/duplicate_parameter_fail.out create mode 100644 tests/expectations/compiler/function/no_return_fail.out create mode 100644 tests/expectations/compiler/function/scope_fail.out create mode 100644 tests/expectations/compiler/function/shadow_function_with_input_fail.out create mode 100644 tests/expectations/compiler/function/shadow_parameter_fail.out create mode 100644 tests/expectations/compiler/function/undefined_fail.out create mode 100644 tests/expectations/compiler/group/add.out create mode 100644 tests/expectations/compiler/group/assert_eq.out create mode 100644 tests/expectations/compiler/group/eq.out create mode 100644 tests/expectations/compiler/group/group_mul.out create mode 100644 tests/expectations/compiler/group/input.out create mode 100644 tests/expectations/compiler/group/mul.out create mode 100644 tests/expectations/compiler/group/mult_by_group_fail.out create mode 100644 tests/expectations/compiler/group/mult_by_scalar.out create mode 100644 tests/expectations/compiler/group/negate.out create mode 100644 tests/expectations/compiler/group/no_space_between_literal.out create mode 100644 tests/expectations/compiler/group/operator_methods.out create mode 100644 tests/expectations/compiler/group/point_input.out create mode 100644 tests/expectations/compiler/group/sub.out create mode 100644 tests/expectations/compiler/group/ternary.out create mode 100644 tests/expectations/compiler/group/x_and_y.out create mode 100644 tests/expectations/compiler/group/x_sign_high.out create mode 100644 tests/expectations/compiler/group/x_sign_inferred.out create mode 100644 tests/expectations/compiler/group/x_sign_low.out create mode 100644 tests/expectations/compiler/group/zero.out create mode 100644 tests/expectations/compiler/input/main.out create mode 100644 tests/expectations/compiler/input/main_field.out create mode 100644 tests/expectations/compiler/integers/i128/add.out create mode 100644 tests/expectations/compiler/integers/i128/and.out create mode 100644 tests/expectations/compiler/integers/i128/console_assert.out create mode 100644 tests/expectations/compiler/integers/i128/div.out create mode 100644 tests/expectations/compiler/integers/i128/eq.out create mode 100644 tests/expectations/compiler/integers/i128/ge.out create mode 100644 tests/expectations/compiler/integers/i128/gt.out create mode 100644 tests/expectations/compiler/integers/i128/le.out create mode 100644 tests/expectations/compiler/integers/i128/lt.out create mode 100644 tests/expectations/compiler/integers/i128/max.out create mode 100644 tests/expectations/compiler/integers/i128/max_fail.out create mode 100644 tests/expectations/compiler/integers/i128/min.out create mode 100644 tests/expectations/compiler/integers/i128/min_fail.out create mode 100644 tests/expectations/compiler/integers/i128/mul.out create mode 100644 tests/expectations/compiler/integers/i128/ne.out create mode 100644 tests/expectations/compiler/integers/i128/negate.out create mode 100644 tests/expectations/compiler/integers/i128/negate_min_fail.out create mode 100644 tests/expectations/compiler/integers/i128/negate_zero.out create mode 100644 tests/expectations/compiler/integers/i128/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/i128/operator_methods.out create mode 100644 tests/expectations/compiler/integers/i128/or.out create mode 100644 tests/expectations/compiler/integers/i128/pow.out create mode 100644 tests/expectations/compiler/integers/i128/shl.out create mode 100644 tests/expectations/compiler/integers/i128/shr.out create mode 100644 tests/expectations/compiler/integers/i128/sub.out create mode 100644 tests/expectations/compiler/integers/i128/ternary.out create mode 100644 tests/expectations/compiler/integers/i128/xor.out create mode 100644 tests/expectations/compiler/integers/i16/add.out create mode 100644 tests/expectations/compiler/integers/i16/and.out create mode 100644 tests/expectations/compiler/integers/i16/console_assert.out create mode 100644 tests/expectations/compiler/integers/i16/div.out create mode 100644 tests/expectations/compiler/integers/i16/eq.out create mode 100644 tests/expectations/compiler/integers/i16/ge.out create mode 100644 tests/expectations/compiler/integers/i16/gt.out create mode 100644 tests/expectations/compiler/integers/i16/le.out create mode 100644 tests/expectations/compiler/integers/i16/lt.out create mode 100644 tests/expectations/compiler/integers/i16/max.out create mode 100644 tests/expectations/compiler/integers/i16/max_fail.out create mode 100644 tests/expectations/compiler/integers/i16/min.out create mode 100644 tests/expectations/compiler/integers/i16/min_fail.out create mode 100644 tests/expectations/compiler/integers/i16/mul.out create mode 100644 tests/expectations/compiler/integers/i16/ne.out create mode 100644 tests/expectations/compiler/integers/i16/negate.out create mode 100644 tests/expectations/compiler/integers/i16/negate_min_fail.out create mode 100644 tests/expectations/compiler/integers/i16/negate_zero.out create mode 100644 tests/expectations/compiler/integers/i16/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/i16/operator_methods.out create mode 100644 tests/expectations/compiler/integers/i16/or.out create mode 100644 tests/expectations/compiler/integers/i16/pow.out create mode 100644 tests/expectations/compiler/integers/i16/shl.out create mode 100644 tests/expectations/compiler/integers/i16/shr.out create mode 100644 tests/expectations/compiler/integers/i16/sub.out create mode 100644 tests/expectations/compiler/integers/i16/ternary.out create mode 100644 tests/expectations/compiler/integers/i16/xor.out create mode 100644 tests/expectations/compiler/integers/i32/add.out create mode 100644 tests/expectations/compiler/integers/i32/and.out create mode 100644 tests/expectations/compiler/integers/i32/console_assert.out create mode 100644 tests/expectations/compiler/integers/i32/div.out create mode 100644 tests/expectations/compiler/integers/i32/eq.out create mode 100644 tests/expectations/compiler/integers/i32/ge.out create mode 100644 tests/expectations/compiler/integers/i32/gt.out create mode 100644 tests/expectations/compiler/integers/i32/le.out create mode 100644 tests/expectations/compiler/integers/i32/lt.out create mode 100644 tests/expectations/compiler/integers/i32/max.out create mode 100644 tests/expectations/compiler/integers/i32/max_fail.out create mode 100644 tests/expectations/compiler/integers/i32/min.out create mode 100644 tests/expectations/compiler/integers/i32/min_fail.out create mode 100644 tests/expectations/compiler/integers/i32/mul.out create mode 100644 tests/expectations/compiler/integers/i32/ne.out create mode 100644 tests/expectations/compiler/integers/i32/negate.out create mode 100644 tests/expectations/compiler/integers/i32/negate_min_fail.out create mode 100644 tests/expectations/compiler/integers/i32/negate_zero.out create mode 100644 tests/expectations/compiler/integers/i32/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/i32/operator_methods.out create mode 100644 tests/expectations/compiler/integers/i32/or.out create mode 100644 tests/expectations/compiler/integers/i32/pow.out create mode 100644 tests/expectations/compiler/integers/i32/shl.out create mode 100644 tests/expectations/compiler/integers/i32/shr.out create mode 100644 tests/expectations/compiler/integers/i32/sub.out create mode 100644 tests/expectations/compiler/integers/i32/ternary.out create mode 100644 tests/expectations/compiler/integers/i32/xor.out create mode 100644 tests/expectations/compiler/integers/i64/add.out create mode 100644 tests/expectations/compiler/integers/i64/and.out create mode 100644 tests/expectations/compiler/integers/i64/console_assert.out create mode 100644 tests/expectations/compiler/integers/i64/div.out create mode 100644 tests/expectations/compiler/integers/i64/eq.out create mode 100644 tests/expectations/compiler/integers/i64/ge.out create mode 100644 tests/expectations/compiler/integers/i64/gt.out create mode 100644 tests/expectations/compiler/integers/i64/le.out create mode 100644 tests/expectations/compiler/integers/i64/lt.out create mode 100644 tests/expectations/compiler/integers/i64/max.out create mode 100644 tests/expectations/compiler/integers/i64/max_fail.out create mode 100644 tests/expectations/compiler/integers/i64/min.out create mode 100644 tests/expectations/compiler/integers/i64/min_fail.out create mode 100644 tests/expectations/compiler/integers/i64/mul.out create mode 100644 tests/expectations/compiler/integers/i64/ne.out create mode 100644 tests/expectations/compiler/integers/i64/negate.out create mode 100644 tests/expectations/compiler/integers/i64/negate_min_fail.out create mode 100644 tests/expectations/compiler/integers/i64/negate_zero.out create mode 100644 tests/expectations/compiler/integers/i64/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/i64/operator_methods.out create mode 100644 tests/expectations/compiler/integers/i64/or.out create mode 100644 tests/expectations/compiler/integers/i64/pow.out create mode 100644 tests/expectations/compiler/integers/i64/shl.out create mode 100644 tests/expectations/compiler/integers/i64/shr.out create mode 100644 tests/expectations/compiler/integers/i64/sub.out create mode 100644 tests/expectations/compiler/integers/i64/ternary.out create mode 100644 tests/expectations/compiler/integers/i64/xor.out create mode 100644 tests/expectations/compiler/integers/i8/add.out create mode 100644 tests/expectations/compiler/integers/i8/and.out create mode 100644 tests/expectations/compiler/integers/i8/console_assert.out create mode 100644 tests/expectations/compiler/integers/i8/div.out create mode 100644 tests/expectations/compiler/integers/i8/eq.out create mode 100644 tests/expectations/compiler/integers/i8/ge.out create mode 100644 tests/expectations/compiler/integers/i8/gt.out create mode 100644 tests/expectations/compiler/integers/i8/le.out create mode 100644 tests/expectations/compiler/integers/i8/lt.out create mode 100644 tests/expectations/compiler/integers/i8/max.out create mode 100644 tests/expectations/compiler/integers/i8/max_fail.out create mode 100644 tests/expectations/compiler/integers/i8/min.out create mode 100644 tests/expectations/compiler/integers/i8/min_fail.out create mode 100644 tests/expectations/compiler/integers/i8/mul.out create mode 100644 tests/expectations/compiler/integers/i8/ne.out create mode 100644 tests/expectations/compiler/integers/i8/negate.out create mode 100644 tests/expectations/compiler/integers/i8/negate_min_fail.out create mode 100644 tests/expectations/compiler/integers/i8/negate_zero.out create mode 100644 tests/expectations/compiler/integers/i8/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/i8/operator_methods.out create mode 100644 tests/expectations/compiler/integers/i8/or.out create mode 100644 tests/expectations/compiler/integers/i8/pow.out create mode 100644 tests/expectations/compiler/integers/i8/shl.out create mode 100644 tests/expectations/compiler/integers/i8/shr.out create mode 100644 tests/expectations/compiler/integers/i8/sub.out create mode 100644 tests/expectations/compiler/integers/i8/ternary.out create mode 100644 tests/expectations/compiler/integers/i8/xor.out create mode 100644 tests/expectations/compiler/integers/u128/add.out create mode 100644 tests/expectations/compiler/integers/u128/and.out create mode 100644 tests/expectations/compiler/integers/u128/console_assert.out create mode 100644 tests/expectations/compiler/integers/u128/div.out create mode 100644 tests/expectations/compiler/integers/u128/eq.out create mode 100644 tests/expectations/compiler/integers/u128/ge.out create mode 100644 tests/expectations/compiler/integers/u128/gt.out create mode 100644 tests/expectations/compiler/integers/u128/le.out create mode 100644 tests/expectations/compiler/integers/u128/lt.out create mode 100644 tests/expectations/compiler/integers/u128/max.out create mode 100644 tests/expectations/compiler/integers/u128/max_fail.out create mode 100644 tests/expectations/compiler/integers/u128/min.out create mode 100644 tests/expectations/compiler/integers/u128/min_fail.out create mode 100644 tests/expectations/compiler/integers/u128/mul.out create mode 100644 tests/expectations/compiler/integers/u128/ne.out create mode 100644 tests/expectations/compiler/integers/u128/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/u128/operator_methods.out create mode 100644 tests/expectations/compiler/integers/u128/or.out create mode 100644 tests/expectations/compiler/integers/u128/pow.out create mode 100644 tests/expectations/compiler/integers/u128/shl.out create mode 100644 tests/expectations/compiler/integers/u128/shr.out create mode 100644 tests/expectations/compiler/integers/u128/sub.out create mode 100644 tests/expectations/compiler/integers/u128/ternary.out create mode 100644 tests/expectations/compiler/integers/u128/xor.out create mode 100644 tests/expectations/compiler/integers/u16/add.out create mode 100644 tests/expectations/compiler/integers/u16/and.out create mode 100644 tests/expectations/compiler/integers/u16/console_assert.out create mode 100644 tests/expectations/compiler/integers/u16/div.out create mode 100644 tests/expectations/compiler/integers/u16/eq.out create mode 100644 tests/expectations/compiler/integers/u16/ge.out create mode 100644 tests/expectations/compiler/integers/u16/gt.out create mode 100644 tests/expectations/compiler/integers/u16/le.out create mode 100644 tests/expectations/compiler/integers/u16/lt.out create mode 100644 tests/expectations/compiler/integers/u16/max.out create mode 100644 tests/expectations/compiler/integers/u16/max_fail.out create mode 100644 tests/expectations/compiler/integers/u16/min.out create mode 100644 tests/expectations/compiler/integers/u16/min_fail.out create mode 100644 tests/expectations/compiler/integers/u16/mul.out create mode 100644 tests/expectations/compiler/integers/u16/ne.out create mode 100644 tests/expectations/compiler/integers/u16/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/u16/operator_methods.out create mode 100644 tests/expectations/compiler/integers/u16/or.out create mode 100644 tests/expectations/compiler/integers/u16/pow.out create mode 100644 tests/expectations/compiler/integers/u16/shl.out create mode 100644 tests/expectations/compiler/integers/u16/shr.out create mode 100644 tests/expectations/compiler/integers/u16/sub.out create mode 100644 tests/expectations/compiler/integers/u16/ternary.out create mode 100644 tests/expectations/compiler/integers/u16/xor.out create mode 100644 tests/expectations/compiler/integers/u32/add.out create mode 100644 tests/expectations/compiler/integers/u32/and.out create mode 100644 tests/expectations/compiler/integers/u32/console_assert.out create mode 100644 tests/expectations/compiler/integers/u32/div.out create mode 100644 tests/expectations/compiler/integers/u32/eq.out create mode 100644 tests/expectations/compiler/integers/u32/ge.out create mode 100644 tests/expectations/compiler/integers/u32/gt.out create mode 100644 tests/expectations/compiler/integers/u32/le.out create mode 100644 tests/expectations/compiler/integers/u32/lt.out create mode 100644 tests/expectations/compiler/integers/u32/max.out create mode 100644 tests/expectations/compiler/integers/u32/max_fail.out create mode 100644 tests/expectations/compiler/integers/u32/min.out create mode 100644 tests/expectations/compiler/integers/u32/min_fail.out create mode 100644 tests/expectations/compiler/integers/u32/mul.out create mode 100644 tests/expectations/compiler/integers/u32/ne.out create mode 100644 tests/expectations/compiler/integers/u32/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/u32/operator_methods.out create mode 100644 tests/expectations/compiler/integers/u32/or.out create mode 100644 tests/expectations/compiler/integers/u32/pow.out create mode 100644 tests/expectations/compiler/integers/u32/shl.out create mode 100644 tests/expectations/compiler/integers/u32/shr.out create mode 100644 tests/expectations/compiler/integers/u32/sub.out create mode 100644 tests/expectations/compiler/integers/u32/ternary.out create mode 100644 tests/expectations/compiler/integers/u32/xor.out create mode 100644 tests/expectations/compiler/integers/u64/add.out create mode 100644 tests/expectations/compiler/integers/u64/and.out create mode 100644 tests/expectations/compiler/integers/u64/console_assert.out create mode 100644 tests/expectations/compiler/integers/u64/div.out create mode 100644 tests/expectations/compiler/integers/u64/eq.out create mode 100644 tests/expectations/compiler/integers/u64/ge.out create mode 100644 tests/expectations/compiler/integers/u64/gt.out create mode 100644 tests/expectations/compiler/integers/u64/le.out create mode 100644 tests/expectations/compiler/integers/u64/lt.out create mode 100644 tests/expectations/compiler/integers/u64/max.out create mode 100644 tests/expectations/compiler/integers/u64/max_fail.out create mode 100644 tests/expectations/compiler/integers/u64/min.out create mode 100644 tests/expectations/compiler/integers/u64/min_fail.out create mode 100644 tests/expectations/compiler/integers/u64/mul.out create mode 100644 tests/expectations/compiler/integers/u64/ne.out create mode 100644 tests/expectations/compiler/integers/u64/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/u64/operator_methods.out create mode 100644 tests/expectations/compiler/integers/u64/or.out create mode 100644 tests/expectations/compiler/integers/u64/pow.out create mode 100644 tests/expectations/compiler/integers/u64/shl.out create mode 100644 tests/expectations/compiler/integers/u64/shr.out create mode 100644 tests/expectations/compiler/integers/u64/sub.out create mode 100644 tests/expectations/compiler/integers/u64/ternary.out create mode 100644 tests/expectations/compiler/integers/u64/xor.out create mode 100644 tests/expectations/compiler/integers/u8/add.out create mode 100644 tests/expectations/compiler/integers/u8/and.out create mode 100644 tests/expectations/compiler/integers/u8/console_assert.out create mode 100644 tests/expectations/compiler/integers/u8/div.out create mode 100644 tests/expectations/compiler/integers/u8/eq.out create mode 100644 tests/expectations/compiler/integers/u8/ge.out create mode 100644 tests/expectations/compiler/integers/u8/gt.out create mode 100644 tests/expectations/compiler/integers/u8/le.out create mode 100644 tests/expectations/compiler/integers/u8/lt.out create mode 100644 tests/expectations/compiler/integers/u8/max.out create mode 100644 tests/expectations/compiler/integers/u8/max_fail.out create mode 100644 tests/expectations/compiler/integers/u8/min.out create mode 100644 tests/expectations/compiler/integers/u8/min_fail.out create mode 100644 tests/expectations/compiler/integers/u8/mul.out create mode 100644 tests/expectations/compiler/integers/u8/ne.out create mode 100644 tests/expectations/compiler/integers/u8/no_space_between_literal.out create mode 100644 tests/expectations/compiler/integers/u8/operator_methods.out create mode 100644 tests/expectations/compiler/integers/u8/or.out create mode 100644 tests/expectations/compiler/integers/u8/pow.out create mode 100644 tests/expectations/compiler/integers/u8/shl.out create mode 100644 tests/expectations/compiler/integers/u8/shr.out create mode 100644 tests/expectations/compiler/integers/u8/sub.out create mode 100644 tests/expectations/compiler/integers/u8/ternary.out create mode 100644 tests/expectations/compiler/integers/u8/xor.out create mode 100644 tests/expectations/compiler/records/balance_wrong_ty.out create mode 100644 tests/expectations/compiler/records/declaration.out create mode 100644 tests/expectations/compiler/records/duplicate_circuit_name_fail.out create mode 100644 tests/expectations/compiler/records/duplicate_var_fail.out create mode 100644 tests/expectations/compiler/records/init_expression.out create mode 100644 tests/expectations/compiler/records/init_expression_shorthand.out create mode 100644 tests/expectations/compiler/records/init_expression_type_fail.out create mode 100644 tests/expectations/compiler/records/init_expression_var_fail.out create mode 100644 tests/expectations/compiler/records/no_owner_fail.out create mode 100644 tests/expectations/compiler/records/owner_wrong_ty.out create mode 100644 tests/expectations/compiler/scalar/add.out create mode 100644 tests/expectations/compiler/scalar/cmp.out create mode 100644 tests/expectations/compiler/scalar/div_fail.out create mode 100644 tests/expectations/compiler/scalar/eq.out create mode 100644 tests/expectations/compiler/scalar/no_space_between_literal.out create mode 100644 tests/expectations/compiler/scalar/operator_methods.out create mode 100644 tests/expectations/compiler/scalar/scalar.out create mode 100644 tests/expectations/compiler/scalar/square_root_fail.out create mode 100644 tests/expectations/compiler/scalar/ternary.out create mode 100644 tests/expectations/compiler/statements/all_loops_fail.out create mode 100644 tests/expectations/compiler/statements/assign.out create mode 100644 tests/expectations/compiler/statements/assign_fail.out create mode 100644 tests/expectations/compiler/statements/assign_ternary.out create mode 100644 tests/expectations/compiler/statements/block.out create mode 100644 tests/expectations/compiler/statements/chain.out create mode 100644 tests/expectations/compiler/statements/compare_diff_types_fail.out create mode 100644 tests/expectations/compiler/statements/compare_invalid_negates_fail.out create mode 100644 tests/expectations/compiler/statements/duplicate_variable.out create mode 100644 tests/expectations/compiler/statements/iteration_basic.out create mode 100644 tests/expectations/compiler/statements/iteration_nested.out create mode 100644 tests/expectations/compiler/statements/loop_returns_fail.out create mode 100644 tests/expectations/compiler/statements/multiple_returns.out create mode 100644 tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out create mode 100644 tests/expectations/compiler/statements/mutate.out create mode 100644 tests/expectations/compiler/statements/non_existant_var_exp_fail.out create mode 100644 tests/expectations/compiler/statements/non_existant_vars_mul_fail.out create mode 100644 tests/expectations/compiler/statements/operations/add_assign.out create mode 100644 tests/expectations/compiler/statements/operations/and_assign.out create mode 100644 tests/expectations/compiler/statements/operations/bitand_assign.out create mode 100644 tests/expectations/compiler/statements/operations/bitor_assign.out create mode 100644 tests/expectations/compiler/statements/operations/bitxor_assign.out create mode 100644 tests/expectations/compiler/statements/operations/div_assign.out create mode 100644 tests/expectations/compiler/statements/operations/mul_assign.out create mode 100644 tests/expectations/compiler/statements/operations/or_assign.out create mode 100644 tests/expectations/compiler/statements/operations/pow_assign.out create mode 100644 tests/expectations/compiler/statements/operations/shl_assign.out create mode 100644 tests/expectations/compiler/statements/operations/shr_assign.out create mode 100644 tests/expectations/compiler/statements/operations/sub_assign.out create mode 100644 tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out create mode 100644 tests/expectations/compiler/statements/ternary_explicit_and_implicit.out create mode 100644 tests/expectations/compiler/tuple/access_negative_fail.out create mode 100644 tests/expectations/compiler/tuple/access_out_of_bounds_fail.out create mode 100644 tests/expectations/compiler/tuple/declare_fail.out create mode 100644 tests/expectations/compiler/tuple/function_return.out create mode 100644 tests/expectations/compiler/tuple/function_return_single_fail.out create mode 100644 tests/expectations/compiler/tuple/function_return_zero_fail.out create mode 100644 tests/expectations/compiler/tuple/return_statement_fail.out create mode 100644 tests/expectations/compiler/tuple/tuple_not_allowed.out create mode 100644 tests/expectations/compiler/tuple/type_fail.out create mode 100644 tests/expectations/parser/expression/access/call.out create mode 100644 tests/expectations/parser/expression/array_init_fail.out create mode 100644 tests/expectations/parser/expression/array_inline_fail.out create mode 100644 tests/expectations/parser/expression/binary/add.out create mode 100644 tests/expectations/parser/expression/binary/add_wrapped.out create mode 100644 tests/expectations/parser/expression/binary/and.out create mode 100644 tests/expectations/parser/expression/binary/bit_and.out create mode 100644 tests/expectations/parser/expression/binary/bit_or.out create mode 100644 tests/expectations/parser/expression/binary/bit_xor.out create mode 100644 tests/expectations/parser/expression/binary/div.out create mode 100644 tests/expectations/parser/expression/binary/div_wrapped.out create mode 100644 tests/expectations/parser/expression/binary/eq.out create mode 100644 tests/expectations/parser/expression/binary/eq_fail.out create mode 100644 tests/expectations/parser/expression/binary/ge.out create mode 100644 tests/expectations/parser/expression/binary/ge_fail.out create mode 100644 tests/expectations/parser/expression/binary/gt.out create mode 100644 tests/expectations/parser/expression/binary/gt_fail.out create mode 100644 tests/expectations/parser/expression/binary/le.out create mode 100644 tests/expectations/parser/expression/binary/le_fail.out create mode 100644 tests/expectations/parser/expression/binary/lt.out create mode 100644 tests/expectations/parser/expression/binary/lt_fail.out create mode 100644 tests/expectations/parser/expression/binary/mul.out create mode 100644 tests/expectations/parser/expression/binary/mul_wrapped.out create mode 100644 tests/expectations/parser/expression/binary/nand.out create mode 100644 tests/expectations/parser/expression/binary/neq.out create mode 100644 tests/expectations/parser/expression/binary/neq_fail.out create mode 100644 tests/expectations/parser/expression/binary/nor.out create mode 100644 tests/expectations/parser/expression/binary/or.out create mode 100644 tests/expectations/parser/expression/binary/pow.out create mode 100644 tests/expectations/parser/expression/binary/pow_wrapped.out create mode 100644 tests/expectations/parser/expression/binary/shl.out create mode 100644 tests/expectations/parser/expression/binary/shl_wrapped.out create mode 100644 tests/expectations/parser/expression/binary/shr.out create mode 100644 tests/expectations/parser/expression/binary/shr_wrapped.out create mode 100644 tests/expectations/parser/expression/binary/sub.out create mode 100644 tests/expectations/parser/expression/binary/sub_wrapped.out create mode 100644 tests/expectations/parser/expression/circuit_init_fail.out create mode 100644 tests/expectations/parser/expression/ident.out create mode 100644 tests/expectations/parser/expression/literal/address.out create mode 100644 tests/expectations/parser/expression/literal/address_fail.out create mode 100644 tests/expectations/parser/expression/literal/address_parse.out create mode 100644 tests/expectations/parser/expression/literal/bool.out create mode 100644 tests/expectations/parser/expression/literal/bool_parse.out create mode 100644 tests/expectations/parser/expression/literal/char.out create mode 100644 tests/expectations/parser/expression/literal/char_fail.out create mode 100644 tests/expectations/parser/expression/literal/char_parse.out create mode 100644 tests/expectations/parser/expression/literal/comment.out create mode 100644 tests/expectations/parser/expression/literal/comment_fail.out create mode 100644 tests/expectations/parser/expression/literal/formatted_string.out create mode 100644 tests/expectations/parser/expression/literal/group.out create mode 100644 tests/expectations/parser/expression/literal/group_fail.out create mode 100644 tests/expectations/parser/expression/literal/int.out create mode 100644 tests/expectations/parser/expression/literal/int_fail.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/field.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/field_fail.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/i128.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/i16.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/i32.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/i64.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/i8.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/implicit.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/mono_group.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/scalar.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/u128.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/u16.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/u32.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/u64.out create mode 100644 tests/expectations/parser/expression/literal/int_parse/u8.out create mode 100644 tests/expectations/parser/expression/literal/postfix_types.out create mode 100644 tests/expectations/parser/expression/literal/string.out create mode 100644 tests/expectations/parser/expression/literal/string_fail.out create mode 100644 tests/expectations/parser/expression/ternary.out create mode 100644 tests/expectations/parser/expression/token_format.out create mode 100644 tests/expectations/parser/expression/unary/abs.out create mode 100644 tests/expectations/parser/expression/unary/abs_wrapped.out create mode 100644 tests/expectations/parser/expression/unary/double.out create mode 100644 tests/expectations/parser/expression/unary/inv.out create mode 100644 tests/expectations/parser/expression/unary/neg.out create mode 100644 tests/expectations/parser/expression/unary/not.out create mode 100644 tests/expectations/parser/expression/unary/sqrt.out create mode 100644 tests/expectations/parser/expression/unary/square.out create mode 100644 tests/expectations/parser/functions/annotated_arg_not_ident.out create mode 100644 tests/expectations/parser/functions/annotated_context_fail.out create mode 100644 tests/expectations/parser/functions/bounded_recursion.out create mode 100644 tests/expectations/parser/functions/const_input.out create mode 100644 tests/expectations/parser/functions/const_param.out create mode 100644 tests/expectations/parser/functions/const_public_param_fail.out create mode 100644 tests/expectations/parser/functions/empty2.out create mode 100644 tests/expectations/parser/functions/escape_fail.out create mode 100644 tests/expectations/parser/functions/ident_token_fail.out create mode 100644 tests/expectations/parser/functions/infinite_recursion.out create mode 100644 tests/expectations/parser/functions/mut_input_fail.out create mode 100644 tests/expectations/parser/functions/params.out create mode 100644 tests/expectations/parser/functions/params_return.out create mode 100644 tests/expectations/parser/functions/public_const_param_fail.out create mode 100644 tests/expectations/parser/functions/public_param.out create mode 100644 tests/expectations/parser/functions/return.out create mode 100644 tests/expectations/parser/functions/test_keyword_fail.out create mode 100644 tests/expectations/parser/inputs/input_const.out create mode 100644 tests/expectations/parser/inputs/input_constant.out create mode 100644 tests/expectations/parser/inputs/input_constant_public_fail.out create mode 100644 tests/expectations/parser/inputs/input_fail.out create mode 100644 tests/expectations/parser/inputs/input_public.out create mode 100644 tests/expectations/parser/inputs/input_public_constant_fail.out create mode 100644 tests/expectations/parser/program/backslash_eof.out create mode 100644 tests/expectations/parser/program/bidi_comment_2_fail.out create mode 100644 tests/expectations/parser/program/bidi_comment_fail.out create mode 100644 tests/expectations/parser/program/dollar_eof.out create mode 100644 tests/expectations/parser/program/escape_u8_eof.out create mode 100644 tests/expectations/parser/program/hex_eof.out create mode 100644 tests/expectations/parser/program/pipe_eof.out create mode 100644 tests/expectations/parser/program/q_eof.out create mode 100644 tests/expectations/parser/program/sq_eof.out create mode 100644 tests/expectations/parser/program/tilde_eof.out create mode 100644 tests/expectations/parser/program/unclosed_unicode_eof_fail.out create mode 100644 tests/expectations/parser/serialize/one_plus_one.out create mode 100644 tests/expectations/parser/serialize/parser_error.out create mode 100644 tests/expectations/parser/statement/assign.out create mode 100644 tests/expectations/parser/statement/block.out create mode 100644 tests/expectations/parser/statement/conditional.out create mode 100644 tests/expectations/parser/statement/conditional_fail.out create mode 100644 tests/expectations/parser/statement/console.out create mode 100644 tests/expectations/parser/statement/console_fail.out create mode 100644 tests/expectations/parser/statement/definition.out create mode 100644 tests/expectations/parser/statement/definition_fail.out create mode 100644 tests/expectations/parser/statement/expression.out create mode 100644 tests/expectations/parser/statement/expression_fail.out create mode 100644 tests/expectations/parser/statement/hex_int_fail.out create mode 100644 tests/expectations/parser/statement/iteration.out create mode 100644 tests/expectations/parser/statement/let_mut_recover.out create mode 100644 tests/expectations/parser/statement/return.out create mode 100644 tests/expectations/parser/statement/return_fail.out create mode 100644 tests/expectations/parser/unreachable/define.out create mode 100644 tests/expectations/parser/unreachable/eat_ident.out create mode 100644 tests/expectations/parser/unreachable/eat_int.out create mode 100644 tests/expectations/parser/unreachable/equality_and_order_expression.out create mode 100644 tests/expectations/parser/unreachable/expect_ident.out create mode 100644 tests/expectations/parser/unreachable/math_op_fail.out create mode 100644 tests/expectations/parser/unreachable/math_op_pass.out create mode 100644 tests/expectations/parser/unreachable/postfix_fail.out create mode 100644 tests/expectations/parser/unreachable/postfix_pass.out diff --git a/compiler/compiler/src/test.rs b/compiler/compiler/src/test.rs index f81a9b87af..91786d42e7 100644 --- a/compiler/compiler/src/test.rs +++ b/compiler/compiler/src/test.rs @@ -203,6 +203,7 @@ fn compile_and_process<'a>(parsed: &'a mut Compiler<'a>, handler: &Handler) -> R } fn run_test(test: Test, handler: &Handler, err_buf: &BufferEmitter) -> Result { + println!("here"); // Check for CWD option: // ``` cwd: import ``` // When set, uses different working directory for current file. @@ -263,7 +264,7 @@ fn run_test(test: Test, handler: &Handler, err_buf: &BufferEmitter) -> Result::open(&directory).map_err(LeoError::Anyhow))?; // Get the program process and check all instructions. - handler.extend_if_error(package.get_process().map_err(LeoError::Anyhow))?; + // handler.extend_if_error(package.get_process().map_err(LeoError::Anyhow))?; } let initial_ast = hash_file("/tmp/output/initial_ast.json"); diff --git a/tests/expectations/compiler/address/binary.out b/tests/expectations/compiler/address/binary.out new file mode 100644 index 0000000000..e2c1307824 --- /dev/null +++ b/tests/expectations/compiler/address/binary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fe880c907d0257c9fc8314b8b98cabd8a8282b587d2d618408cc3cd8e528fda5 + initial_ast: c177fab4c6cc5eed0d032d8e8cd7524696c9e25b926e1201bf387f1d45eedd77 + unrolled_ast: c177fab4c6cc5eed0d032d8e8cd7524696c9e25b926e1201bf387f1d45eedd77 + ssa_ast: 3c0eb3cb1422b94d43c2f2448a6d46d7709710c553dbbb090bcd9d5155670095 diff --git a/tests/expectations/compiler/address/branch.out b/tests/expectations/compiler/address/branch.out new file mode 100644 index 0000000000..1ba16c5a24 --- /dev/null +++ b/tests/expectations/compiler/address/branch.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 00f5aba05e4efae5a125eb52f02f16400132085b8a34919d910aa40c6c405a22 + initial_ast: 6bb20402ba03af83e6df6d5f98c7ff2fdde0035089f88f8d07d3c876e42931c8 + unrolled_ast: 6bb20402ba03af83e6df6d5f98c7ff2fdde0035089f88f8d07d3c876e42931c8 + ssa_ast: b0ed5ffb139d6666e4cf2f54dcd972ed9deeb2fa61fd7974dc21841a25edbb0a diff --git a/tests/expectations/compiler/address/equal.out b/tests/expectations/compiler/address/equal.out new file mode 100644 index 0000000000..7e052e70ed --- /dev/null +++ b/tests/expectations/compiler/address/equal.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 03e9df3bd1409f4af9e2a7f55130bc52f27d41f32a624ffa27f0ab114bf6fbf4 + initial_ast: f982c042353b69179f192a11adca20cb7b43121af83a3f2711246f49e639d486 + unrolled_ast: f982c042353b69179f192a11adca20cb7b43121af83a3f2711246f49e639d486 + ssa_ast: bcb19c84428c7c5aa1f71e688512d56287291770dfaea831fd6a649b7c4257b3 diff --git a/tests/expectations/compiler/address/gt_fail.out b/tests/expectations/compiler/address/gt_fail.out new file mode 100644 index 0000000000..39b023698d --- /dev/null +++ b/tests/expectations/compiler/address/gt_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372021]: Comparison `>` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x > sender;\n | ^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/gte_fail.out b/tests/expectations/compiler/address/gte_fail.out new file mode 100644 index 0000000000..ddc0dce8d6 --- /dev/null +++ b/tests/expectations/compiler/address/gte_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372021]: Comparison `>=` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x >= sender;\n | ^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/lt_fail.out b/tests/expectations/compiler/address/lt_fail.out new file mode 100644 index 0000000000..a145767772 --- /dev/null +++ b/tests/expectations/compiler/address/lt_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372021]: Comparison `<` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x < sender;\n | ^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/lte_fail.out b/tests/expectations/compiler/address/lte_fail.out new file mode 100644 index 0000000000..a6631826f8 --- /dev/null +++ b/tests/expectations/compiler/address/lte_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372021]: Comparison `<=` is not supported for the address type.\n --> compiler-test:6:12\n |\n 6 | return x <= sender;\n | ^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/ternary.out b/tests/expectations/compiler/address/ternary.out new file mode 100644 index 0000000000..1e195726ca --- /dev/null +++ b/tests/expectations/compiler/address/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ec3cfeb93ea66a530150a5c5e2bd396688b3ef9b9fb0bcb961c62dac4daa064e + - initial_input_ast: cb1d48114c10b2b732ad47a46fc8d05bf7a3e783da89e7f00065244bfc8d15c8 + initial_ast: 34fa13578b50765e2d6e3ccd007bf8d92a036c93269a135001862b00c25191fb + unrolled_ast: 34fa13578b50765e2d6e3ccd007bf8d92a036c93269a135001862b00c25191fb + ssa_ast: 7b6e63a841b22403748da3a1e959fc112526c89c1f594b0c53e658fe6f725806 diff --git a/tests/expectations/compiler/boolean/and.out b/tests/expectations/compiler/boolean/and.out new file mode 100644 index 0000000000..ff50953dae --- /dev/null +++ b/tests/expectations/compiler/boolean/and.out @@ -0,0 +1,12 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: da1d028d28792f9625d528ebee6f3abd09b21a7bfa6bb3be5d8c3ad01d974558 + - initial_input_ast: 5f19f0086b0509628dc64db0f69000d599bc761cb8e3125144de44367081126a + - initial_input_ast: 4c5eeffd0306b20c8deece509782b81ea8583245f650e40a4a300d517f6ed5f4 + - initial_input_ast: a56b3f9908dec2acaed302691d4fe0c2cf046f0deb8f188f617e042e75502f71 + initial_ast: 55d744a3c33451d66b14c795dc447e41de0cf5639b0ebef7b69edf54c5d89093 + unrolled_ast: 55d744a3c33451d66b14c795dc447e41de0cf5639b0ebef7b69edf54c5d89093 + ssa_ast: 8d64b5c090f828416d6468f309ce7266cc91b115f50bd4189edb5555b60f3b3c diff --git a/tests/expectations/compiler/boolean/conditional.out b/tests/expectations/compiler/boolean/conditional.out new file mode 100644 index 0000000000..64b16a5df1 --- /dev/null +++ b/tests/expectations/compiler/boolean/conditional.out @@ -0,0 +1,12 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 194c39c41573171b5ba154f70577279b4c535465fe4475c889ea693a81b316c7 + - initial_input_ast: 9af3ce639269ea18073cb3b1a19520ba98f0484a04b20526584131d18c54712c + - initial_input_ast: 7a1c39dec2388ab801496ceb17ca85665d2f515269929925b7cc9018e14297ea + - initial_input_ast: 650984ca5077d11a815889421656b7735b4c6bd320bdf68b4deb87dfc0f49388 + initial_ast: 83c406dac8e86b59a28af6e4ea4b26682e27d54d2f4388e5a07241b5c65cb3fb + unrolled_ast: 83c406dac8e86b59a28af6e4ea4b26682e27d54d2f4388e5a07241b5c65cb3fb + ssa_ast: 60c54965341cc24a373b1725e9bb5b06c4866b718cc447bbbbd471db3a3eb7f1 diff --git a/tests/expectations/compiler/boolean/equal.out b/tests/expectations/compiler/boolean/equal.out new file mode 100644 index 0000000000..bfdeb855b5 --- /dev/null +++ b/tests/expectations/compiler/boolean/equal.out @@ -0,0 +1,12 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: da1d028d28792f9625d528ebee6f3abd09b21a7bfa6bb3be5d8c3ad01d974558 + - initial_input_ast: 5f19f0086b0509628dc64db0f69000d599bc761cb8e3125144de44367081126a + - initial_input_ast: 4c5eeffd0306b20c8deece509782b81ea8583245f650e40a4a300d517f6ed5f4 + - initial_input_ast: a56b3f9908dec2acaed302691d4fe0c2cf046f0deb8f188f617e042e75502f71 + initial_ast: cebfbbe734699586c7aecb5658acb031a5575b451bfa73d0705c1760eaff4794 + unrolled_ast: cebfbbe734699586c7aecb5658acb031a5575b451bfa73d0705c1760eaff4794 + ssa_ast: 6f816b2cad1190d363074dc040aad24e814e72902f0a87c93c9a0c3a400aa15a diff --git a/tests/expectations/compiler/boolean/not_equal.out b/tests/expectations/compiler/boolean/not_equal.out new file mode 100644 index 0000000000..a4b7ea5d8c --- /dev/null +++ b/tests/expectations/compiler/boolean/not_equal.out @@ -0,0 +1,12 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: da1d028d28792f9625d528ebee6f3abd09b21a7bfa6bb3be5d8c3ad01d974558 + - initial_input_ast: 5f19f0086b0509628dc64db0f69000d599bc761cb8e3125144de44367081126a + - initial_input_ast: 4c5eeffd0306b20c8deece509782b81ea8583245f650e40a4a300d517f6ed5f4 + - initial_input_ast: a56b3f9908dec2acaed302691d4fe0c2cf046f0deb8f188f617e042e75502f71 + initial_ast: 799b12d7d00d994098c55ad350d9e6dcecc8ac5c094005a121c5a0b2fd97d14d + unrolled_ast: 799b12d7d00d994098c55ad350d9e6dcecc8ac5c094005a121c5a0b2fd97d14d + ssa_ast: 2d3f104901633eeda4a94848c0015d1ebcfb130052b8ce947354cb67a6a9e53c diff --git a/tests/expectations/compiler/boolean/operator_methods.out b/tests/expectations/compiler/boolean/operator_methods.out new file mode 100644 index 0000000000..3570c046f7 --- /dev/null +++ b/tests/expectations/compiler/boolean/operator_methods.out @@ -0,0 +1,12 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e0fdf4f304b80e670735af85014968ae21f78d309ab9ad55bdc5e02167dcbb54 + - initial_input_ast: 3254bbbc78ad3eec1c6667ade0b3d3da5ee17c7e569118cc1c771ba607e79ab0 + - initial_input_ast: 19f1be52a19445695f23724e1979b362dd3fcf31aace997c829e2206dc1cccbe + - initial_input_ast: d2fc1992beaf062678bbf6c3e862820dbbea39926589afcdc46c19c8669f0e37 + initial_ast: 183ddb57bc8f209613ad3d93465ec5ca782268d62748ef090312b90c378e50ce + unrolled_ast: 183ddb57bc8f209613ad3d93465ec5ca782268d62748ef090312b90c378e50ce + ssa_ast: 6c71c2d58a2748b9f349fcf0c7d095d13777587c79c0a43f3d93c53e957b26f1 diff --git a/tests/expectations/compiler/boolean/or.out b/tests/expectations/compiler/boolean/or.out new file mode 100644 index 0000000000..2bba97b286 --- /dev/null +++ b/tests/expectations/compiler/boolean/or.out @@ -0,0 +1,12 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: da1d028d28792f9625d528ebee6f3abd09b21a7bfa6bb3be5d8c3ad01d974558 + - initial_input_ast: 5f19f0086b0509628dc64db0f69000d599bc761cb8e3125144de44367081126a + - initial_input_ast: 4c5eeffd0306b20c8deece509782b81ea8583245f650e40a4a300d517f6ed5f4 + - initial_input_ast: a56b3f9908dec2acaed302691d4fe0c2cf046f0deb8f188f617e042e75502f71 + initial_ast: 05f3b4b5be5b81f6ba33041f135a04caeea5733c41ed1c8d9890ca2ae9807b80 + unrolled_ast: 05f3b4b5be5b81f6ba33041f135a04caeea5733c41ed1c8d9890ca2ae9807b80 + ssa_ast: bf96cc9a3e0c84f6ac7e49b34823628e5f43dcaeaf888bf78186b9d618c1e313 diff --git a/tests/expectations/compiler/circuits/circuit_function_namespace_conflict_fail.out b/tests/expectations/compiler/circuits/circuit_function_namespace_conflict_fail.out new file mode 100644 index 0000000000..6db7ce9cdb --- /dev/null +++ b/tests/expectations/compiler/circuits/circuit_function_namespace_conflict_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:7:16\n |\n 7 | function Foo() {}\n | ^" diff --git a/tests/expectations/compiler/circuits/duplicate_circuit_variable.out b/tests/expectations/compiler/circuits/duplicate_circuit_variable.out new file mode 100644 index 0000000000..1beb7652ae --- /dev/null +++ b/tests/expectations/compiler/circuits/duplicate_circuit_variable.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372015]: Circuit Bar defined with more than one member with the same name.\n --> compiler-test:3:1\n |\n 3 | circuit Bar {\n 4 | x: u32,\n 5 | x: u32,\n 6 | }\n | ^\n" diff --git a/tests/expectations/compiler/circuits/duplicate_name_context.out b/tests/expectations/compiler/circuits/duplicate_name_context.out new file mode 100644 index 0000000000..02541292d0 --- /dev/null +++ b/tests/expectations/compiler/circuits/duplicate_name_context.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372009]: circuit `Bar` shadowed by\n --> compiler-test:8:5\n |\n 8 | const Bar: u32 = 66u32;\n | ^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/circuits/inline.out b/tests/expectations/compiler/circuits/inline.out new file mode 100644 index 0000000000..e3964a99ba --- /dev/null +++ b/tests/expectations/compiler/circuits/inline.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: ab13abfe19f1ce1a3bdc6e632f34bba90b1534dae5b3354d22b0c659ecfa5fde + unrolled_ast: ab13abfe19f1ce1a3bdc6e632f34bba90b1534dae5b3354d22b0c659ecfa5fde + ssa_ast: 8379d97641e8e302534294f0a6215d095bdd3ba554d704c2e8c7d1e8c258a21d diff --git a/tests/expectations/compiler/circuits/inline_fail.out b/tests/expectations/compiler/circuits/inline_fail.out new file mode 100644 index 0000000000..98cea7a383 --- /dev/null +++ b/tests/expectations/compiler/circuits/inline_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:7:17\n |\n 7 | function main() {\n | ^" diff --git a/tests/expectations/compiler/circuits/inline_member_fail.out b/tests/expectations/compiler/circuits/inline_member_fail.out new file mode 100644 index 0000000000..98cea7a383 --- /dev/null +++ b/tests/expectations/compiler/circuits/inline_member_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:7:17\n |\n 7 | function main() {\n | ^" diff --git a/tests/expectations/compiler/circuits/inline_member_pass.out b/tests/expectations/compiler/circuits/inline_member_pass.out new file mode 100644 index 0000000000..64a8608844 --- /dev/null +++ b/tests/expectations/compiler/circuits/inline_member_pass.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^\nError [ETYC0372004]: Could not determine the type of `b`\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^\nError [ETYC0372003]: Expected type `u8` but type `no type` was found\n --> compiler-test:10:13\n |\n 10 | return (b.x == a.x) == y;\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/circuits/inline_undefined.out b/tests/expectations/compiler/circuits/inline_undefined.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/circuits/inline_undefined.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/circuits/member_variable.out b/tests/expectations/compiler/circuits/member_variable.out new file mode 100644 index 0000000000..f98f5533ec --- /dev/null +++ b/tests/expectations/compiler/circuits/member_variable.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 29f6139d908d390f890f04d8ee620757d29b7f71cd48c46ff65bc1e70aae840c + initial_ast: d99ea689ff68e085c40b86f1a018b05bf96cdfa82e9828d1df08c3294edc900e + unrolled_ast: d99ea689ff68e085c40b86f1a018b05bf96cdfa82e9828d1df08c3294edc900e + ssa_ast: d3501b6d89b4191d24bab8ca2f11ab665e5fe48f254aafd21e832824f322be00 diff --git a/tests/expectations/compiler/circuits/member_variable_fail.out b/tests/expectations/compiler/circuits/member_variable_fail.out new file mode 100644 index 0000000000..98cea7a383 --- /dev/null +++ b/tests/expectations/compiler/circuits/member_variable_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:7:17\n |\n 7 | function main() {\n | ^" diff --git a/tests/expectations/compiler/console/assert.out b/tests/expectations/compiler/console/assert.out new file mode 100644 index 0000000000..d62969441f --- /dev/null +++ b/tests/expectations/compiler/console/assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 15a1f00a6c0ca8141202e45e534b7afd196e9391c184a4efd94f0d0ccf04a59d + initial_ast: 517671a3a7da0848144f535dde8d28aefcabefa62d9938bccac16c786b15c8d2 + unrolled_ast: 517671a3a7da0848144f535dde8d28aefcabefa62d9938bccac16c786b15c8d2 + ssa_ast: 030306c3161e8b351028499e05e69fe56f093b174be4d2a76181a06383318b2c diff --git a/tests/expectations/compiler/console/error.out b/tests/expectations/compiler/console/error.out new file mode 100644 index 0000000000..d975994073 --- /dev/null +++ b/tests/expectations/compiler/console/error.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 14cd2c781b154a9037de84e945cfb348e9c587cef94d3e1f3be83e4306f92a0e + initial_ast: 4c992083d0b9bc51d1600eb3841c838936cf9669cdd46ea65bfb5bd22e07b591 + unrolled_ast: 4c992083d0b9bc51d1600eb3841c838936cf9669cdd46ea65bfb5bd22e07b591 + ssa_ast: 3df2ca289184727370d8660e6ff607bcb810291e08db1e0b0211897814962c2a diff --git a/tests/expectations/compiler/console/log.out b/tests/expectations/compiler/console/log.out new file mode 100644 index 0000000000..72bcd7d540 --- /dev/null +++ b/tests/expectations/compiler/console/log.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fd19d82c3aba921f01b37174e3eb7fb603438506fe511657e21235b9fb3647d2 + initial_ast: 7c157486b4b4de54001520eaad505a8a4d7d33bd43cfc239fc6136df2e11db6e + unrolled_ast: 7c157486b4b4de54001520eaad505a8a4d7d33bd43cfc239fc6136df2e11db6e + ssa_ast: 5d2be7fa1f3c6fae4f9997c1193377f73c52ef8cec3371e7b7f238e783d66028 diff --git a/tests/expectations/compiler/console/log_conditional.out b/tests/expectations/compiler/console/log_conditional.out new file mode 100644 index 0000000000..9d4188d271 --- /dev/null +++ b/tests/expectations/compiler/console/log_conditional.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 12a0efa27e9b65c045088e471e6c254bb71c60cca4eb369f41e83a29301130cf + - initial_input_ast: 5622eb396c2aea656e3bfa6b1ad0d39fce6bc221978a13c9be4d750da46cfc48 + initial_ast: bed59c01a4008b6d778a8d0712db49e6649249d3e56f23705689ed477e70b188 + unrolled_ast: bed59c01a4008b6d778a8d0712db49e6649249d3e56f23705689ed477e70b188 + ssa_ast: c590c29fcf41b5f9c532cf5f62ab960079ad16743265e47d41dcc20dc62b1513 diff --git a/tests/expectations/compiler/console/log_fail.out b/tests/expectations/compiler/console/log_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/console/log_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/console/log_input.out b/tests/expectations/compiler/console/log_input.out new file mode 100644 index 0000000000..46f3858c15 --- /dev/null +++ b/tests/expectations/compiler/console/log_input.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0961f603812e241567b6e3ef5adb458309f1829eb2c08a216efccb17bea89faf + initial_ast: 3b65cb5a74cdc704921cc74196298d9eeb4c6aad4e583bf68cf97967fdb10c8d + unrolled_ast: 3b65cb5a74cdc704921cc74196298d9eeb4c6aad4e583bf68cf97967fdb10c8d + ssa_ast: e536ba2e6e50e4e54e01868b443411be1522bf12a4671d10c5ec01459b1ee6ca diff --git a/tests/expectations/compiler/console/log_parameter.out b/tests/expectations/compiler/console/log_parameter.out new file mode 100644 index 0000000000..53f94d9267 --- /dev/null +++ b/tests/expectations/compiler/console/log_parameter.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f18a0e019ca4719c4c4ef5b7313f562c3bc9581819d161d84566e706f3765249 + initial_ast: 0948ec0eab95b6e7505d1dc57171d331d4761a5862aba39a824d8eae4fc7ca0f + unrolled_ast: 0948ec0eab95b6e7505d1dc57171d331d4761a5862aba39a824d8eae4fc7ca0f + ssa_ast: 29599104b1235b24eed567663d0ea40c667df5759033297767f3e0cebadd7f93 diff --git a/tests/expectations/compiler/console/log_parameter_many.out b/tests/expectations/compiler/console/log_parameter_many.out new file mode 100644 index 0000000000..36ab7b80c0 --- /dev/null +++ b/tests/expectations/compiler/console/log_parameter_many.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 16910a94cf1f803ae6425ae6bee9422b01651c2c243b5e46807dc3191d169e64 + initial_ast: 67374111d3b6104af14a6a9246b1c5151171512d98c904e62183d29ed0b1e62f + unrolled_ast: 67374111d3b6104af14a6a9246b1c5151171512d98c904e62183d29ed0b1e62f + ssa_ast: 5ecb75e68a6ee324e63efba97a9bb5d4ab1f453be77dd781542c31fe23587aa2 diff --git a/tests/expectations/compiler/console/log_parameter_unkown_fail.out b/tests/expectations/compiler/console/log_parameter_unkown_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/console/log_parameter_unkown_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/console/log_string.out b/tests/expectations/compiler/console/log_string.out new file mode 100644 index 0000000000..4924c283fb --- /dev/null +++ b/tests/expectations/compiler/console/log_string.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'formatted static_string', found 'hello'\n --> compiler-test:5:17\n |\n 5 | console.log(hello);\n | ^^^^^" diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_commit.out b/tests/expectations/compiler/core/algorithms/bhp1024_commit.out new file mode 100644 index 0000000000..790888e063 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp1024_commit.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 27bbdd2fe5dc1a75a4bd2aa543e12b7c284ab950028657fc0087dfef631664b9 + initial_ast: 679d4f1ad4a54d3821e5f85c64e5e253dbf8ee07aaac7fc7ec2e086f2cbaa909 + unrolled_ast: 679d4f1ad4a54d3821e5f85c64e5e253dbf8ee07aaac7fc7ec2e086f2cbaa909 + ssa_ast: 6860f1b6b49a9bd0bf1c0f4afa8ad0067036196b5de4b17b26bbae9657f204f9 diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_hash.out b/tests/expectations/compiler/core/algorithms/bhp1024_hash.out new file mode 100644 index 0000000000..2e069d2501 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp1024_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4a84cbe8cc7ea360153e9da6f2d475dcbb4921c329fe8dd3b4cdca617b6d38a6 + initial_ast: 8a961f82417010275495fdcc212292b809a71969396604e49e745fef94b3086f + unrolled_ast: 8a961f82417010275495fdcc212292b809a71969396604e49e745fef94b3086f + ssa_ast: 3d31265bf4923378c3202c852c599fad1dcd196920c23b4596186f1dcff0abe9 diff --git a/tests/expectations/compiler/core/algorithms/bhp256_commit.out b/tests/expectations/compiler/core/algorithms/bhp256_commit.out new file mode 100644 index 0000000000..a8291606ab --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp256_commit.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 71055ce4ed5911b2afac14a8719573d4ffb9a72959e060f284122350dbda53df + initial_ast: 46df628c79eeda6fe31fdee9cd1dccb921b45efc9bc203d5d9ce6bda069f6be2 + unrolled_ast: 46df628c79eeda6fe31fdee9cd1dccb921b45efc9bc203d5d9ce6bda069f6be2 + ssa_ast: b2911915da86b51ed768cd8eb81f6b0c6aeda73de1e76278a75db44c3cc3fd76 diff --git a/tests/expectations/compiler/core/algorithms/bhp256_hash.out b/tests/expectations/compiler/core/algorithms/bhp256_hash.out new file mode 100644 index 0000000000..8e9639ff5c --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp256_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5fa4b39f9cd209357769110ef49f609e2acce0c38f9def3f2ed7fcb4ce1b2240 + initial_ast: 78c14952814d10190e26fa2fa4470e6af854fd6cff96e8c3c768662daa2aa005 + unrolled_ast: 78c14952814d10190e26fa2fa4470e6af854fd6cff96e8c3c768662daa2aa005 + ssa_ast: 484e4cbfade2151163bc2c09b542c6746fc9fbcf208473454aa08002c1e13c1f diff --git a/tests/expectations/compiler/core/algorithms/bhp512_commit.out b/tests/expectations/compiler/core/algorithms/bhp512_commit.out new file mode 100644 index 0000000000..8046ac7d3a --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp512_commit.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 71055ce4ed5911b2afac14a8719573d4ffb9a72959e060f284122350dbda53df + initial_ast: 505d1cdcee0dac47f49fea5f7af40c20a2262677aa7d8caf3b7051f4b5c70a6e + unrolled_ast: 505d1cdcee0dac47f49fea5f7af40c20a2262677aa7d8caf3b7051f4b5c70a6e + ssa_ast: cdccc90d8023edcf5e6ef7ab7dc42fe8812889cbbf6bb5bcf74a5628edc7d2eb diff --git a/tests/expectations/compiler/core/algorithms/bhp512_hash.out b/tests/expectations/compiler/core/algorithms/bhp512_hash.out new file mode 100644 index 0000000000..76b005620b --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp512_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5fa4b39f9cd209357769110ef49f609e2acce0c38f9def3f2ed7fcb4ce1b2240 + initial_ast: 0f72dc8f0fe5a8bf44067f5928a1835d0fc58551cda0280400060ff3519e02e2 + unrolled_ast: 0f72dc8f0fe5a8bf44067f5928a1835d0fc58551cda0280400060ff3519e02e2 + ssa_ast: 3da7df0dd03e5215a9df1095f875ecaaa2c549810b961b3444a168fe5cccde9a diff --git a/tests/expectations/compiler/core/algorithms/bhp768_commit.out b/tests/expectations/compiler/core/algorithms/bhp768_commit.out new file mode 100644 index 0000000000..ce4b77c210 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp768_commit.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 71055ce4ed5911b2afac14a8719573d4ffb9a72959e060f284122350dbda53df + initial_ast: 1697ade1991b3fe9489d04a4b1c9d2f85defceea27455664a8dd6aad9d67c363 + unrolled_ast: 1697ade1991b3fe9489d04a4b1c9d2f85defceea27455664a8dd6aad9d67c363 + ssa_ast: ebb84c20196355f32d94db47d1b594ffd6c8ae078f47cf5f05986aa32b894185 diff --git a/tests/expectations/compiler/core/algorithms/bhp768_hash.out b/tests/expectations/compiler/core/algorithms/bhp768_hash.out new file mode 100644 index 0000000000..787f56316d --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp768_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5fa4b39f9cd209357769110ef49f609e2acce0c38f9def3f2ed7fcb4ce1b2240 + initial_ast: af795006736c973728c5d91f2ce6a4771dca2b71249e7d2c7d189326918a168f + unrolled_ast: af795006736c973728c5d91f2ce6a4771dca2b71249e7d2c7d189326918a168f + ssa_ast: 60cd32ce055a0a051d8a0894ec014ad4a90b76c27a5ee18463373ec2fb5fc1fe diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_hash.out b/tests/expectations/compiler/core/algorithms/pedersen128_hash.out new file mode 100644 index 0000000000..4a4186e895 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/pedersen128_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 356dd963e90ec1d3b56f169372c9e9bb2b70d053df96359cfd150679919c758a + initial_ast: 96d1ffc3060c89b3441c0fc5bc8e8b7d9a6982117c6634b0c7c26b1fe0be587a + unrolled_ast: 96d1ffc3060c89b3441c0fc5bc8e8b7d9a6982117c6634b0c7c26b1fe0be587a + ssa_ast: 3788cd3b3b7ffe50fabdaa88d8f61452a14da116622ccdb14a34bdff848e2d17 diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_hash.out b/tests/expectations/compiler/core/algorithms/pedersen64_hash.out new file mode 100644 index 0000000000..e65acc61aa --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/pedersen64_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5395306a6ab6901b3c5df094b3b49dbe5f29fb5886c5f0718097fbe5acd7602e + initial_ast: cf4a7dbbf0e7f4d0518c62104d6e89f4eff178bab8df5417286d9214a2704401 + unrolled_ast: cf4a7dbbf0e7f4d0518c62104d6e89f4eff178bab8df5417286d9214a2704401 + ssa_ast: 663b8b6703900c217dfef21d2b52162c49eb48f2fffc74d7054db99cd5e6d669 diff --git a/tests/expectations/compiler/core/algorithms/pedersen_fail.out b/tests/expectations/compiler/core/algorithms/pedersen_fail.out new file mode 100644 index 0000000000..bcfbdf3384 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/pedersen_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `boolean, i8, i16, i32, i64, u8, u16, u32, u64, string`, but got `u128`\n --> compiler-test:4:20\n |\n 4 | let a: group = Pedersen64::hash(1u128);\n | ^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372003]: Expected type `group` but type `field` was found\n --> compiler-test:4:20\n |\n 4 | let a: group = Pedersen64::hash(1u128);\n | ^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/core/algorithms/poseidon2_hash.out b/tests/expectations/compiler/core/algorithms/poseidon2_hash.out new file mode 100644 index 0000000000..dcf35ec571 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/poseidon2_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 67384917f58c90880ca198b9a636e84c55d97b1068a3c88c1c4734577c798577 + initial_ast: 58d78478c0f85a019221ebdc21e79083d80f70774210934a18eee5fce7d588d1 + unrolled_ast: 58d78478c0f85a019221ebdc21e79083d80f70774210934a18eee5fce7d588d1 + ssa_ast: 4ee97e337b3cf59243e63f1339f4e5a060cc38d45378e6bb1a040ff4ba5320c6 diff --git a/tests/expectations/compiler/core/algorithms/poseidon4_hash.out b/tests/expectations/compiler/core/algorithms/poseidon4_hash.out new file mode 100644 index 0000000000..79422fcfe8 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/poseidon4_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 67384917f58c90880ca198b9a636e84c55d97b1068a3c88c1c4734577c798577 + initial_ast: 086408c110059f1af409ca0dfbfadf85b8c3ed55f28bc76e133bc57cf832ed21 + unrolled_ast: 086408c110059f1af409ca0dfbfadf85b8c3ed55f28bc76e133bc57cf832ed21 + ssa_ast: 3681b11adb8495432eb3e13378f5b70030bd7c643d8765ae6251a2f17120139f diff --git a/tests/expectations/compiler/core/algorithms/poseidon8_hash.out b/tests/expectations/compiler/core/algorithms/poseidon8_hash.out new file mode 100644 index 0000000000..6c00b54d13 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/poseidon8_hash.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 67384917f58c90880ca198b9a636e84c55d97b1068a3c88c1c4734577c798577 + initial_ast: 632a5144ec2fe401dc832a98bb6c8244272fd08799af229fc6fea179a8788ca3 + unrolled_ast: 632a5144ec2fe401dc832a98bb6c8244272fd08799af229fc6fea179a8788ca3 + ssa_ast: 6749addd8071f14f367b8af4514b497c9ae2d19780ae7d68a0a4d1dd359458cf diff --git a/tests/expectations/compiler/definition/out_of_order.out b/tests/expectations/compiler/definition/out_of_order.out new file mode 100644 index 0000000000..5a75fb1fbc --- /dev/null +++ b/tests/expectations/compiler/definition/out_of_order.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b649852fa2fd7eda05bd0ba261f01dcee93b6b825d5d30fddb8dd5c5710081ca + initial_ast: 840776885448094e9749c6b182ea5c1c37012df4d16366b69d703f742f8c1d70 + unrolled_ast: 840776885448094e9749c6b182ea5c1c37012df4d16366b69d703f742f8c1d70 + ssa_ast: cd2649726e53372f5efb7d47fb3dbf02bdb1157868d13babe19d8b62a3ae897a diff --git a/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out b/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out new file mode 100644 index 0000000000..0d2db82b07 --- /dev/null +++ b/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = b;\n | ^\n" diff --git a/tests/expectations/compiler/field/add.out b/tests/expectations/compiler/field/add.out new file mode 100644 index 0000000000..70cb307adf --- /dev/null +++ b/tests/expectations/compiler/field/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3f35e74d282a1e5281e7f283d1e572a3dc75dea1a5ef1a0f8c7f46412ef946a7 + initial_ast: a642bb5c7cfb36da9119944a050704e70165ace5a19bff542fe99746c4661caa + unrolled_ast: a642bb5c7cfb36da9119944a050704e70165ace5a19bff542fe99746c4661caa + ssa_ast: 4a6176fd8639ac8fa962d731d70e7ac767b481636742a7c00e3d5b56acae977e diff --git a/tests/expectations/compiler/field/div.out b/tests/expectations/compiler/field/div.out new file mode 100644 index 0000000000..cb5bce251e --- /dev/null +++ b/tests/expectations/compiler/field/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4e3882d83c8044e40258f8414966b09c715b00e08bc3383030cecf2c4a825c60 + initial_ast: a8b947e11bb42d6cec1f00bc4fdeb9a56f0706366b4a01d41939628d5516e29c + unrolled_ast: a8b947e11bb42d6cec1f00bc4fdeb9a56f0706366b4a01d41939628d5516e29c + ssa_ast: 42fda378b7550f678e4efa347978b807801b9109f33d5dea0aa4c01ecc563580 diff --git a/tests/expectations/compiler/field/eq.out b/tests/expectations/compiler/field/eq.out new file mode 100644 index 0000000000..09dafa540a --- /dev/null +++ b/tests/expectations/compiler/field/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: eeba130bda3ee24f2a4bf92f67fb555ab849173910a647096e28729c2ebd71c2 + initial_ast: 85979e9e3e049b13ee7c03e9d7b109427bb5fdf6a5e333dba3f755de817b13f0 + unrolled_ast: 85979e9e3e049b13ee7c03e9d7b109427bb5fdf6a5e333dba3f755de817b13f0 + ssa_ast: 923467fd53b8d3b54011bbf339d3937cf15c305f6377b7842052783f30d9c3f7 diff --git a/tests/expectations/compiler/field/field.out b/tests/expectations/compiler/field/field.out new file mode 100644 index 0000000000..629cf24fe1 --- /dev/null +++ b/tests/expectations/compiler/field/field.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a510480221eb323713b4b10cc374ba357f130e8ac2b07bf1c69ad5d8c936f12 + initial_ast: 1bc7e68d6898615de5f7142601fd40112a8604fc4f5bcab01ec058a6763bd9c3 + unrolled_ast: 1bc7e68d6898615de5f7142601fd40112a8604fc4f5bcab01ec058a6763bd9c3 + ssa_ast: a2d126a82860c39719dbeb32ad086aecb5c0506fa871bf3de87bf794c922f2c3 diff --git a/tests/expectations/compiler/field/mul.out b/tests/expectations/compiler/field/mul.out new file mode 100644 index 0000000000..18de6afae2 --- /dev/null +++ b/tests/expectations/compiler/field/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3f35e74d282a1e5281e7f283d1e572a3dc75dea1a5ef1a0f8c7f46412ef946a7 + initial_ast: 7305c64e6febf09dee173facbadaf96a5eeaa441cc52c2218efb62d97884481c + unrolled_ast: 7305c64e6febf09dee173facbadaf96a5eeaa441cc52c2218efb62d97884481c + ssa_ast: a96f78c8bb2bf2aeafcf823cad700552f5abb41dd9e4aafb4c7c381aa8ae64f0 diff --git a/tests/expectations/compiler/field/negate.out b/tests/expectations/compiler/field/negate.out new file mode 100644 index 0000000000..7ecd9ff3f9 --- /dev/null +++ b/tests/expectations/compiler/field/negate.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9206742d7f18345efbd4d9077cd1aca0855d43a2436be0697ec22954650e3737 + initial_ast: 075cd5aba0c52ac0a30ad4f593e2dfbb573655e59f3d8bc858d7aa459585700d + unrolled_ast: 075cd5aba0c52ac0a30ad4f593e2dfbb573655e59f3d8bc858d7aa459585700d + ssa_ast: 0a24ae04ac26dde68cfdb896ccf0859f275b5960ac8b309fb8928e8f7ae27b72 diff --git a/tests/expectations/compiler/field/no_space_between_literal.out b/tests/expectations/compiler/field/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/field/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/field/operator_methods.out b/tests/expectations/compiler/field/operator_methods.out new file mode 100644 index 0000000000..8ae355eb5f --- /dev/null +++ b/tests/expectations/compiler/field/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 047866515f4dc74cd9966242734984b53e72f87afc21f7171b118e6defa1f166 + initial_ast: d1abbcdea418813712a552d60cfe56bfcdfa25ec3e8d20579e3ccfb190d69090 + unrolled_ast: d1abbcdea418813712a552d60cfe56bfcdfa25ec3e8d20579e3ccfb190d69090 + ssa_ast: 9607ee8d554a5d946cbcc5d599616f403a21da37f1f97d901fbb0c1d34da5bcf diff --git a/tests/expectations/compiler/field/pow.out b/tests/expectations/compiler/field/pow.out new file mode 100644 index 0000000000..77bcbd42f4 --- /dev/null +++ b/tests/expectations/compiler/field/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5e0a61d909d2e94dfbc95775e4c5c356adb61375ceef2d583a5ab927b3b6342e + initial_ast: 6e70939b64b3db3b19754ab75adc3854eccef6a0e0d17923993c5bad0712d6db + unrolled_ast: 6e70939b64b3db3b19754ab75adc3854eccef6a0e0d17923993c5bad0712d6db + ssa_ast: 0de0aacf8a6cfd3eb9c43e84f65c1a3f988e801d0f871cdf7e6bb1a8ddecb7fd diff --git a/tests/expectations/compiler/field/sub.out b/tests/expectations/compiler/field/sub.out new file mode 100644 index 0000000000..3bafd14bcc --- /dev/null +++ b/tests/expectations/compiler/field/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4e3882d83c8044e40258f8414966b09c715b00e08bc3383030cecf2c4a825c60 + initial_ast: b683bf0a120ac9d6ca333a9f5eba572be5c76d8e50df43496f3a95cf4684ad37 + unrolled_ast: b683bf0a120ac9d6ca333a9f5eba572be5c76d8e50df43496f3a95cf4684ad37 + ssa_ast: 9146f7d13d581ce7b49d9dec7c9f53e3318daf79319262844203514b3880c320 diff --git a/tests/expectations/compiler/field/ternary.out b/tests/expectations/compiler/field/ternary.out new file mode 100644 index 0000000000..1c9bbf1340 --- /dev/null +++ b/tests/expectations/compiler/field/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e19dcac0064fed4ec8293b9b40ec70cb94b5fdb05f1081fc29f46a023bf79b09 + initial_ast: 90e4661bfe4be03914931788bdaa89b6057d0299019cf4d72c8f59ba80872201 + unrolled_ast: 90e4661bfe4be03914931788bdaa89b6057d0299019cf4d72c8f59ba80872201 + ssa_ast: 747443858f151feff074a55a5535e512fe7933e4b40c7e3c0772db32a3b18d68 diff --git a/tests/expectations/compiler/function/9_inputs_fail.out b/tests/expectations/compiler/function/9_inputs_fail.out new file mode 100644 index 0000000000..0c5854d768 --- /dev/null +++ b/tests/expectations/compiler/function/9_inputs_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected ; -- found '}'\n --> compiler-test:16:1\n |\n 16 | }\n | ^" diff --git a/tests/expectations/compiler/function/conditional_return.out b/tests/expectations/compiler/function/conditional_return.out new file mode 100644 index 0000000000..8dab1248ef --- /dev/null +++ b/tests/expectations/compiler/function/conditional_return.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ae0703890dbea144e675f85228e958d6903df0d1ebd88f16a531624270205cc2 + initial_ast: 3dac7cf725df154640f7ea5979ac102b14916dc88215a69f555752f1e8051eec + unrolled_ast: 3dac7cf725df154640f7ea5979ac102b14916dc88215a69f555752f1e8051eec + ssa_ast: 866ffe9a91b29ef7e55837c4971c606d60d61561f7bf8078cbc9489912267ed6 diff --git a/tests/expectations/compiler/function/duplicate_definition_fail.out b/tests/expectations/compiler/function/duplicate_definition_fail.out new file mode 100644 index 0000000000..58c592c7cf --- /dev/null +++ b/tests/expectations/compiler/function/duplicate_definition_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372008]: function `main` shadowed by\n --> compiler-test:8:1\n |\n 8 | function main(y: bool) -> bool {\n 9 | console.log(\"{}\", 2u8);\n 10 | return y; \n 11 | }\n | ^\n" diff --git a/tests/expectations/compiler/function/duplicate_parameter_fail.out b/tests/expectations/compiler/function/duplicate_parameter_fail.out new file mode 100644 index 0000000000..a87161a73d --- /dev/null +++ b/tests/expectations/compiler/function/duplicate_parameter_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372011]: variable `a` shadowed by\n --> compiler-test:3:23\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^\n" diff --git a/tests/expectations/compiler/function/no_return_fail.out b/tests/expectations/compiler/function/no_return_fail.out new file mode 100644 index 0000000000..90b17b9e98 --- /dev/null +++ b/tests/expectations/compiler/function/no_return_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372011]: The function main has no return statement.\n --> compiler-test:3:1\n |\n 3 | function main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/scope_fail.out b/tests/expectations/compiler/function/scope_fail.out new file mode 100644 index 0000000000..987a02a25a --- /dev/null +++ b/tests/expectations/compiler/function/scope_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:9:20\n |\n 9 | const myGlobal = 42field;\n | ^" diff --git a/tests/expectations/compiler/function/shadow_function_with_input_fail.out b/tests/expectations/compiler/function/shadow_function_with_input_fail.out new file mode 100644 index 0000000000..56c3c19877 --- /dev/null +++ b/tests/expectations/compiler/function/shadow_function_with_input_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372008]: function `hi` shadowed by\n --> compiler-test:7:17\n |\n 7 | function tester(hi: u8) -> u8 {\n | ^^\n" diff --git a/tests/expectations/compiler/function/shadow_parameter_fail.out b/tests/expectations/compiler/function/shadow_parameter_fail.out new file mode 100644 index 0000000000..f0be731957 --- /dev/null +++ b/tests/expectations/compiler/function/shadow_parameter_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:4:14\n |\n 4 | const hi = 2u8;\n | ^" diff --git a/tests/expectations/compiler/function/undefined_fail.out b/tests/expectations/compiler/function/undefined_fail.out new file mode 100644 index 0000000000..b9cfa08e55 --- /dev/null +++ b/tests/expectations/compiler/function/undefined_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370022]: Expression statements are not supported.\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^^^^" diff --git a/tests/expectations/compiler/group/add.out b/tests/expectations/compiler/group/add.out new file mode 100644 index 0000000000..63d7e677b2 --- /dev/null +++ b/tests/expectations/compiler/group/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5deb6fe058cfd48245b762ae48484205ae3912fd912d877315b93700d6278a8 + initial_ast: 82fb59b4d1b0f14e58551155fe37565c9ea89d1a4a368b6018f235ec47420039 + unrolled_ast: 82fb59b4d1b0f14e58551155fe37565c9ea89d1a4a368b6018f235ec47420039 + ssa_ast: 627f929cb1ae78fe112f0cf0d21ffe564081eebdb9a91498ca8d5bce96ae24cd diff --git a/tests/expectations/compiler/group/assert_eq.out b/tests/expectations/compiler/group/assert_eq.out new file mode 100644 index 0000000000..0d64b22e8a --- /dev/null +++ b/tests/expectations/compiler/group/assert_eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 05dd4d307ee7545a894ea5eea710b1271ee80550b02be767c626032132edb1d0 + initial_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 + unrolled_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 + ssa_ast: 469f27d1f72f5d05ac05a078abcd9f77ee774182ac3bed2fd4aa5ca606fcb64f diff --git a/tests/expectations/compiler/group/eq.out b/tests/expectations/compiler/group/eq.out new file mode 100644 index 0000000000..0d64b22e8a --- /dev/null +++ b/tests/expectations/compiler/group/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 05dd4d307ee7545a894ea5eea710b1271ee80550b02be767c626032132edb1d0 + initial_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 + unrolled_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 + ssa_ast: 469f27d1f72f5d05ac05a078abcd9f77ee774182ac3bed2fd4aa5ca606fcb64f diff --git a/tests/expectations/compiler/group/group_mul.out b/tests/expectations/compiler/group/group_mul.out new file mode 100644 index 0000000000..41526c96f1 --- /dev/null +++ b/tests/expectations/compiler/group/group_mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: eb3189d9f0067604b0469eb04d438a85be64e3e4565635a1851584bcd3ba4b6d + initial_ast: a60613f5def981f4df8f49c965754e5eeaa77d6e87f99f1bb6cdb17b364cb517 + unrolled_ast: a60613f5def981f4df8f49c965754e5eeaa77d6e87f99f1bb6cdb17b364cb517 + ssa_ast: cc100550e1ec1c35522c06194bf160e1fb60f5d002ce4b6ca0745d3040904893 diff --git a/tests/expectations/compiler/group/input.out b/tests/expectations/compiler/group/input.out new file mode 100644 index 0000000000..9ce97370f5 --- /dev/null +++ b/tests/expectations/compiler/group/input.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 27f7ed55718c2a07aa6f84e974b1358426a4e618563d07c514df7c88d7188ca8 + initial_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 + unrolled_ast: 976950a13a43fd24986284453099b3c760d494bfe6707a47c05e61c410da3394 + ssa_ast: 469f27d1f72f5d05ac05a078abcd9f77ee774182ac3bed2fd4aa5ca606fcb64f diff --git a/tests/expectations/compiler/group/mul.out b/tests/expectations/compiler/group/mul.out new file mode 100644 index 0000000000..a0f0e4ffd0 --- /dev/null +++ b/tests/expectations/compiler/group/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: aa9f032e49947f1f8e9fa3d594c2564d1635966fde117565dc19677bc2ee4882 + initial_ast: b80807e39da4b5a4c3e5a4311f3f003c4990c9815ba30c461dfcb3e84c5e6c32 + unrolled_ast: b80807e39da4b5a4c3e5a4311f3f003c4990c9815ba30c461dfcb3e84c5e6c32 + ssa_ast: 4d6a74519733c6cb1f7ccdc84a93baf5daf3a7ef662937732085923df9ca55bd diff --git a/tests/expectations/compiler/group/mult_by_group_fail.out b/tests/expectations/compiler/group/mult_by_group_fail.out new file mode 100644 index 0000000000..a3360ea473 --- /dev/null +++ b/tests/expectations/compiler/group/mult_by_group_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `scalar`, but got `group`\n --> compiler-test:4:26\n |\n 4 | return (_, _)group * a;\n | ^\n" diff --git a/tests/expectations/compiler/group/mult_by_scalar.out b/tests/expectations/compiler/group/mult_by_scalar.out new file mode 100644 index 0000000000..af794c54ef --- /dev/null +++ b/tests/expectations/compiler/group/mult_by_scalar.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3d94a5b90d4b4178d7e3278e134a55145bffd9c296ecba5282f24d995c0fe04a + initial_ast: da67531b49522acb0f87d7cf0786683f4d2608efbf5fa4da89827e36652b7ff4 + unrolled_ast: da67531b49522acb0f87d7cf0786683f4d2608efbf5fa4da89827e36652b7ff4 + ssa_ast: eec3c94aeb1d30cdb448d7b30c9f21ba26a80d6de174dfa9b3de5536cb7c8240 diff --git a/tests/expectations/compiler/group/negate.out b/tests/expectations/compiler/group/negate.out new file mode 100644 index 0000000000..7a2c07e8ad --- /dev/null +++ b/tests/expectations/compiler/group/negate.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c8df42c50c421f9032ead784e7860f118d7b9e0f495c1107ddfcebd5fcfdd9d9 + initial_ast: 79d9474ece6029ed3b0b5a5fd7657c932914d1867572dd6e5478330a8127f249 + unrolled_ast: 79d9474ece6029ed3b0b5a5fd7657c932914d1867572dd6e5478330a8127f249 + ssa_ast: 5e2f8c9b0347fa0b52c4d9bd72f207eefef3b9f3ef280effaa5bbcdf2fb1b828 diff --git a/tests/expectations/compiler/group/no_space_between_literal.out b/tests/expectations/compiler/group/no_space_between_literal.out new file mode 100644 index 0000000000..42c6c5e8cd --- /dev/null +++ b/tests/expectations/compiler/group/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370004]: Unexpected white space between terms (0,1) and group\n --> compiler-test:4:25\n |\n 4 | const g: group = (0,1) group;\n | ^" diff --git a/tests/expectations/compiler/group/operator_methods.out b/tests/expectations/compiler/group/operator_methods.out new file mode 100644 index 0000000000..bd866f465f --- /dev/null +++ b/tests/expectations/compiler/group/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d745c513c959ce3abed861d77d87a662248f8417b7521258835e9ace56b0b6da + initial_ast: fe43ed8f6727cf763c6d22db1818916cdd5c74fc30b7a2f9879966b2949391e9 + unrolled_ast: fe43ed8f6727cf763c6d22db1818916cdd5c74fc30b7a2f9879966b2949391e9 + ssa_ast: 004778e5bc54ab474940178885f3444dc056b843b49e7c487a7039e4fbb2a4cc diff --git a/tests/expectations/compiler/group/point_input.out b/tests/expectations/compiler/group/point_input.out new file mode 100644 index 0000000000..5ee5c6f127 --- /dev/null +++ b/tests/expectations/compiler/group/point_input.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1eef8447118efa7352e198dc76a0f41882c1f90bdc3aa29fd45bd7c17b547816 + initial_ast: ed9d5db3d1ff005b6dc820e3d57dd7b20e8bb78ef376948eb386fe6f6b27854b + unrolled_ast: ed9d5db3d1ff005b6dc820e3d57dd7b20e8bb78ef376948eb386fe6f6b27854b + ssa_ast: a3c45630e1d5f537f1207924c8f2e068e58fe2ac364e93c3d2f9b6f3e37eaafc diff --git a/tests/expectations/compiler/group/sub.out b/tests/expectations/compiler/group/sub.out new file mode 100644 index 0000000000..b17b6d0840 --- /dev/null +++ b/tests/expectations/compiler/group/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5deb6fe058cfd48245b762ae48484205ae3912fd912d877315b93700d6278a8 + initial_ast: 65be9ce3a9bfb68c6e008b95bf6809c26f6717e778632f0a49aca92be9d0e043 + unrolled_ast: 65be9ce3a9bfb68c6e008b95bf6809c26f6717e778632f0a49aca92be9d0e043 + ssa_ast: cd9cc948e73d6aca5cb02ce4f260fba98fd3ba7c1ced682fd28f397a94189b00 diff --git a/tests/expectations/compiler/group/ternary.out b/tests/expectations/compiler/group/ternary.out new file mode 100644 index 0000000000..29c2c6d946 --- /dev/null +++ b/tests/expectations/compiler/group/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7d33564ae09ce3409cb75346a4776c7284007ec68c9f4716617433cafcfa1b13 + initial_ast: 6802e3731f48ab83fa0a38b43249ebd7a73cb99b6ca536834013330063d9a0ba + unrolled_ast: 6802e3731f48ab83fa0a38b43249ebd7a73cb99b6ca536834013330063d9a0ba + ssa_ast: f5c0d6e0125e56b208d96177b9a84f0f8ec56cba3d4284c103567bbef0c1308e diff --git a/tests/expectations/compiler/group/x_and_y.out b/tests/expectations/compiler/group/x_and_y.out new file mode 100644 index 0000000000..a32e09feb5 --- /dev/null +++ b/tests/expectations/compiler/group/x_and_y.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9abdfd027f3d9911431dc87b745b184540eb4dfed735db8ab507c94752307ded + initial_ast: 481d919557c8feaab1d37018bbb51972dcc27dd370f8aad370880110ab572e2a + unrolled_ast: 481d919557c8feaab1d37018bbb51972dcc27dd370f8aad370880110ab572e2a + ssa_ast: 5bf490deb9be48c713e6a0220328d2c8057639b47671ef72c45e67c536b7e4ba diff --git a/tests/expectations/compiler/group/x_sign_high.out b/tests/expectations/compiler/group/x_sign_high.out new file mode 100644 index 0000000000..8112e5adc6 --- /dev/null +++ b/tests/expectations/compiler/group/x_sign_high.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3da70d17ef476250c442a591d7a99347d3fbf616b16456f975a9c655f04e742a + initial_ast: adb753c202153a4e7df0440001e01a79cbb35c6cc6882a1b68c9023d70e58fa2 + unrolled_ast: adb753c202153a4e7df0440001e01a79cbb35c6cc6882a1b68c9023d70e58fa2 + ssa_ast: c22c8c471015fd973a7582bc53aef4ea687354337fa7b0d7ad904e48fbb31768 diff --git a/tests/expectations/compiler/group/x_sign_inferred.out b/tests/expectations/compiler/group/x_sign_inferred.out new file mode 100644 index 0000000000..cc30ce4cd8 --- /dev/null +++ b/tests/expectations/compiler/group/x_sign_inferred.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3da70d17ef476250c442a591d7a99347d3fbf616b16456f975a9c655f04e742a + initial_ast: 1abc09643eb8b4ad261f0e80a684c84b6508b210afcbfedaeb51434e584fd8a0 + unrolled_ast: 1abc09643eb8b4ad261f0e80a684c84b6508b210afcbfedaeb51434e584fd8a0 + ssa_ast: aa5b17a7ae49eef92db76e977dcea78368a1a149f57cc99cfb13ade6b76c8bd8 diff --git a/tests/expectations/compiler/group/x_sign_low.out b/tests/expectations/compiler/group/x_sign_low.out new file mode 100644 index 0000000000..04ecbfbe29 --- /dev/null +++ b/tests/expectations/compiler/group/x_sign_low.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3da70d17ef476250c442a591d7a99347d3fbf616b16456f975a9c655f04e742a + initial_ast: 1a33ac6b583f12e02a2eca908003d69abb7632e11b49510fbfa1fd94adeb56d8 + unrolled_ast: 1a33ac6b583f12e02a2eca908003d69abb7632e11b49510fbfa1fd94adeb56d8 + ssa_ast: 35e8df2a2a81f574eedcc0772eafa4266f93e33e91e6f2bdab9e0cb64e5dc96b diff --git a/tests/expectations/compiler/group/zero.out b/tests/expectations/compiler/group/zero.out new file mode 100644 index 0000000000..f0a8617593 --- /dev/null +++ b/tests/expectations/compiler/group/zero.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2468852fc74f6cfa36cbbde47c14b72cb3f12907e86a7bb3aa7ca09a9c67d6c2 + initial_ast: 618754f367dcd51d5f4bd8b9b7cbf5c78fd0a8f2f6b49620425350e87735997b + unrolled_ast: 618754f367dcd51d5f4bd8b9b7cbf5c78fd0a8f2f6b49620425350e87735997b + ssa_ast: 167f4f6b4b4cf567b6a1ad77e38993fab70a489f65c4a169c214a3b9b4ff2d1c diff --git a/tests/expectations/compiler/input/main.out b/tests/expectations/compiler/input/main.out new file mode 100644 index 0000000000..e9a5675fd8 --- /dev/null +++ b/tests/expectations/compiler/input/main.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 23e62412d2a9377334d90aaeb6629b73c77e045ce87f23bd6ae2e2cd242e70f0 + initial_ast: a8d64dc385c9f76c3e5658c4172474f711464a35c8000ea2b6b5f602b2985f96 + unrolled_ast: a8d64dc385c9f76c3e5658c4172474f711464a35c8000ea2b6b5f602b2985f96 + ssa_ast: 2582c20afd7110638af742443f86e51ba3be86549404d6f01ce4e1f533ea74ec diff --git a/tests/expectations/compiler/input/main_field.out b/tests/expectations/compiler/input/main_field.out new file mode 100644 index 0000000000..507f8e8836 --- /dev/null +++ b/tests/expectations/compiler/input/main_field.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b6bc4ade2305a65746066befacf6a0a18382f754d4d7911d0c6e0abef682114 + initial_ast: 2b94692e105c10f66d99826d59ffae22416bd05e01d7222851f6b4e7bb00f716 + unrolled_ast: 2b94692e105c10f66d99826d59ffae22416bd05e01d7222851f6b4e7bb00f716 + ssa_ast: 76cf9fb25be298cb14efd7071cd19861e9c2eabe322ebe79dd67909d6fd959ae diff --git a/tests/expectations/compiler/integers/i128/add.out b/tests/expectations/compiler/integers/i128/add.out new file mode 100644 index 0000000000..3e159dfb90 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b7a1796fa4abcee565ee7dea475310c15b5881c60a2acc7a2b65cea9a84acf56 + initial_ast: cef0fc4b173acf9ee0dd39e711039e011329d0a63f5834b626e64560ec3005e0 + unrolled_ast: cef0fc4b173acf9ee0dd39e711039e011329d0a63f5834b626e64560ec3005e0 + ssa_ast: 8a349569fc72b268283cab29e59ac1a495828fc522cca4824b1b7cf78203e403 diff --git a/tests/expectations/compiler/integers/i128/and.out b/tests/expectations/compiler/integers/i128/and.out new file mode 100644 index 0000000000..03babf34d1 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b7a1796fa4abcee565ee7dea475310c15b5881c60a2acc7a2b65cea9a84acf56 + initial_ast: 83d74d809376055965eca730b2f36ab8863d9c59d5934eb3932d709974020ea6 + unrolled_ast: 83d74d809376055965eca730b2f36ab8863d9c59d5934eb3932d709974020ea6 + ssa_ast: 05ea5a9c6c195f6694d0a3079280e627d85176781fa3f16da0eb066a1c3513a3 diff --git a/tests/expectations/compiler/integers/i128/console_assert.out b/tests/expectations/compiler/integers/i128/console_assert.out new file mode 100644 index 0000000000..15d87339a8 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 809c4e4298aa9ee1320cb7b491bc3dc81deb71a691cdc7add970e2c2bf5f47b5 + initial_ast: b17ee11c736f9f897ec37ddb8d79b3656bd0304f1be7818a30f9963b4c600c14 + unrolled_ast: b17ee11c736f9f897ec37ddb8d79b3656bd0304f1be7818a30f9963b4c600c14 + ssa_ast: 51e3df228f96a3276362c167d9749a009bb1b489cd7862f8152425b42e13ac24 diff --git a/tests/expectations/compiler/integers/i128/div.out b/tests/expectations/compiler/integers/i128/div.out new file mode 100644 index 0000000000..702f2dbb89 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7034fae8c2db1f78f9f42400f5a6b28d498a7d31f7e35923584622420bfa0ef6 + initial_ast: 0f70909e44b0a9462e0a3e8520804398b979f79d9f3332c8e86b2d8fb73a6a32 + unrolled_ast: 0f70909e44b0a9462e0a3e8520804398b979f79d9f3332c8e86b2d8fb73a6a32 + ssa_ast: 832f78c88fe433c996e8ac13108281073a4e3347e95e888fe00e8a7288ab3c52 diff --git a/tests/expectations/compiler/integers/i128/eq.out b/tests/expectations/compiler/integers/i128/eq.out new file mode 100644 index 0000000000..24bd2a035d --- /dev/null +++ b/tests/expectations/compiler/integers/i128/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 91219f5a1516834f9c60220a65cece763ae40c916f636fed729b1fd91e25310a + initial_ast: 5ab348dff1246161f290c5ae5544ee97708604639c403f7d11e16e19da67f1c6 + unrolled_ast: 5ab348dff1246161f290c5ae5544ee97708604639c403f7d11e16e19da67f1c6 + ssa_ast: c7841dd6fc439f297ba8f98de6e97c5c94597639865b01c28af98ad1a9fc9038 diff --git a/tests/expectations/compiler/integers/i128/ge.out b/tests/expectations/compiler/integers/i128/ge.out new file mode 100644 index 0000000000..0efd931321 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4c374f44b16a3c60d9140164aca01d9e70cee27cf3adfce8ded7a8abc5fc6ac7 + - initial_input_ast: 9036921d0594f2bc8402c7364492ca47d57d34e8588b0bef6491ae6978454e31 + initial_ast: 11471f4252e19626c40e410d9e378f4da5559485c2b259c8d8d0aca243a54262 + unrolled_ast: 11471f4252e19626c40e410d9e378f4da5559485c2b259c8d8d0aca243a54262 + ssa_ast: f26be04f7007fdfcb7021182154bbfa9493c3dd333cd5ed774df9f4ff8195604 diff --git a/tests/expectations/compiler/integers/i128/gt.out b/tests/expectations/compiler/integers/i128/gt.out new file mode 100644 index 0000000000..491f47a10d --- /dev/null +++ b/tests/expectations/compiler/integers/i128/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c6365539642a404ce31b3c71f191f6b05a80aabb82727bf6fbcffb87eddba3f0 + - initial_input_ast: 73d7d29dee3c0c90538069b0a1684281d0cd2f338f1594768727ea83fae404ee + initial_ast: 926f9e67f93aed810b9492fbf85be6c82f0a5e3348ac83b6671935a0770d543e + unrolled_ast: 926f9e67f93aed810b9492fbf85be6c82f0a5e3348ac83b6671935a0770d543e + ssa_ast: 2934583e15d0acb8f36502ffc434b93a1c24d5b298eac30ed0806a3001f24f65 diff --git a/tests/expectations/compiler/integers/i128/le.out b/tests/expectations/compiler/integers/i128/le.out new file mode 100644 index 0000000000..9c14020991 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4c374f44b16a3c60d9140164aca01d9e70cee27cf3adfce8ded7a8abc5fc6ac7 + - initial_input_ast: 3a80a61b2cc37b77014d08a9648e9e572ae99460a993862404fc3a7ce4051097 + initial_ast: ccd5c4d472a24cfd177f87cb1c696690f4769b43dd7f70d7eda7065d0d512c0d + unrolled_ast: ccd5c4d472a24cfd177f87cb1c696690f4769b43dd7f70d7eda7065d0d512c0d + ssa_ast: a3ba458b6f36c22e672d0f2432982eab358ae4b181ecdfa6771b3a0ddff70ec7 diff --git a/tests/expectations/compiler/integers/i128/lt.out b/tests/expectations/compiler/integers/i128/lt.out new file mode 100644 index 0000000000..d10fe630a2 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2e33c1206abe4dd7b81062773aa064b5214ac8c021efe6cb1f308b46703b015b + - initial_input_ast: 27663c1ae0936e46593e6f1cd159d804beb8f3c7071af6699ed78b79add761d0 + initial_ast: 8ba6968cc3b50770a19674da3915727796013e5c7ac4390f56782897b3f47472 + unrolled_ast: 8ba6968cc3b50770a19674da3915727796013e5c7ac4390f56782897b3f47472 + ssa_ast: 05c985534bea2832a546aee6fad1053c46b8805ca9271653990254fc6ceb62bd diff --git a/tests/expectations/compiler/integers/i128/max.out b/tests/expectations/compiler/integers/i128/max.out new file mode 100644 index 0000000000..d89ad6d1b5 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f4a9a735aed4062962098cb8670bcbdb02326fd3eceec9eb7c6b44607372c96e + initial_ast: 1596986e096a7215bfe3aa8813f2e08269c805924a65cd519a29a43acec87bd9 + unrolled_ast: 1596986e096a7215bfe3aa8813f2e08269c805924a65cd519a29a43acec87bd9 + ssa_ast: e98491efe9028fa9bfb5fcfc7b595e8df4567494c293dfe0a44db34b70fb1269 diff --git a/tests/expectations/compiler/integers/i128/max_fail.out b/tests/expectations/compiler/integers/i128/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i128/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i128/min.out b/tests/expectations/compiler/integers/i128/min.out new file mode 100644 index 0000000000..5902be8440 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7d096c5b8581c0b59bf0e34ff5d13735371a4b1fe3df9a6425fff3e4e04c44a6 + initial_ast: 1c8f8d27c303fc6c89b5b7e6deafa8ace25e0fc7423ff8da81998329f757a525 + unrolled_ast: 1c8f8d27c303fc6c89b5b7e6deafa8ace25e0fc7423ff8da81998329f757a525 + ssa_ast: 976e0727e1c59f57fbe355f981a9c68763e16886063cf400927ce49b9c59c37a diff --git a/tests/expectations/compiler/integers/i128/min_fail.out b/tests/expectations/compiler/integers/i128/min_fail.out new file mode 100644 index 0000000000..6f66c9c92a --- /dev/null +++ b/tests/expectations/compiler/integers/i128/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 2i128 into r1;\\n output r1 as i128.private;\\n\", Nom(Tag)), (\"\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 2i128 into r1;\\n output r1 as i128.private;\\n\", Nom(Many1)), (\"function main:\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 2i128 into r1;\\n output r1 as i128.private;\\n\", Nom(Alt)), (\"function main:\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 2i128 into r1;\\n output r1 as i128.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i128/mul.out b/tests/expectations/compiler/integers/i128/mul.out new file mode 100644 index 0000000000..b6a18f27b0 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0a3d0e75cabf9109c310875de99ef0185236ade5661ec59843a4d3ade564cc87 + initial_ast: 79bbe6b59c0346d5bdf7d3029ae719646236195fe187b07fbe89f6891dd0c165 + unrolled_ast: 79bbe6b59c0346d5bdf7d3029ae719646236195fe187b07fbe89f6891dd0c165 + ssa_ast: 5925c3c928596a2b87153dd46c24d88b550917a17833012d00f2eb25d11e7e39 diff --git a/tests/expectations/compiler/integers/i128/ne.out b/tests/expectations/compiler/integers/i128/ne.out new file mode 100644 index 0000000000..4d8dffbf6e --- /dev/null +++ b/tests/expectations/compiler/integers/i128/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3f1ceecb6aee150c506548e59fdb0c3dfd893df3e560dd3f23eb79d1395b453f + - initial_input_ast: c4acc91b534d1069d54ef3a6fa44ba2e574f6afe217f7ed8786d76faca728ab7 + initial_ast: 7909a607383e2009b43be61ceee175701aa38ff919f832ce8d9ac46653a9ba20 + unrolled_ast: 7909a607383e2009b43be61ceee175701aa38ff919f832ce8d9ac46653a9ba20 + ssa_ast: 67e660d720dd1376b3b4585352839d0ef811ce9b8ca8b27f8c9e10f2fd4eb49b diff --git a/tests/expectations/compiler/integers/i128/negate.out b/tests/expectations/compiler/integers/i128/negate.out new file mode 100644 index 0000000000..46cb69d546 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/negate.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: edb9d7d1001c01bfbfdac5e82195c6e34c22597244d0b4f1e6290b2adf25f731 + - initial_input_ast: 4d43aa69ae8a201ba01257a0b308c7132493807dd9986c388972a63af07f6982 + initial_ast: 4dbc9ea3f7b9be4c0377169581a00ae00f0867842263ee35e53c4aeabe622f6e + unrolled_ast: 4dbc9ea3f7b9be4c0377169581a00ae00f0867842263ee35e53c4aeabe622f6e + ssa_ast: 62546553c53f70d2c93939dee123c30db9244741f96b6b1165e2a9c98e3fd443 diff --git a/tests/expectations/compiler/integers/i128/negate_min_fail.out b/tests/expectations/compiler/integers/i128/negate_min_fail.out new file mode 100644 index 0000000000..547646d183 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/negate_min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 1i128 into r1;\\n neg r1 into r2;\\n output r2 as i128.private;\\n\", Nom(Tag)), (\"\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 1i128 into r1;\\n neg r1 into r2;\\n output r2 as i128.private;\\n\", Nom(Many1)), (\"function main:\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 1i128 into r1;\\n neg r1 into r2;\\n output r2 as i128.private;\\n\", Nom(Alt)), (\"function main:\\n neg 170141183460469231731687303715884105727i128 into r0;\\n sub r0 1i128 into r1;\\n neg r1 into r2;\\n output r2 as i128.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i128/negate_zero.out b/tests/expectations/compiler/integers/i128/negate_zero.out new file mode 100644 index 0000000000..0e04f6be14 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/negate_zero.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 34fcde78f661247ade77dd607c349139ab960d39b6a5e10efb7102e0f52aa9de + initial_ast: 6df01ef07ab0b2d02c4f92057a10cb7f397274fd7210eac79e71cd298f9cfa2a + unrolled_ast: 6df01ef07ab0b2d02c4f92057a10cb7f397274fd7210eac79e71cd298f9cfa2a + ssa_ast: de182364a07155660eb484001c6716be439338dbf891889ccc62ec6a2660fb02 diff --git a/tests/expectations/compiler/integers/i128/no_space_between_literal.out b/tests/expectations/compiler/integers/i128/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i128/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i128/operator_methods.out b/tests/expectations/compiler/integers/i128/operator_methods.out new file mode 100644 index 0000000000..8def53cbda --- /dev/null +++ b/tests/expectations/compiler/integers/i128/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 01980590e6fa50034c226d4672bcd6d6a7f25b20dea3d696750947803335f586 + initial_ast: fb0cc32c174c5b14d16bafef9de4bef50db82e85f825fd316864ccfb0ceaf193 + unrolled_ast: fb0cc32c174c5b14d16bafef9de4bef50db82e85f825fd316864ccfb0ceaf193 + ssa_ast: 69adb4dccc5d414e4fa4919414aafb3cd835fc5582d35f76a815f8a0a086bf60 diff --git a/tests/expectations/compiler/integers/i128/or.out b/tests/expectations/compiler/integers/i128/or.out new file mode 100644 index 0000000000..c64778eb55 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b7a1796fa4abcee565ee7dea475310c15b5881c60a2acc7a2b65cea9a84acf56 + initial_ast: 7d48465f0f9d49f833daa877dc178177815c66fb67759f297bcd53d7c97f7b2b + unrolled_ast: 7d48465f0f9d49f833daa877dc178177815c66fb67759f297bcd53d7c97f7b2b + ssa_ast: f945a06eadab4d88be176412a6efdffd3d5b7e626b3c2242d3069938a09ee0c0 diff --git a/tests/expectations/compiler/integers/i128/pow.out b/tests/expectations/compiler/integers/i128/pow.out new file mode 100644 index 0000000000..455b7de65c --- /dev/null +++ b/tests/expectations/compiler/integers/i128/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5b2a4c4f581321b440a00dc3d0e6731b0990b3316681bf74f0e3b9b7aa1d5857 + initial_ast: ead09b6edb131cb1ebe5ff0f457466848d4308c30641a9b3f731733860640da6 + unrolled_ast: ead09b6edb131cb1ebe5ff0f457466848d4308c30641a9b3f731733860640da6 + ssa_ast: 7ffff34b12997ef78725a04d57b6961ac5fc567350b0b84d0a3323e78992ed60 diff --git a/tests/expectations/compiler/integers/i128/shl.out b/tests/expectations/compiler/integers/i128/shl.out new file mode 100644 index 0000000000..d0991482dc --- /dev/null +++ b/tests/expectations/compiler/integers/i128/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3bb40d51d0fc627b1a310c49481404fe8fbd7a46140b0540605108582dcfc060 + initial_ast: 3472233e4386ea23488fae14fad0d622bffabc8f09d5f54c13885dc7251147b5 + unrolled_ast: 3472233e4386ea23488fae14fad0d622bffabc8f09d5f54c13885dc7251147b5 + ssa_ast: 82349f14bdf67706714d6c7d61bb421f7d878edb93f8167dc9caf9484fa4fe89 diff --git a/tests/expectations/compiler/integers/i128/shr.out b/tests/expectations/compiler/integers/i128/shr.out new file mode 100644 index 0000000000..8920753c6d --- /dev/null +++ b/tests/expectations/compiler/integers/i128/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3bb40d51d0fc627b1a310c49481404fe8fbd7a46140b0540605108582dcfc060 + initial_ast: 82145bc51e53bb9b1db741b9514215b79c3dfdcb5dfca3b9359deaa5f2d8ae6e + unrolled_ast: 82145bc51e53bb9b1db741b9514215b79c3dfdcb5dfca3b9359deaa5f2d8ae6e + ssa_ast: 3ffdab6b00fe31c1c20fa08f2c8bbcdd7188dff11ac1bca38aaaae6fb4a1ee4c diff --git a/tests/expectations/compiler/integers/i128/sub.out b/tests/expectations/compiler/integers/i128/sub.out new file mode 100644 index 0000000000..aafe4095ca --- /dev/null +++ b/tests/expectations/compiler/integers/i128/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ecf34ea664106ec74de1673761e384ad672b16363124f7082e6bf6d9956516dd + initial_ast: 02204f15979c7679e688313373c79e25a4f83fd256487cd5f680ea58df71fb24 + unrolled_ast: 02204f15979c7679e688313373c79e25a4f83fd256487cd5f680ea58df71fb24 + ssa_ast: a68636d11c22252ec8a087ba401f29c41930b9a109df7417e758384ac645e288 diff --git a/tests/expectations/compiler/integers/i128/ternary.out b/tests/expectations/compiler/integers/i128/ternary.out new file mode 100644 index 0000000000..3f04c492d1 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 138ca535c4fd8ce9f1da98e1c1faa03eb5ebd2b1ca026e36c55e78a5da92b97b + - initial_input_ast: 920e39624bf39cb7915596796f56d41f21fdac239f7d059d65a35a50d88547cc + initial_ast: 95cac05f793bdc703b02a17ea7310e27714c842eef63c089aa84d0e99baf5a3d + unrolled_ast: 95cac05f793bdc703b02a17ea7310e27714c842eef63c089aa84d0e99baf5a3d + ssa_ast: b787f459d870b88d7409375bac35aaef83dfe7fb2633491416b025bd737e86bb diff --git a/tests/expectations/compiler/integers/i128/xor.out b/tests/expectations/compiler/integers/i128/xor.out new file mode 100644 index 0000000000..a90baec729 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8405502a06368847e27067f0ed7c44986422383e2608b7ada1a7e10dfda6fd83 + initial_ast: a345394370a7be4a24f29a7f13d1359aced159d84a8c60dc9c95e2d16ee1e653 + unrolled_ast: a345394370a7be4a24f29a7f13d1359aced159d84a8c60dc9c95e2d16ee1e653 + ssa_ast: ca9d7e2be2c14e1e53d75842005a82e27fc18f10e6cbc6443bb4f442fa37464b diff --git a/tests/expectations/compiler/integers/i16/add.out b/tests/expectations/compiler/integers/i16/add.out new file mode 100644 index 0000000000..bba9a3de1d --- /dev/null +++ b/tests/expectations/compiler/integers/i16/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2c7911ddb339c2fcdee25cf21fec17727233c194b135902d29f247cc7c20c446 + initial_ast: 49e6fdaa246d010eff70b43b87e6db365cfcd34fe168cd98297b0482f6716c41 + unrolled_ast: 49e6fdaa246d010eff70b43b87e6db365cfcd34fe168cd98297b0482f6716c41 + ssa_ast: 8b7f3a60ed7fa5542923556a83a323ef1569ea05418ba7f29a0e860585949b55 diff --git a/tests/expectations/compiler/integers/i16/and.out b/tests/expectations/compiler/integers/i16/and.out new file mode 100644 index 0000000000..662e9f5135 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2c7911ddb339c2fcdee25cf21fec17727233c194b135902d29f247cc7c20c446 + initial_ast: 5945d7053ce292bb3d594e228a83538b51756c6b423d6cd2244cf146719d22f4 + unrolled_ast: 5945d7053ce292bb3d594e228a83538b51756c6b423d6cd2244cf146719d22f4 + ssa_ast: e75c1610df4edcbbb1d6ddd80dc4bbbf4ad1a4397033b4c9ddc09b0509c72541 diff --git a/tests/expectations/compiler/integers/i16/console_assert.out b/tests/expectations/compiler/integers/i16/console_assert.out new file mode 100644 index 0000000000..f8a024d13a --- /dev/null +++ b/tests/expectations/compiler/integers/i16/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1fc4c14c2b4a2f91035315a0cb5fce983e1c75edea3c21e33abfc3a088cff990 + initial_ast: c2387281e1bb8c23c610696c723b380065f00d9d6d636cfa17a598d0f85018cf + unrolled_ast: c2387281e1bb8c23c610696c723b380065f00d9d6d636cfa17a598d0f85018cf + ssa_ast: d68b81f91cda6357312d890ae8814bb369ab9289b87991c51ee8224c3e7be4f3 diff --git a/tests/expectations/compiler/integers/i16/div.out b/tests/expectations/compiler/integers/i16/div.out new file mode 100644 index 0000000000..36ad86dba2 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 452b7c31531e8687d2bd8dd4036e0916485f052e946807e3cb3e23143f2eeaf3 + initial_ast: fcb0c1f1a13c49bb15ac0ac570860e1eba1b5d257bf91baa490a8f07876171df + unrolled_ast: fcb0c1f1a13c49bb15ac0ac570860e1eba1b5d257bf91baa490a8f07876171df + ssa_ast: 840ee0f7062f3107c53106b2643f1115c7d503c2aa9c554f8f734106f283119d diff --git a/tests/expectations/compiler/integers/i16/eq.out b/tests/expectations/compiler/integers/i16/eq.out new file mode 100644 index 0000000000..59c3aedb70 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9a6fd528e0edefba421380e21519daac2b6422f3954ce74ee02bd78722f091c0 + initial_ast: 2fec6d4b8b764b96e271ab6a31107bd2aadafb3b68bb47df93b749311c8828e0 + unrolled_ast: 2fec6d4b8b764b96e271ab6a31107bd2aadafb3b68bb47df93b749311c8828e0 + ssa_ast: d34f58e44675071fe8f885d2b0b5f504a264b983f699f41976c30964504d700f diff --git a/tests/expectations/compiler/integers/i16/ge.out b/tests/expectations/compiler/integers/i16/ge.out new file mode 100644 index 0000000000..aca81a1576 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 93c771afc86ce441611aad9549031ec5119a00f13909808d874d2bee48fab760 + - initial_input_ast: 4f6e6ce3438c3b0e079e393d48dbe34f4161668307e41fb27c15f2effa3a23ab + initial_ast: bb9517ec8f446205ecd55e21ea9d93b2b0460f6e22d25f84880c816bdcd524d0 + unrolled_ast: bb9517ec8f446205ecd55e21ea9d93b2b0460f6e22d25f84880c816bdcd524d0 + ssa_ast: 43adb062cb7dc7e4aac92528e3545d6b8b400fcce7dadb6524079f7180b4ffb4 diff --git a/tests/expectations/compiler/integers/i16/gt.out b/tests/expectations/compiler/integers/i16/gt.out new file mode 100644 index 0000000000..f8f16defc0 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6debec87347a0e02f0650cfef5f9796a5b24dfdccecc8ac0c4e8fd8ecbb2fa89 + - initial_input_ast: e1a19bbf471806a4b88240d098a78cd28a84e8fdc61f81c28242e7419a2ea1f7 + initial_ast: 296fe3a3669f387be6b4638882363df2e0393d86019ad43940f36b1c01807b75 + unrolled_ast: 296fe3a3669f387be6b4638882363df2e0393d86019ad43940f36b1c01807b75 + ssa_ast: a33e947f48cd47a38b17b5f9f9740d3ef74e4c626213008208fc8cf1bacf5d7e diff --git a/tests/expectations/compiler/integers/i16/le.out b/tests/expectations/compiler/integers/i16/le.out new file mode 100644 index 0000000000..1f01811254 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 93c771afc86ce441611aad9549031ec5119a00f13909808d874d2bee48fab760 + - initial_input_ast: 6a8852e028a48406012818fc30637c8892bb322e1e43b97b3c87b8b1f6d37b4b + initial_ast: 81c75e50f7d9f8f17fc27789df30c7e2c26d6e10c2dbc12098ff510acddbdeef + unrolled_ast: 81c75e50f7d9f8f17fc27789df30c7e2c26d6e10c2dbc12098ff510acddbdeef + ssa_ast: f914a37dee3a6557af91ce76ec84123dcbcb0b932e96a168145a4956eb96f20a diff --git a/tests/expectations/compiler/integers/i16/lt.out b/tests/expectations/compiler/integers/i16/lt.out new file mode 100644 index 0000000000..8088e8f1b5 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6bc83c2aa19b57d081b9676bcc8cd9e8f00d03fa97e862b104a36f38700538de + - initial_input_ast: 54ff3d57fd6d6a459da0529f1082adf684abe5f57693b861dc7e2af2fb497cdb + initial_ast: 58204fe9684f7b768c9168d3bb295bcc26bf17fc9e5f31212acf98dda971e32d + unrolled_ast: 58204fe9684f7b768c9168d3bb295bcc26bf17fc9e5f31212acf98dda971e32d + ssa_ast: 0445d995410f9a02f4dc0269857ae84989af35bbb7be6e47d20a95378cbc87f6 diff --git a/tests/expectations/compiler/integers/i16/max.out b/tests/expectations/compiler/integers/i16/max.out new file mode 100644 index 0000000000..843ff6cc32 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 57b0b52cb2b0c6908e058a5c5e21e416aa4c1f15f91ba992a71d3c26f7c60dda + initial_ast: 74a6b05734ea4d6db6b285086ab0252e6d36fe8741bdcf12d59a1748f20099d2 + unrolled_ast: 74a6b05734ea4d6db6b285086ab0252e6d36fe8741bdcf12d59a1748f20099d2 + ssa_ast: 7cf98bf6c48d3f89b6073b25b8b6793e6def9094134f69182864f220176eba03 diff --git a/tests/expectations/compiler/integers/i16/max_fail.out b/tests/expectations/compiler/integers/i16/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i16/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i16/min.out b/tests/expectations/compiler/integers/i16/min.out new file mode 100644 index 0000000000..eb9e6ae22c --- /dev/null +++ b/tests/expectations/compiler/integers/i16/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8670b2a8edf5d9fecca99251656174a22b8dde340ebcae4a6281b578c8d5bc56 + initial_ast: 632cb26e1f4fa42650b74b6d4233add1130d52d0852b78c16a6c79704e0c3ecc + unrolled_ast: 632cb26e1f4fa42650b74b6d4233add1130d52d0852b78c16a6c79704e0c3ecc + ssa_ast: a9b54b511f7f5159e1c8a11df3301960dfe0d414a6e2b22897aa4577ac1e38ff diff --git a/tests/expectations/compiler/integers/i16/min_fail.out b/tests/expectations/compiler/integers/i16/min_fail.out new file mode 100644 index 0000000000..220c99c584 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 32767i16 into r0;\\n sub r0 2i16 into r1;\\n output r1 as i16.private;\\n\", Nom(Tag)), (\"\\n neg 32767i16 into r0;\\n sub r0 2i16 into r1;\\n output r1 as i16.private;\\n\", Nom(Many1)), (\"function main:\\n neg 32767i16 into r0;\\n sub r0 2i16 into r1;\\n output r1 as i16.private;\\n\", Nom(Alt)), (\"function main:\\n neg 32767i16 into r0;\\n sub r0 2i16 into r1;\\n output r1 as i16.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i16/mul.out b/tests/expectations/compiler/integers/i16/mul.out new file mode 100644 index 0000000000..75ac0f4047 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6dd8e3b3f5b57e5369f8162ac07b6f0cc7bbe9512508eb33c8f3dd599e111b85 + initial_ast: eb870b1233098d1d83737d7fd8166a6275111fb0b3ecc0bd7d953c114af01dd2 + unrolled_ast: eb870b1233098d1d83737d7fd8166a6275111fb0b3ecc0bd7d953c114af01dd2 + ssa_ast: 89fe48cfef63fffcc11361d6ac4b399ad7c6b9bc31f77ecf171730394c6de394 diff --git a/tests/expectations/compiler/integers/i16/ne.out b/tests/expectations/compiler/integers/i16/ne.out new file mode 100644 index 0000000000..8cc865fbf2 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: db63d1be0d393774920a8fbbff5cb96f7f74998691cd87e8a35eee3787a2ef6f + - initial_input_ast: 5845e0b27c33dddb59ec39d7424da9981b2e27d79934fde39d50c38b323cf1b6 + initial_ast: 1ed49d02c80f8cd7bef6e93c693c6f840af526f9d315b2796f6fdb4b25894a2a + unrolled_ast: 1ed49d02c80f8cd7bef6e93c693c6f840af526f9d315b2796f6fdb4b25894a2a + ssa_ast: d4fc2ef645866e079830f11cd54137573c978f05e4c29b9c6f582ca6a8b94cdd diff --git a/tests/expectations/compiler/integers/i16/negate.out b/tests/expectations/compiler/integers/i16/negate.out new file mode 100644 index 0000000000..53f4a2c059 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/negate.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 406fa60cf680ec03454dcf053818ca3ee34ba94126f6f8078281d33d63a34c2e + - initial_input_ast: 5ba8e6fff792d26fb76663df5f3f4f732d3592841e5d4d33190ec72b870a6dc9 + initial_ast: 18e67f0234c32caebae9a010a4da2cf3ea545efa27fa8c65d9043c185cac6b54 + unrolled_ast: 18e67f0234c32caebae9a010a4da2cf3ea545efa27fa8c65d9043c185cac6b54 + ssa_ast: 6b4f01ae24fda6a5a06ee526855d249bb19ea2489fb208bedd43b24ca9434076 diff --git a/tests/expectations/compiler/integers/i16/negate_min_fail.out b/tests/expectations/compiler/integers/i16/negate_min_fail.out new file mode 100644 index 0000000000..67e43c7a81 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/negate_min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 32767i16 into r0;\\n sub r0 1i16 into r1;\\n neg r1 into r2;\\n output r2 as i16.private;\\n\", Nom(Tag)), (\"\\n neg 32767i16 into r0;\\n sub r0 1i16 into r1;\\n neg r1 into r2;\\n output r2 as i16.private;\\n\", Nom(Many1)), (\"function main:\\n neg 32767i16 into r0;\\n sub r0 1i16 into r1;\\n neg r1 into r2;\\n output r2 as i16.private;\\n\", Nom(Alt)), (\"function main:\\n neg 32767i16 into r0;\\n sub r0 1i16 into r1;\\n neg r1 into r2;\\n output r2 as i16.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i16/negate_zero.out b/tests/expectations/compiler/integers/i16/negate_zero.out new file mode 100644 index 0000000000..4c1095b462 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/negate_zero.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 76a0fe2199754831329d9b089d2c02f73d7457aaed6548372169318675b85f48 + initial_ast: b70fb2e84c0c1888ca7f72b5777d9a30d13ce0918305e0897f1210b2547f42bf + unrolled_ast: b70fb2e84c0c1888ca7f72b5777d9a30d13ce0918305e0897f1210b2547f42bf + ssa_ast: e437450ac26d6317b046910f7240f6491e0c444d5c42b0395223ad5fadf3666a diff --git a/tests/expectations/compiler/integers/i16/no_space_between_literal.out b/tests/expectations/compiler/integers/i16/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i16/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i16/operator_methods.out b/tests/expectations/compiler/integers/i16/operator_methods.out new file mode 100644 index 0000000000..0ff517ae08 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b0770aff98c17e17fb47ce2269ab3fe89208374c8f786f02c0747c71e24bd362 + initial_ast: 91811f9d0b0dbe7b10516540b6315b84e89c29adecd3519633cb9daa018b6642 + unrolled_ast: 91811f9d0b0dbe7b10516540b6315b84e89c29adecd3519633cb9daa018b6642 + ssa_ast: fcc0aff9459e93709d4dd5179e2073b7a565fcb346713d70cdd83b7a9d136b2d diff --git a/tests/expectations/compiler/integers/i16/or.out b/tests/expectations/compiler/integers/i16/or.out new file mode 100644 index 0000000000..6bdacb572a --- /dev/null +++ b/tests/expectations/compiler/integers/i16/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2c7911ddb339c2fcdee25cf21fec17727233c194b135902d29f247cc7c20c446 + initial_ast: f4a4b36fe49563990b1935a3652f269c486e3ff1e4f2703bd9ba27bea448441d + unrolled_ast: f4a4b36fe49563990b1935a3652f269c486e3ff1e4f2703bd9ba27bea448441d + ssa_ast: 60655c11dcca530a5b54179dbe3a1b467423ea0aeb4951c088195559528c0954 diff --git a/tests/expectations/compiler/integers/i16/pow.out b/tests/expectations/compiler/integers/i16/pow.out new file mode 100644 index 0000000000..5eabe85fd3 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 935da16d7df054c00286faa15dd10d61e07092638bad897f4fbd2de59a55d4af + initial_ast: 56c388701b0fb054284c35b2a8667a593c51c8232d3a3a379ee71edfc9fc8890 + unrolled_ast: 56c388701b0fb054284c35b2a8667a593c51c8232d3a3a379ee71edfc9fc8890 + ssa_ast: 0a883ebe440001a326a9b12fc53efff42269533bfddb665992da1c1172847d5b diff --git a/tests/expectations/compiler/integers/i16/shl.out b/tests/expectations/compiler/integers/i16/shl.out new file mode 100644 index 0000000000..640c59dcf3 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b3abe04a59183a7c3eb40617edc44dec991ff67a3b71bb9cafdd8f20ccdd03f7 + initial_ast: 14769071e8f996b3ff20a2dd730b84d4f43bdd5cee2267f3437f494db29f858a + unrolled_ast: 14769071e8f996b3ff20a2dd730b84d4f43bdd5cee2267f3437f494db29f858a + ssa_ast: f1beffa5bad200c694bf0d7fa2de5f9a0312416b73a434f306f0f8dcbeb321cd diff --git a/tests/expectations/compiler/integers/i16/shr.out b/tests/expectations/compiler/integers/i16/shr.out new file mode 100644 index 0000000000..be6457aeed --- /dev/null +++ b/tests/expectations/compiler/integers/i16/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b3abe04a59183a7c3eb40617edc44dec991ff67a3b71bb9cafdd8f20ccdd03f7 + initial_ast: aef75576f734d6edd60f3c4f0bc7bb186b8109fa80a80f1c92267e127ea1d59e + unrolled_ast: aef75576f734d6edd60f3c4f0bc7bb186b8109fa80a80f1c92267e127ea1d59e + ssa_ast: d4f1065ff78549a20790372f3e3f12d77562fa9b13869669e3ccbe2fae098956 diff --git a/tests/expectations/compiler/integers/i16/sub.out b/tests/expectations/compiler/integers/i16/sub.out new file mode 100644 index 0000000000..1087bfa1aa --- /dev/null +++ b/tests/expectations/compiler/integers/i16/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 943916e0ea110fb1aefe6999a3f26173e62f3717d66e88455526446567036c22 + initial_ast: 01b59879a5c724b150a97c4dde5f943c2f20efe3f15d4d395a3fe91005be2127 + unrolled_ast: 01b59879a5c724b150a97c4dde5f943c2f20efe3f15d4d395a3fe91005be2127 + ssa_ast: 7484a6c404947188bb53ba20d5c7d376de1880784ab84e6265187b7b0b4cf750 diff --git a/tests/expectations/compiler/integers/i16/ternary.out b/tests/expectations/compiler/integers/i16/ternary.out new file mode 100644 index 0000000000..250f4e72d0 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a66197c1472ce09aa4da1fac2723d57d6d4b6fb8082339aa69ff12a3c4b2a43e + - initial_input_ast: 530b07c6c47bea42f2e00c08bcdd4fd953faa8903b7104f27ca86058d4bb139f + initial_ast: f4114b00588ee019733f188567fe6983185170adbe1492d37771784f9f2e2693 + unrolled_ast: f4114b00588ee019733f188567fe6983185170adbe1492d37771784f9f2e2693 + ssa_ast: 687bb6fbf20d523a107bc5a863a0374d6fc7fecb6a1fe1c3d0954604b9f461bb diff --git a/tests/expectations/compiler/integers/i16/xor.out b/tests/expectations/compiler/integers/i16/xor.out new file mode 100644 index 0000000000..860a8c780e --- /dev/null +++ b/tests/expectations/compiler/integers/i16/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: eb4fed9cfe74f76e7a3c46480ad5e8325180ee5e388b7cefa93541458c79dc2a + initial_ast: 89767530143254816b79c55bee743eba5b43d7fe5790f223ab3b122304c3eefd + unrolled_ast: 89767530143254816b79c55bee743eba5b43d7fe5790f223ab3b122304c3eefd + ssa_ast: 19151aafdb1a45e68450c1aa9e804ec0ce0fe72845be843d73aeefae75b9818c diff --git a/tests/expectations/compiler/integers/i32/add.out b/tests/expectations/compiler/integers/i32/add.out new file mode 100644 index 0000000000..113747d932 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 06d0a821012e07b40e3730441970af91f580ac09d484495bd18fba367bc715f8 + initial_ast: f9ec39a3a7041d9d31ec1d68bea774e287607addaec7d0bb862d40d50a60a19e + unrolled_ast: f9ec39a3a7041d9d31ec1d68bea774e287607addaec7d0bb862d40d50a60a19e + ssa_ast: 0292a9582b98fa496ca987e970c1cf7063b288ecaf8fa99268da984e1ecc4dd2 diff --git a/tests/expectations/compiler/integers/i32/and.out b/tests/expectations/compiler/integers/i32/and.out new file mode 100644 index 0000000000..2ebd51e088 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 06d0a821012e07b40e3730441970af91f580ac09d484495bd18fba367bc715f8 + initial_ast: 5a6fea62e5f5c5782c21788429605127f2a1868f1306e78a6649d3218031080a + unrolled_ast: 5a6fea62e5f5c5782c21788429605127f2a1868f1306e78a6649d3218031080a + ssa_ast: 8d8a552ebf29f074d0021d8c2863be39cc2ffdabd1456ee32bac52f620034ca2 diff --git a/tests/expectations/compiler/integers/i32/console_assert.out b/tests/expectations/compiler/integers/i32/console_assert.out new file mode 100644 index 0000000000..4509ffc5ad --- /dev/null +++ b/tests/expectations/compiler/integers/i32/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5a123b22fda20783fdb0f82c51bc23cd043f0f13a0deb2185eb493cc80499d8f + initial_ast: dc3b855c960e45ab23efe05f89a635b869af6c6f5b89cd44335540e83416bb8b + unrolled_ast: dc3b855c960e45ab23efe05f89a635b869af6c6f5b89cd44335540e83416bb8b + ssa_ast: 98e932494a35361fa82842c7d66e057339bef0943d83e57beb1e38c807cdbc21 diff --git a/tests/expectations/compiler/integers/i32/div.out b/tests/expectations/compiler/integers/i32/div.out new file mode 100644 index 0000000000..c96c6557e6 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1e1ad21140ba63decbebd0245ea4e64e60f42a572cf131e83e7dea27048774e5 + initial_ast: 11f108e7c75c3a21db122a60d89611b26f25cfcb78ee132191de8fab7837138e + unrolled_ast: 11f108e7c75c3a21db122a60d89611b26f25cfcb78ee132191de8fab7837138e + ssa_ast: d3810077e73bffee4c86270b4300a70ed3397d1f6ba2361f336f69e97f065e4b diff --git a/tests/expectations/compiler/integers/i32/eq.out b/tests/expectations/compiler/integers/i32/eq.out new file mode 100644 index 0000000000..5e22f7a4a1 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 759ecc252daec5ad529daf4340407bd63b4b1d0ef41234986620aa259edd9fe9 + initial_ast: b90ccb385bc5b2a743c481ed3fd7ef334cc3b0cd3167b76dc75c0a8d1e48f81c + unrolled_ast: b90ccb385bc5b2a743c481ed3fd7ef334cc3b0cd3167b76dc75c0a8d1e48f81c + ssa_ast: 0800b221b886091b96ae70bc0516f4cf7e84ed821bf6941b61f86f6e5f5b7cf7 diff --git a/tests/expectations/compiler/integers/i32/ge.out b/tests/expectations/compiler/integers/i32/ge.out new file mode 100644 index 0000000000..1eb00882d4 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a5007d9ff1071decf46a0894fe26b5a1a5f69a1e2301f4a26d46958fe11df6b4 + - initial_input_ast: 1344f641fadb1b0c1efc7932c9957eaa6bd052fe894f078727f8fe3f49f22a0e + initial_ast: 986109a6bab50b71cb97baef43a3843739e7d9cfecbf96a3d4c04b6bf42316a3 + unrolled_ast: 986109a6bab50b71cb97baef43a3843739e7d9cfecbf96a3d4c04b6bf42316a3 + ssa_ast: 2923c3082a3eb16e3ad09ed8d61e3abc5c269341d51c5d0dc30e43ba14e599d2 diff --git a/tests/expectations/compiler/integers/i32/gt.out b/tests/expectations/compiler/integers/i32/gt.out new file mode 100644 index 0000000000..898c22d08e --- /dev/null +++ b/tests/expectations/compiler/integers/i32/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b606889131b76a9ebc315366784b04c1f3f1bd83893a38c268cc22fab22cca8 + - initial_input_ast: aaab2c93957b0d352572d29a19bf93c1ebe064ecdf1a2eac7937a63ea3b9b8e6 + initial_ast: 71231dc5fee42d16e4140d9334f2f2c2721d7b7425c590ddc8e6212a0b13e19b + unrolled_ast: 71231dc5fee42d16e4140d9334f2f2c2721d7b7425c590ddc8e6212a0b13e19b + ssa_ast: fe2b6c2a5c2ccc68c6d0182754f7f88ffe60f3b634c4ddb038651ccd946ba677 diff --git a/tests/expectations/compiler/integers/i32/le.out b/tests/expectations/compiler/integers/i32/le.out new file mode 100644 index 0000000000..df0818b535 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a5007d9ff1071decf46a0894fe26b5a1a5f69a1e2301f4a26d46958fe11df6b4 + - initial_input_ast: c5477865023b52a9d11c4d5b55331f2db85d3731a3c7b1c73329e4cf7a23bc05 + initial_ast: e44418ced3e4855a295055809dd235d05c59d5e620d0d0147ee5306aa5b2b3b5 + unrolled_ast: e44418ced3e4855a295055809dd235d05c59d5e620d0d0147ee5306aa5b2b3b5 + ssa_ast: 62952762b1b12ae136c2fb0976f6c82fcfe610565710d7fbf49bb3132f1b03c1 diff --git a/tests/expectations/compiler/integers/i32/lt.out b/tests/expectations/compiler/integers/i32/lt.out new file mode 100644 index 0000000000..4c071795b6 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9af61194c74c1568b34bca0516d36035d64188b8481a153c1666b331b3fd9909 + - initial_input_ast: 5ac9009ffcfa69e6a4645e933f255fbf5a6ff9e0dbf0dfad3cbe391257cede89 + initial_ast: 1c5cfc9cca91cc58b043409fabc8c762d4411b6a8ed7b71530c014000a754b77 + unrolled_ast: 1c5cfc9cca91cc58b043409fabc8c762d4411b6a8ed7b71530c014000a754b77 + ssa_ast: 2ab18ef5a49df8339e55f78d492c5b977a90e451ffb7ccdd693f2cb50ac4b103 diff --git a/tests/expectations/compiler/integers/i32/max.out b/tests/expectations/compiler/integers/i32/max.out new file mode 100644 index 0000000000..f5db4f125e --- /dev/null +++ b/tests/expectations/compiler/integers/i32/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 675f7fa8534cf0d511a2531441790b3e61aafc4997342d346f36207449d961fb + initial_ast: cfd5fead2f00119aead9933406fe1a21f035a9840098a0fd429233c3683be9e2 + unrolled_ast: cfd5fead2f00119aead9933406fe1a21f035a9840098a0fd429233c3683be9e2 + ssa_ast: bd52f1b068e50fc1b7779a125817536ff55d681fe91b0d8db0e1344b1e07dc4c diff --git a/tests/expectations/compiler/integers/i32/max_fail.out b/tests/expectations/compiler/integers/i32/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i32/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i32/min.out b/tests/expectations/compiler/integers/i32/min.out new file mode 100644 index 0000000000..8e0e007388 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ec75fa23bbcd67f7200093c62ecb592132a4147342075b4a98ec3b077c061b60 + initial_ast: 3d52acf2c2fa158ff60b7a95a562301315ae2ba8b04c1424820952b6a93b86a6 + unrolled_ast: 3d52acf2c2fa158ff60b7a95a562301315ae2ba8b04c1424820952b6a93b86a6 + ssa_ast: 44b3d8b31a832e34d4b31da3a57dc818e606ff7c07cf17929680453acb0030c1 diff --git a/tests/expectations/compiler/integers/i32/min_fail.out b/tests/expectations/compiler/integers/i32/min_fail.out new file mode 100644 index 0000000000..070b0aa255 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 2147483647i32 into r0;\\n sub r0 2i32 into r1;\\n output r1 as i32.private;\\n\", Nom(Tag)), (\"\\n neg 2147483647i32 into r0;\\n sub r0 2i32 into r1;\\n output r1 as i32.private;\\n\", Nom(Many1)), (\"function main:\\n neg 2147483647i32 into r0;\\n sub r0 2i32 into r1;\\n output r1 as i32.private;\\n\", Nom(Alt)), (\"function main:\\n neg 2147483647i32 into r0;\\n sub r0 2i32 into r1;\\n output r1 as i32.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i32/mul.out b/tests/expectations/compiler/integers/i32/mul.out new file mode 100644 index 0000000000..386bfb918f --- /dev/null +++ b/tests/expectations/compiler/integers/i32/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7706a16ff7fee9e17b87d17f6ebb7912f85867b7d209336e96f9e393f2a89e9f + initial_ast: 60c4b41fe1a65a42a4fa202486f879035f37e2d8e3013115d758968662734177 + unrolled_ast: 60c4b41fe1a65a42a4fa202486f879035f37e2d8e3013115d758968662734177 + ssa_ast: 2132c7bcc0321905aeed396b4f61f732fa8fc818882cafc4690b39173eb3f892 diff --git a/tests/expectations/compiler/integers/i32/ne.out b/tests/expectations/compiler/integers/i32/ne.out new file mode 100644 index 0000000000..f8da6ba8e3 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5fb5bf840a14156001b929f422fa649c943165666c5b8c66e074cdcbab140ef5 + - initial_input_ast: bd749c3a40d74e985a2919a88d77f6142e9c58b486733bd525684dc0728a3c8e + initial_ast: 184e1e09e3e188ac5c7dd357fda4e6f8d30cc4839b711cfee30037c8f5b59089 + unrolled_ast: 184e1e09e3e188ac5c7dd357fda4e6f8d30cc4839b711cfee30037c8f5b59089 + ssa_ast: f1e745701d6e66c81666e1c00efe12468db9993c76555754e31dc2757c89fe01 diff --git a/tests/expectations/compiler/integers/i32/negate.out b/tests/expectations/compiler/integers/i32/negate.out new file mode 100644 index 0000000000..0da514dbcb --- /dev/null +++ b/tests/expectations/compiler/integers/i32/negate.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5e885de2c06148958b173c9b25f558609b658799b81a314ac9a3bc082f5cb95a + - initial_input_ast: 6e135a3c46a24712edc02d1153d4e5a0702b4c32b2b121363e488fd08a27fc7c + initial_ast: 9d4023539fec5b8394476d2f37af80d2cad51a50ecd86ef78d1f2b8caa62a40b + unrolled_ast: 9d4023539fec5b8394476d2f37af80d2cad51a50ecd86ef78d1f2b8caa62a40b + ssa_ast: 220cf92b6655c5b981e3323687b2edcbdbdd091c96ba879657abb61f1a894f1e diff --git a/tests/expectations/compiler/integers/i32/negate_min_fail.out b/tests/expectations/compiler/integers/i32/negate_min_fail.out new file mode 100644 index 0000000000..3f87170233 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/negate_min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 2147483647i32 into r0;\\n sub r0 1i32 into r1;\\n neg r1 into r2;\\n output r2 as i32.private;\\n\", Nom(Tag)), (\"\\n neg 2147483647i32 into r0;\\n sub r0 1i32 into r1;\\n neg r1 into r2;\\n output r2 as i32.private;\\n\", Nom(Many1)), (\"function main:\\n neg 2147483647i32 into r0;\\n sub r0 1i32 into r1;\\n neg r1 into r2;\\n output r2 as i32.private;\\n\", Nom(Alt)), (\"function main:\\n neg 2147483647i32 into r0;\\n sub r0 1i32 into r1;\\n neg r1 into r2;\\n output r2 as i32.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i32/negate_zero.out b/tests/expectations/compiler/integers/i32/negate_zero.out new file mode 100644 index 0000000000..e22ae62460 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/negate_zero.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 76a0fe2199754831329d9b089d2c02f73d7457aaed6548372169318675b85f48 + initial_ast: 581c00cdaa8267f18da1bec584c12b6f45f1641db7811e0e4c3af26c164bd78d + unrolled_ast: 581c00cdaa8267f18da1bec584c12b6f45f1641db7811e0e4c3af26c164bd78d + ssa_ast: f9a1eb8e55c08ba3fce6d60560bd8beb050ea85a91ea2fe06f6bed4da42f49f3 diff --git a/tests/expectations/compiler/integers/i32/no_space_between_literal.out b/tests/expectations/compiler/integers/i32/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i32/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i32/operator_methods.out b/tests/expectations/compiler/integers/i32/operator_methods.out new file mode 100644 index 0000000000..8d28b4013a --- /dev/null +++ b/tests/expectations/compiler/integers/i32/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5982207793f575c078ebaa299a9383b47ed884ac654e04814e434698b1e7b2d9 + initial_ast: b21cc99be651e02756d59c2b09e20e3a26f28254950c532d597164718100f96d + unrolled_ast: b21cc99be651e02756d59c2b09e20e3a26f28254950c532d597164718100f96d + ssa_ast: ed42a49c6fb0bd7319f44c18f321eef2fd5781f36eea524d33e02e0628b103e2 diff --git a/tests/expectations/compiler/integers/i32/or.out b/tests/expectations/compiler/integers/i32/or.out new file mode 100644 index 0000000000..52c2d40ef8 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 06d0a821012e07b40e3730441970af91f580ac09d484495bd18fba367bc715f8 + initial_ast: c011efbb6ce6873822c60f62d41bd7afd4a35b6f1c5aa2be76ace114df10e7ad + unrolled_ast: c011efbb6ce6873822c60f62d41bd7afd4a35b6f1c5aa2be76ace114df10e7ad + ssa_ast: 0fd38300b46fd6ddbfe0debc637333d8edd65440f98ec8b12bd9a08901bf8e0d diff --git a/tests/expectations/compiler/integers/i32/pow.out b/tests/expectations/compiler/integers/i32/pow.out new file mode 100644 index 0000000000..cae3f0c19f --- /dev/null +++ b/tests/expectations/compiler/integers/i32/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e87f9920219d3c97ddef7a2f2926dc016ce2d5dcd2bc510bfe0ce47930feaf94 + initial_ast: cc383f79b7a5715ce3400461883f9f18966f343279cc41a39b185d9c9a07dca1 + unrolled_ast: cc383f79b7a5715ce3400461883f9f18966f343279cc41a39b185d9c9a07dca1 + ssa_ast: 8136ad0b12220f5b7eacfb5ecf62fc8e95ca973f5fd753b681d89df6386db34c diff --git a/tests/expectations/compiler/integers/i32/shl.out b/tests/expectations/compiler/integers/i32/shl.out new file mode 100644 index 0000000000..357bb17031 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ec75fa23bbcd67f7200093c62ecb592132a4147342075b4a98ec3b077c061b60 + initial_ast: 9851e3b743752040f2c4389b72b1b129992eb0b182949e2f5853d862e9086912 + unrolled_ast: 9851e3b743752040f2c4389b72b1b129992eb0b182949e2f5853d862e9086912 + ssa_ast: b5a3789b6736a4bd8b1818174bfddabee921df397d8d92aec622f1958f1443bc diff --git a/tests/expectations/compiler/integers/i32/shr.out b/tests/expectations/compiler/integers/i32/shr.out new file mode 100644 index 0000000000..b5ca6aec0e --- /dev/null +++ b/tests/expectations/compiler/integers/i32/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ec75fa23bbcd67f7200093c62ecb592132a4147342075b4a98ec3b077c061b60 + initial_ast: 35d5fde45fa49c11b92d36dd6791130505175b6c168fa567de2b461dd4d1cd2e + unrolled_ast: 35d5fde45fa49c11b92d36dd6791130505175b6c168fa567de2b461dd4d1cd2e + ssa_ast: 25cfde85647d0bfe60cd48d0750be67ccf958e50db71dc4a0c6c2bf1d96e7443 diff --git a/tests/expectations/compiler/integers/i32/sub.out b/tests/expectations/compiler/integers/i32/sub.out new file mode 100644 index 0000000000..2017d1d382 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bc8cf1657042cf580047af0b4da6601ba2b37a07e6a0b0b549c6fe6e168ccd21 + initial_ast: 2456d26e09d2451d71ae981d0a2492e09a3585f9dc554d4c5d882815b6cb9e92 + unrolled_ast: 2456d26e09d2451d71ae981d0a2492e09a3585f9dc554d4c5d882815b6cb9e92 + ssa_ast: 8750f11f160c2a86e46add92c6c976f8f8a4d5ea4f97155ad1b4f915cb504085 diff --git a/tests/expectations/compiler/integers/i32/ternary.out b/tests/expectations/compiler/integers/i32/ternary.out new file mode 100644 index 0000000000..ecec4604bd --- /dev/null +++ b/tests/expectations/compiler/integers/i32/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5698b1e8a29900293a04fda5850e12e64a0d4726451701d8a726537e31bf5893 + - initial_input_ast: 8025ae0dc58c3afb172a5451a69ef11be764fef4d3c2ad0bd0a253b635a97606 + initial_ast: e91a2d948492ff1c95f15a61ef90c8dce0f3eac9366c134246301ec674a8c183 + unrolled_ast: e91a2d948492ff1c95f15a61ef90c8dce0f3eac9366c134246301ec674a8c183 + ssa_ast: db75a655ffbaf04f8f1afbacd1031e97ce81ca249ef06c95c0ff1df05321d8f2 diff --git a/tests/expectations/compiler/integers/i32/xor.out b/tests/expectations/compiler/integers/i32/xor.out new file mode 100644 index 0000000000..7c4b04b75c --- /dev/null +++ b/tests/expectations/compiler/integers/i32/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7890b42cf634b28c6b214d92654107bff211c515e1e6b7bfafa1c41af4952eab + initial_ast: 152a39ca45ec384237ac168ac201a2de59a046f1ab136ea5c6851330b7481825 + unrolled_ast: 152a39ca45ec384237ac168ac201a2de59a046f1ab136ea5c6851330b7481825 + ssa_ast: 59abaa8f45dbf37d865d5256616f467a303df8f7f4ba8ef69b478095cf2f1396 diff --git a/tests/expectations/compiler/integers/i64/add.out b/tests/expectations/compiler/integers/i64/add.out new file mode 100644 index 0000000000..d9bba0afad --- /dev/null +++ b/tests/expectations/compiler/integers/i64/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 977a18c10a9f8131acb2f7cf2e24680ed4aa2366e3b241d154e0ed9733fb0879 + initial_ast: 948045fa17bcb7ce179969fb3045b48960a7a6c22d256513a57d802db958ad45 + unrolled_ast: 948045fa17bcb7ce179969fb3045b48960a7a6c22d256513a57d802db958ad45 + ssa_ast: f1d7ac5c4093dbb6875fcf348535357f8bed7223be5ef5232aa0ea79ce514b78 diff --git a/tests/expectations/compiler/integers/i64/and.out b/tests/expectations/compiler/integers/i64/and.out new file mode 100644 index 0000000000..fe6d81242e --- /dev/null +++ b/tests/expectations/compiler/integers/i64/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 977a18c10a9f8131acb2f7cf2e24680ed4aa2366e3b241d154e0ed9733fb0879 + initial_ast: 33ac492dba7406e71de8a49a5bc296727b05d173978b48262fa035ab355d6f17 + unrolled_ast: 33ac492dba7406e71de8a49a5bc296727b05d173978b48262fa035ab355d6f17 + ssa_ast: 43d96970bb22e25b6da2c50c9de4e22f9a6e04b696a51eab605b6c86269de0f9 diff --git a/tests/expectations/compiler/integers/i64/console_assert.out b/tests/expectations/compiler/integers/i64/console_assert.out new file mode 100644 index 0000000000..18683f3a9c --- /dev/null +++ b/tests/expectations/compiler/integers/i64/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 59bd3ad2ecbc27173c85f464424de2c7e4ba8c1da4debb8029e90d88790d00d8 + initial_ast: ea1e6f995fbbf3a781e525a7db2f31627a43b339e0ce765bd8bf7225590221e3 + unrolled_ast: ea1e6f995fbbf3a781e525a7db2f31627a43b339e0ce765bd8bf7225590221e3 + ssa_ast: a44efcc62d2d36cfd493f46e6883936ba1e916bb4930aae0b7616f83c2dd0703 diff --git a/tests/expectations/compiler/integers/i64/div.out b/tests/expectations/compiler/integers/i64/div.out new file mode 100644 index 0000000000..28f33bcb93 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fb4b6c2851eb750bb98fdc1a605cc454eae67d391169390fe4bc4762da357330 + initial_ast: f43bbdb2b989fa7873a99cb3deea250d815e9e5b75bfb7716279805409222cce + unrolled_ast: f43bbdb2b989fa7873a99cb3deea250d815e9e5b75bfb7716279805409222cce + ssa_ast: 31ab10a81f16c7d1a3d840b2005fd44b0237c37b6b50fb22b97b29fb3709eb23 diff --git a/tests/expectations/compiler/integers/i64/eq.out b/tests/expectations/compiler/integers/i64/eq.out new file mode 100644 index 0000000000..fc018e47e9 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 525e046c7acfd0fe01d09860daecb4053ba2a90820f0156cc2f1fae5108f4f49 + initial_ast: 3fbc261f657e05e141b261fdb060b8eadb4453d9c9ac78bd413a1fff73e8514a + unrolled_ast: 3fbc261f657e05e141b261fdb060b8eadb4453d9c9ac78bd413a1fff73e8514a + ssa_ast: 181bd01feb40cbb6264c55c0254ab33969b656abb38c06495b5f20a5f285d8a1 diff --git a/tests/expectations/compiler/integers/i64/ge.out b/tests/expectations/compiler/integers/i64/ge.out new file mode 100644 index 0000000000..77a2531d69 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e46fa95614a8aa29a9dddab1407d8fc122c5b81a59316b2cf01602cad64ace26 + - initial_input_ast: 43b74ba4ecdd6833d5c9caf13c738698fbaa6cf17190d214f557c880551c52e9 + initial_ast: 3af7abd9654e698e7eb1457699ce95560e53efd884ec80d471a05a32fc21beee + unrolled_ast: 3af7abd9654e698e7eb1457699ce95560e53efd884ec80d471a05a32fc21beee + ssa_ast: 6311df4278c076369b3f3692bef2a3a03f91e1d4eff5f692df8bce9fd372221d diff --git a/tests/expectations/compiler/integers/i64/gt.out b/tests/expectations/compiler/integers/i64/gt.out new file mode 100644 index 0000000000..535d7be035 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6b49ead8df8fe3ca4ebfe0c82e17f19f8d1a155d6256c92dcdc9cd4f58dbad28 + - initial_input_ast: abfc4b6a23e9098ea7a81691ed2f9c22b8a3a2cdbf764098db11cfbc40b9cb29 + initial_ast: 97fe81922d77f91994c9fed6194a483b4b8b50a18828bb74cd482b54f2d9ffe3 + unrolled_ast: 97fe81922d77f91994c9fed6194a483b4b8b50a18828bb74cd482b54f2d9ffe3 + ssa_ast: b04986aa3aab75c773fb134dd17919b9acfa5f0bc13cc233d9c2397f7c8b1a21 diff --git a/tests/expectations/compiler/integers/i64/le.out b/tests/expectations/compiler/integers/i64/le.out new file mode 100644 index 0000000000..d3087792b9 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e46fa95614a8aa29a9dddab1407d8fc122c5b81a59316b2cf01602cad64ace26 + - initial_input_ast: 5b239c93a0ad62c5bd506e8858319e0fd13199069c0d4f05c3781f716176bebc + initial_ast: 86cdb9ddbdec50d2d04d806fe68eefaa803e58643e2bd999cc8c2052f55dd095 + unrolled_ast: 86cdb9ddbdec50d2d04d806fe68eefaa803e58643e2bd999cc8c2052f55dd095 + ssa_ast: ff59de99ffc6b09892acc7cb911402fc5f4c9eaad7f86d942301af0b742afeeb diff --git a/tests/expectations/compiler/integers/i64/lt.out b/tests/expectations/compiler/integers/i64/lt.out new file mode 100644 index 0000000000..34c0c5b979 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0505e11c1ba5993289a95ca23d8284b98306cbcf05d09523236959b82c5a63df + - initial_input_ast: 2893b2993351883eb062f02e840ec5b4a1475ad28f32e51062f55f5df6402824 + initial_ast: 4d4b0663a4578d0970a28638bf9dc4ad9f72afce6373433ce899e01b326989e6 + unrolled_ast: 4d4b0663a4578d0970a28638bf9dc4ad9f72afce6373433ce899e01b326989e6 + ssa_ast: 53eef68182327fa32d8070468dd9e4f3a0c5cc9bc089f3414f150cc3ee11979e diff --git a/tests/expectations/compiler/integers/i64/max.out b/tests/expectations/compiler/integers/i64/max.out new file mode 100644 index 0000000000..f5113e5cc1 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0d103759856c9c525f8c00ec42f6bb120c934f5ad4cabf06e9aa6feb12298888 + initial_ast: c92a06cf11f329404f1ec9d9ffe68f4ac36c11624bd11150ff3e76927870d5a3 + unrolled_ast: c92a06cf11f329404f1ec9d9ffe68f4ac36c11624bd11150ff3e76927870d5a3 + ssa_ast: 4c8f8ccb85ae57a8a67cc4be36322c4bc7bf25e0a90d8f6ceef5e6e35b8eea2f diff --git a/tests/expectations/compiler/integers/i64/max_fail.out b/tests/expectations/compiler/integers/i64/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i64/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i64/min.out b/tests/expectations/compiler/integers/i64/min.out new file mode 100644 index 0000000000..3d3c5e69f2 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 79e803c0a39b4532052708ed3ec83e020452b7756f49dc2851290b9077b2c0e4 + initial_ast: 9bf3db279f323af043b2210364f2e8fb71b6bca7f3053b7ea9b444cd75990289 + unrolled_ast: 9bf3db279f323af043b2210364f2e8fb71b6bca7f3053b7ea9b444cd75990289 + ssa_ast: 6971a4ff4d84bb537b31413d5129cb26c41cdf7297e740e6906f18d05918b959 diff --git a/tests/expectations/compiler/integers/i64/min_fail.out b/tests/expectations/compiler/integers/i64/min_fail.out new file mode 100644 index 0000000000..f4b959400e --- /dev/null +++ b/tests/expectations/compiler/integers/i64/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 9223372036854775807i64 into r0;\\n sub r0 2i64 into r1;\\n output r1 as i64.private;\\n\", Nom(Tag)), (\"\\n neg 9223372036854775807i64 into r0;\\n sub r0 2i64 into r1;\\n output r1 as i64.private;\\n\", Nom(Many1)), (\"function main:\\n neg 9223372036854775807i64 into r0;\\n sub r0 2i64 into r1;\\n output r1 as i64.private;\\n\", Nom(Alt)), (\"function main:\\n neg 9223372036854775807i64 into r0;\\n sub r0 2i64 into r1;\\n output r1 as i64.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i64/mul.out b/tests/expectations/compiler/integers/i64/mul.out new file mode 100644 index 0000000000..5e207eaed8 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e68b68d6b69f3dba2f082d8b1771c6040538abe76d9592c7f28c0d12848166fb + initial_ast: 33d112185e025d5e533f0f99f472d7f5ad545ff359eae4a3502774b24075494a + unrolled_ast: 33d112185e025d5e533f0f99f472d7f5ad545ff359eae4a3502774b24075494a + ssa_ast: 00c740f4b9ad12598ba35998c0bc52066ccbe553c9d476f020d52612ba2b1e23 diff --git a/tests/expectations/compiler/integers/i64/ne.out b/tests/expectations/compiler/integers/i64/ne.out new file mode 100644 index 0000000000..8cb4f271df --- /dev/null +++ b/tests/expectations/compiler/integers/i64/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 070b3ccdaae03383f76a8e22550f64fb0b0332a1da1d26108cd83b981fe6f18e + - initial_input_ast: 7834ed1db124da61272b4ccbb750e4b1921878d1d33a60579c68b2836b17f269 + initial_ast: d2eeb47c593c9f4f85135e7cccc53cae875e870f7144673ae700c99d9eb605fe + unrolled_ast: d2eeb47c593c9f4f85135e7cccc53cae875e870f7144673ae700c99d9eb605fe + ssa_ast: 577fd2c5a8d7b19e06a63f633e57bfb86fe3349994084b947fd387119a5a1d14 diff --git a/tests/expectations/compiler/integers/i64/negate.out b/tests/expectations/compiler/integers/i64/negate.out new file mode 100644 index 0000000000..60ed2907bc --- /dev/null +++ b/tests/expectations/compiler/integers/i64/negate.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 137c0b0b2bca3b760e859707a6fc686d9a7059f434afb33282ce8cf3c228d3c2 + - initial_input_ast: a4c7ace41a4f18328386adc30f8c869156bbf8a69d825b526e42957ebcb54c69 + initial_ast: c2ce64bf8520c42e74c01184eda4f36274f4dd7635e5a5ad9467016c7af07e77 + unrolled_ast: c2ce64bf8520c42e74c01184eda4f36274f4dd7635e5a5ad9467016c7af07e77 + ssa_ast: 6c76bab86a1aa1a0e99e8b2a71d22260a0b3101289164c976c589dcfdb33eb5f diff --git a/tests/expectations/compiler/integers/i64/negate_min_fail.out b/tests/expectations/compiler/integers/i64/negate_min_fail.out new file mode 100644 index 0000000000..4dca5852cb --- /dev/null +++ b/tests/expectations/compiler/integers/i64/negate_min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 9223372036854775807i64 into r0;\\n sub r0 1i64 into r1;\\n neg r1 into r2;\\n output r2 as i64.private;\\n\", Nom(Tag)), (\"\\n neg 9223372036854775807i64 into r0;\\n sub r0 1i64 into r1;\\n neg r1 into r2;\\n output r2 as i64.private;\\n\", Nom(Many1)), (\"function main:\\n neg 9223372036854775807i64 into r0;\\n sub r0 1i64 into r1;\\n neg r1 into r2;\\n output r2 as i64.private;\\n\", Nom(Alt)), (\"function main:\\n neg 9223372036854775807i64 into r0;\\n sub r0 1i64 into r1;\\n neg r1 into r2;\\n output r2 as i64.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i64/negate_zero.out b/tests/expectations/compiler/integers/i64/negate_zero.out new file mode 100644 index 0000000000..6b2f6d8a5d --- /dev/null +++ b/tests/expectations/compiler/integers/i64/negate_zero.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 76a0fe2199754831329d9b089d2c02f73d7457aaed6548372169318675b85f48 + initial_ast: 05890c9bf5956e3c463d1ded96663778e5cf7d6abb855b9ab35feb9f67e6fd32 + unrolled_ast: 05890c9bf5956e3c463d1ded96663778e5cf7d6abb855b9ab35feb9f67e6fd32 + ssa_ast: 7628dd539c14b2855f2918ff889bfb3e455176fba7d7f6179405320b35021a38 diff --git a/tests/expectations/compiler/integers/i64/no_space_between_literal.out b/tests/expectations/compiler/integers/i64/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i64/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i64/operator_methods.out b/tests/expectations/compiler/integers/i64/operator_methods.out new file mode 100644 index 0000000000..2183e6965b --- /dev/null +++ b/tests/expectations/compiler/integers/i64/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e1f97e09d691a7cc07c30632ba77ddb7381dca49117709bea416d388a5f715b + initial_ast: 6b13e53f52dca426745e7c9f360bac64aa60f23a6d16e97c7f756499de383ed2 + unrolled_ast: 6b13e53f52dca426745e7c9f360bac64aa60f23a6d16e97c7f756499de383ed2 + ssa_ast: 22cd38267cc8e6fbd659e2cd51585c12c97e1f85f8683f7b1dcdd5c2c9c83736 diff --git a/tests/expectations/compiler/integers/i64/or.out b/tests/expectations/compiler/integers/i64/or.out new file mode 100644 index 0000000000..103fead4df --- /dev/null +++ b/tests/expectations/compiler/integers/i64/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 977a18c10a9f8131acb2f7cf2e24680ed4aa2366e3b241d154e0ed9733fb0879 + initial_ast: c9fd204f3e8d1eda6cf6d9a4350327fb3df2b138ba8feacef149fc0ce20b5f8f + unrolled_ast: c9fd204f3e8d1eda6cf6d9a4350327fb3df2b138ba8feacef149fc0ce20b5f8f + ssa_ast: 129c175db437435a2c0b561a835b1f940655803ad9dd2a1081bee3f0d00fcf47 diff --git a/tests/expectations/compiler/integers/i64/pow.out b/tests/expectations/compiler/integers/i64/pow.out new file mode 100644 index 0000000000..d0053f8eb2 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 70929414acb39f1f1db6f044d346ce321c37924ba467a8c99d3de12f19338783 + initial_ast: 0e0801828222a0881df444f49e0d847e747314d16195ce8e14d73909d6fdbbf9 + unrolled_ast: 0e0801828222a0881df444f49e0d847e747314d16195ce8e14d73909d6fdbbf9 + ssa_ast: b1efd8ce06c047a5339659b5ac61d5edc1651f85f46e9d801e8b481876a72716 diff --git a/tests/expectations/compiler/integers/i64/shl.out b/tests/expectations/compiler/integers/i64/shl.out new file mode 100644 index 0000000000..6fa9b9cbd3 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e83445120df1413c9c3695a5c9f4731762d27410f9a9b9f3a11f6b6c68275213 + initial_ast: 2f155196b75f6e9ae6076f182ef2c586b9514de30508968fdbe3d40425d55a9d + unrolled_ast: 2f155196b75f6e9ae6076f182ef2c586b9514de30508968fdbe3d40425d55a9d + ssa_ast: afe12e81c7d2d9a2d424b2782c8e121af0d0a2bda7497d9d2ab0e254ad3f6fd9 diff --git a/tests/expectations/compiler/integers/i64/shr.out b/tests/expectations/compiler/integers/i64/shr.out new file mode 100644 index 0000000000..647568503d --- /dev/null +++ b/tests/expectations/compiler/integers/i64/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e83445120df1413c9c3695a5c9f4731762d27410f9a9b9f3a11f6b6c68275213 + initial_ast: 9c5bbfcb58f57de7017a1e6d9564af80e67a5be432aefb4952bfd1e4ea136474 + unrolled_ast: 9c5bbfcb58f57de7017a1e6d9564af80e67a5be432aefb4952bfd1e4ea136474 + ssa_ast: 6da9558ea4f6cf725424e4d6644fda5162f5a3996a273023412deea740212cf1 diff --git a/tests/expectations/compiler/integers/i64/sub.out b/tests/expectations/compiler/integers/i64/sub.out new file mode 100644 index 0000000000..b5efef61d2 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6162195f65ad7a4cdf1be262925fbeb8556d4bed2da3e942d3debfee22176c5b + initial_ast: 61e36f60ae3861b58205129940e12aa68c48aabe2a67ac591e8e217e9ae055f6 + unrolled_ast: 61e36f60ae3861b58205129940e12aa68c48aabe2a67ac591e8e217e9ae055f6 + ssa_ast: defe920f2ca6c3628b4110675ea341fce364f16d03209f8b503ac5e195d9088c diff --git a/tests/expectations/compiler/integers/i64/ternary.out b/tests/expectations/compiler/integers/i64/ternary.out new file mode 100644 index 0000000000..5eae4d471b --- /dev/null +++ b/tests/expectations/compiler/integers/i64/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: da9bc26968ea726630b8e221465ff3092c7fcea41d36d0596a72ce1b06f20d47 + - initial_input_ast: 7e4203880b354e2ade82951012957861870a58004b8e770a76d546822eca4aa0 + initial_ast: 0bead37a15b333eaba3e2a69aa8ee5ea83a664c3f2a59830fa63697657601a72 + unrolled_ast: 0bead37a15b333eaba3e2a69aa8ee5ea83a664c3f2a59830fa63697657601a72 + ssa_ast: 5797fc68596fcf54cb40c50f176f4c3bdbc94cb7437590169148694cdf23a773 diff --git a/tests/expectations/compiler/integers/i64/xor.out b/tests/expectations/compiler/integers/i64/xor.out new file mode 100644 index 0000000000..eb584f95ae --- /dev/null +++ b/tests/expectations/compiler/integers/i64/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d83174aa5069461cdb0fab64a55f9463c882833e640f9be78b31c2baaaa8426b + initial_ast: 20295dd2a3258bb916bbd02d70e75c40e78421ffd8a1635231185fb9fbdd550a + unrolled_ast: 20295dd2a3258bb916bbd02d70e75c40e78421ffd8a1635231185fb9fbdd550a + ssa_ast: c465d18e7d3597d63ec52c1c14db846c60770cca056d8c4786ac67087f8bd61b diff --git a/tests/expectations/compiler/integers/i8/add.out b/tests/expectations/compiler/integers/i8/add.out new file mode 100644 index 0000000000..eb951c8847 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: de2978415d2534817c8294d6784e0fc2a26c92344c60e81a5cc79c695ef9cec7 + initial_ast: 80a9ac550fb1192edc72e7b61a26a9b685274b8c82ebb2c7071e55991211cac1 + unrolled_ast: 80a9ac550fb1192edc72e7b61a26a9b685274b8c82ebb2c7071e55991211cac1 + ssa_ast: bd48669dd158088e845434a794b5482cd373bc0311bedbb814c1e97ee4fc34d3 diff --git a/tests/expectations/compiler/integers/i8/and.out b/tests/expectations/compiler/integers/i8/and.out new file mode 100644 index 0000000000..db269fd396 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: de2978415d2534817c8294d6784e0fc2a26c92344c60e81a5cc79c695ef9cec7 + initial_ast: 02b856f5f74920e3928a5587675257ed1b973007c25d6a672f1a3955e1d8d175 + unrolled_ast: 02b856f5f74920e3928a5587675257ed1b973007c25d6a672f1a3955e1d8d175 + ssa_ast: 513cfde7f008c1c50ca55240d399917cef0e6b3be041d688e05f1fefc4e4b0bd diff --git a/tests/expectations/compiler/integers/i8/console_assert.out b/tests/expectations/compiler/integers/i8/console_assert.out new file mode 100644 index 0000000000..f6651fdf3b --- /dev/null +++ b/tests/expectations/compiler/integers/i8/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1f14fbca2375c3be8ff5e09ea3142e9ff660bdbb819e812f929e448345aee459 + initial_ast: 1d9396af458a61aecb504a7990f4f9b5b404fca349d6479bef9350be82f1d12d + unrolled_ast: 1d9396af458a61aecb504a7990f4f9b5b404fca349d6479bef9350be82f1d12d + ssa_ast: 87a18e964f18ebb1fddebd369635a7a5024620d4857b57e24b3e6e7d635c452d diff --git a/tests/expectations/compiler/integers/i8/div.out b/tests/expectations/compiler/integers/i8/div.out new file mode 100644 index 0000000000..5b69025a10 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5da63be4ca3051be011a7ac00c13189ffcde7abd35bf5a1ddfb4d204712522ae + initial_ast: 71c2ff233040af5acfa45a14ad69acf0ac5351ac05eb5f9c686d61346b6f3a4b + unrolled_ast: 71c2ff233040af5acfa45a14ad69acf0ac5351ac05eb5f9c686d61346b6f3a4b + ssa_ast: 0e369a334faf8ceb63dbc3544407932f548ba074871e5510aee06789e4a50b44 diff --git a/tests/expectations/compiler/integers/i8/eq.out b/tests/expectations/compiler/integers/i8/eq.out new file mode 100644 index 0000000000..08231291bb --- /dev/null +++ b/tests/expectations/compiler/integers/i8/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 58f0fade6145131fc2c625a1362dbaff7a844b0d46da7e2ff4d0a11b28d6dc70 + initial_ast: 2b17e238da3e469a3608f5b069a96b1b47ac16e4fd0cfe04781ae67b437741c5 + unrolled_ast: 2b17e238da3e469a3608f5b069a96b1b47ac16e4fd0cfe04781ae67b437741c5 + ssa_ast: e3b7d46a83476de699e55773d8f562b0face07776ab29be46c7e2f6545c4a98d diff --git a/tests/expectations/compiler/integers/i8/ge.out b/tests/expectations/compiler/integers/i8/ge.out new file mode 100644 index 0000000000..7d1b56900a --- /dev/null +++ b/tests/expectations/compiler/integers/i8/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: aae0acd473ab3c01b1f70d96d924fb2e1c14f010ed349aac757f1bb5132a8bc7 + - initial_input_ast: 1177f8d6ca371a9e3136013ca48bbe87493348a6253146a3bd5b14190665289d + initial_ast: 25b87b89b3b8661bb69f0ffb6f6030b377bd733b1367cf55016c5ec20d2e368b + unrolled_ast: 25b87b89b3b8661bb69f0ffb6f6030b377bd733b1367cf55016c5ec20d2e368b + ssa_ast: f710e8bd970ecd8c3f0d2188f67a0cd34338f5fa29036989996c619fe68f282c diff --git a/tests/expectations/compiler/integers/i8/gt.out b/tests/expectations/compiler/integers/i8/gt.out new file mode 100644 index 0000000000..cea0885694 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2c44045986c2c00731557568b0a502a7df0136af7c3ce8365f435e93ad7f52cb + - initial_input_ast: 6bde09eb83b067d411d19df2b90a62351306fe72422c1ae9ad966f1a85ab4ed7 + initial_ast: e6620cbeaa4edc4b75dafd5ec684fd424fc1ecdc9f4ae28d10a1f1f810332f3f + unrolled_ast: e6620cbeaa4edc4b75dafd5ec684fd424fc1ecdc9f4ae28d10a1f1f810332f3f + ssa_ast: 6a59296759f32a3322e47a55f8ec9a203d029a4d97c47f94f5e88d116820a702 diff --git a/tests/expectations/compiler/integers/i8/le.out b/tests/expectations/compiler/integers/i8/le.out new file mode 100644 index 0000000000..6bf2df9ee8 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: aae0acd473ab3c01b1f70d96d924fb2e1c14f010ed349aac757f1bb5132a8bc7 + - initial_input_ast: 20aefb75d31234d763626c14e1a25ff6aebda3d2e808f74c788ea0caaec17907 + initial_ast: f8d9b34edb0cb517815d2f621583550d90404c36296bc861330165929012660c + unrolled_ast: f8d9b34edb0cb517815d2f621583550d90404c36296bc861330165929012660c + ssa_ast: c839f3a7f4873b9b63d1436b9571f75d8c42267b03403aa0044502631c738b1b diff --git a/tests/expectations/compiler/integers/i8/lt.out b/tests/expectations/compiler/integers/i8/lt.out new file mode 100644 index 0000000000..d1b21046b4 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a31614dba55c98f510c7f251b50d3d53c0fb9014a7f9a31114b178cdc10032b1 + - initial_input_ast: db620df38d3acfd51b630ed699b270f9e72f55aa4ec36e7efeae02ef3b5cae62 + initial_ast: f3aa185ea32d28ec7c3fc3df46846ea1be3a01cd51b8126c7cc4aaa8cbdb2aba + unrolled_ast: f3aa185ea32d28ec7c3fc3df46846ea1be3a01cd51b8126c7cc4aaa8cbdb2aba + ssa_ast: acbdf826f368213bfbec0cf20179024bd124923cf60414a7d71b4cb28b6ac903 diff --git a/tests/expectations/compiler/integers/i8/max.out b/tests/expectations/compiler/integers/i8/max.out new file mode 100644 index 0000000000..58739f023f --- /dev/null +++ b/tests/expectations/compiler/integers/i8/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3c4708eabf3dc6df721eee6679ec79b8dfce65303bcea6e3d1acb9696398256f + initial_ast: 6fb6774bb0e5622bbe83debb577933c255d9fdd622e06ba557b93e3152b89b45 + unrolled_ast: 6fb6774bb0e5622bbe83debb577933c255d9fdd622e06ba557b93e3152b89b45 + ssa_ast: 50f1bd342810794a92262e67a2476d07debb852c48c2adb3f6d9d80801b03c43 diff --git a/tests/expectations/compiler/integers/i8/max_fail.out b/tests/expectations/compiler/integers/i8/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i8/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i8/min.out b/tests/expectations/compiler/integers/i8/min.out new file mode 100644 index 0000000000..6bea01a859 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 90a991ea43f5457a33f905e55e20ed1ea3977f1419b40235335fd95677c842e0 + initial_ast: f4a53ecb9e05f4c3a9861d3daf6679de4ed291ccb3423b574287a4beb87fb90d + unrolled_ast: f4a53ecb9e05f4c3a9861d3daf6679de4ed291ccb3423b574287a4beb87fb90d + ssa_ast: 37ec6f175a95f5d95e72e6a43c5b0d23196b64a6f776f3aab5e43bf2b08476c2 diff --git a/tests/expectations/compiler/integers/i8/min_fail.out b/tests/expectations/compiler/integers/i8/min_fail.out new file mode 100644 index 0000000000..775cfdd0d1 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 127i8 into r0;\\n sub r0 2i8 into r1;\\n output r1 as i8.private;\\n\", Nom(Tag)), (\"\\n neg 127i8 into r0;\\n sub r0 2i8 into r1;\\n output r1 as i8.private;\\n\", Nom(Many1)), (\"function main:\\n neg 127i8 into r0;\\n sub r0 2i8 into r1;\\n output r1 as i8.private;\\n\", Nom(Alt)), (\"function main:\\n neg 127i8 into r0;\\n sub r0 2i8 into r1;\\n output r1 as i8.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i8/mul.out b/tests/expectations/compiler/integers/i8/mul.out new file mode 100644 index 0000000000..c5d80aa4e3 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1aa7756768ee3ba1654b861064a5f24e9c1843d89b6e01e89949e2f1f3662939 + initial_ast: 84329c2eb85ba52edb05450605892fc0b24bd7a9bd316f275901073176a67f14 + unrolled_ast: 84329c2eb85ba52edb05450605892fc0b24bd7a9bd316f275901073176a67f14 + ssa_ast: 0c2de2b19419a6642d8a709693a5eed542083ff2b2903c4fdad3fb794f0ee28f diff --git a/tests/expectations/compiler/integers/i8/ne.out b/tests/expectations/compiler/integers/i8/ne.out new file mode 100644 index 0000000000..646512cde9 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 16b842bbbf6b30fc29a691eba15942be5816fd1f0b26f92da2b273dd4616a06f + - initial_input_ast: 47331aa33fe027e08fba70eea5c1e84fa3d66c3120c0a172704d4e57c642177a + initial_ast: c62b896c62c5f86d7a2ece7676da569bb1c15773219035519f10eb4cb4468282 + unrolled_ast: c62b896c62c5f86d7a2ece7676da569bb1c15773219035519f10eb4cb4468282 + ssa_ast: 59747e03efeab4c9746f54f7e851043ef7e767d2276355218acc020f92bce9ec diff --git a/tests/expectations/compiler/integers/i8/negate.out b/tests/expectations/compiler/integers/i8/negate.out new file mode 100644 index 0000000000..8f1935ec65 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/negate.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 42aaee113e0f7adf51e24db9e645896a4805881152551e5f771fc9f9d1fa81f9 + - initial_input_ast: 1f0143f9a55e15bb307813fcb4fb87e1ae7965687b40f34c5f201a38d831082c + initial_ast: c72e508b603092063e0a020b9478f92e702e4bea4ad0234f73f33f9bcb55d592 + unrolled_ast: c72e508b603092063e0a020b9478f92e702e4bea4ad0234f73f33f9bcb55d592 + ssa_ast: b7cf3a7743104335993b537baeac5ed6b73f393d2211e1a100347a7339ae1956 diff --git a/tests/expectations/compiler/integers/i8/negate_min_fail.out b/tests/expectations/compiler/integers/i8/negate_min_fail.out new file mode 100644 index 0000000000..833e0c0445 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/negate_min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Parsing Error: VerboseError { errors: [(\"neg 127i8 into r0;\\n sub r0 1i8 into r1;\\n neg r1 into r2;\\n output r2 as i8.private;\\n\", Nom(Tag)), (\"\\n neg 127i8 into r0;\\n sub r0 1i8 into r1;\\n neg r1 into r2;\\n output r2 as i8.private;\\n\", Nom(Many1)), (\"function main:\\n neg 127i8 into r0;\\n sub r0 1i8 into r1;\\n neg r1 into r2;\\n output r2 as i8.private;\\n\", Nom(Alt)), (\"function main:\\n neg 127i8 into r0;\\n sub r0 1i8 into r1;\\n neg r1 into r2;\\n output r2 as i8.private;\\n\", Nom(Many1))] }" diff --git a/tests/expectations/compiler/integers/i8/negate_zero.out b/tests/expectations/compiler/integers/i8/negate_zero.out new file mode 100644 index 0000000000..7af410cdde --- /dev/null +++ b/tests/expectations/compiler/integers/i8/negate_zero.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2f8bdfd57bd177ef6ba420992c9b8246f27a332126ed41021cf718db1f89fce2 + initial_ast: 31a361a2a2028517f6898e7427c510ff3262b99af068ee61f674d41a9f0508ba + unrolled_ast: 31a361a2a2028517f6898e7427c510ff3262b99af068ee61f674d41a9f0508ba + ssa_ast: 17052d7968e26823f8e7177e9b876acafbb3c38583db253a8cb7236431308e96 diff --git a/tests/expectations/compiler/integers/i8/no_space_between_literal.out b/tests/expectations/compiler/integers/i8/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/i8/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/i8/operator_methods.out b/tests/expectations/compiler/integers/i8/operator_methods.out new file mode 100644 index 0000000000..573a732f7e --- /dev/null +++ b/tests/expectations/compiler/integers/i8/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fb24ac144cdf7a6e0e308c106be309c354ea413d2690b815b72b9bae3ce1a169 + initial_ast: 368311591f23ba5a2593095f04744abee8659b072d83f95ca558ce885f239f95 + unrolled_ast: 368311591f23ba5a2593095f04744abee8659b072d83f95ca558ce885f239f95 + ssa_ast: 390030fca363de473680584146084d335004d491349f27c29624854ca9a2da4c diff --git a/tests/expectations/compiler/integers/i8/or.out b/tests/expectations/compiler/integers/i8/or.out new file mode 100644 index 0000000000..ef6b1787f8 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: de2978415d2534817c8294d6784e0fc2a26c92344c60e81a5cc79c695ef9cec7 + initial_ast: 1f83c995ad066a3ca85db86889435fc807120d031cd032a82660090d2243d5f5 + unrolled_ast: 1f83c995ad066a3ca85db86889435fc807120d031cd032a82660090d2243d5f5 + ssa_ast: 7fb28ead5bcb4a7b226254381758cb8f1ea7b82ca47cd4ecb751b7ba242f8471 diff --git a/tests/expectations/compiler/integers/i8/pow.out b/tests/expectations/compiler/integers/i8/pow.out new file mode 100644 index 0000000000..cfaef825a7 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5403e15802cf82bcb80acfc26596a71aa597d1b03cdf21f55c94c5d5a5dd05ce + initial_ast: 8dec69affaee71632a03de286692e4dabd23bf9d88bc4dc0ef17b4052b285147 + unrolled_ast: 8dec69affaee71632a03de286692e4dabd23bf9d88bc4dc0ef17b4052b285147 + ssa_ast: 33115a0bb2fca2cfbea13211d88fbea33ad447e09886f4583391fe957c55768c diff --git a/tests/expectations/compiler/integers/i8/shl.out b/tests/expectations/compiler/integers/i8/shl.out new file mode 100644 index 0000000000..4ad1df9de4 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5213a0abbbf502a8d84d4ce6ae6418b5d3ff1c6a4de6cf53a6f001b1a7c4f9b2 + initial_ast: 5fe6132197fe808d6dca1fa027b365db2e139ce6306d39d55d93b55ef24228f9 + unrolled_ast: 5fe6132197fe808d6dca1fa027b365db2e139ce6306d39d55d93b55ef24228f9 + ssa_ast: 9bd9737f33da089c74e61cede6993055efd41a8b0e12c1eb743ca030e85d9115 diff --git a/tests/expectations/compiler/integers/i8/shr.out b/tests/expectations/compiler/integers/i8/shr.out new file mode 100644 index 0000000000..78cdf43efa --- /dev/null +++ b/tests/expectations/compiler/integers/i8/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5213a0abbbf502a8d84d4ce6ae6418b5d3ff1c6a4de6cf53a6f001b1a7c4f9b2 + initial_ast: 6bd99d27e5b8dc50b3dad77d390cfb6af4f4b78c4f2f94bd095eefaeda594a73 + unrolled_ast: 6bd99d27e5b8dc50b3dad77d390cfb6af4f4b78c4f2f94bd095eefaeda594a73 + ssa_ast: 551e35865e28fabf6bffa67ba5c3838519a7205f871f785b042e2ecc13ff372c diff --git a/tests/expectations/compiler/integers/i8/sub.out b/tests/expectations/compiler/integers/i8/sub.out new file mode 100644 index 0000000000..5c7d892803 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 573a280e74e0a7a4bfd582c72c06fcd90fb2f8939c9c7f4468d6a0a9acc7f7ab + initial_ast: 5cac538ad248729a7c889ed8343cbfd59ddf39c5205876af8c27a66a7ee1cd23 + unrolled_ast: 5cac538ad248729a7c889ed8343cbfd59ddf39c5205876af8c27a66a7ee1cd23 + ssa_ast: 4b2e70c774872a38aabdfa833e08726b38bb03f5cd38ad585ee5250b49ef9988 diff --git a/tests/expectations/compiler/integers/i8/ternary.out b/tests/expectations/compiler/integers/i8/ternary.out new file mode 100644 index 0000000000..a6709224ac --- /dev/null +++ b/tests/expectations/compiler/integers/i8/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bd77ed2adb6a6503c0c23a971135d4dc9379a4c24cc32fb450b39217f4c78265 + - initial_input_ast: dfca4fead6cd26c21a13438da1cce131acba56ad418f8a7ee4d9376d848680bd + initial_ast: bf5651b4d5dae12b1ef57d8973976bdf9f36be84734be6b73abd31e0bfdb88e8 + unrolled_ast: bf5651b4d5dae12b1ef57d8973976bdf9f36be84734be6b73abd31e0bfdb88e8 + ssa_ast: 6f8a88bb902d34a88fb3a1386889c037cfed523f5ac34586996447c349d1b09c diff --git a/tests/expectations/compiler/integers/i8/xor.out b/tests/expectations/compiler/integers/i8/xor.out new file mode 100644 index 0000000000..e63f7fa935 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 56f2d6c7538d2556696faabc23206c2ab2ce935cefcf9211542ba139b70b98f7 + initial_ast: 2cf0f045f81840d6a04fa7c5c1e4014d7c5d33ae3e251bef13ad605380e1d0a6 + unrolled_ast: 2cf0f045f81840d6a04fa7c5c1e4014d7c5d33ae3e251bef13ad605380e1d0a6 + ssa_ast: f1e8ac07d31602ed8dd5dbe2ca7f664bb1c6f01dc2e6056cfaffb7b995f310df diff --git a/tests/expectations/compiler/integers/u128/add.out b/tests/expectations/compiler/integers/u128/add.out new file mode 100644 index 0000000000..e487f031ef --- /dev/null +++ b/tests/expectations/compiler/integers/u128/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e7ed1e3c5fb2bea093ef50a0c37c1548a1800743f5d2869662c5182b2a866574 + initial_ast: cd255611a667887661f5b99f254852cbc0fd604278296b74b6afb5b19cf5be5a + unrolled_ast: cd255611a667887661f5b99f254852cbc0fd604278296b74b6afb5b19cf5be5a + ssa_ast: 4870d05c8074404fecefce77719032943c9ade285c1ff2c3bc8d7f43124d7d77 diff --git a/tests/expectations/compiler/integers/u128/and.out b/tests/expectations/compiler/integers/u128/and.out new file mode 100644 index 0000000000..3d148e6cee --- /dev/null +++ b/tests/expectations/compiler/integers/u128/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e7ed1e3c5fb2bea093ef50a0c37c1548a1800743f5d2869662c5182b2a866574 + initial_ast: bef5a47be25bb2488df570334b6d065e4b4f45d30390ec9b6aa873ecd6c922ec + unrolled_ast: bef5a47be25bb2488df570334b6d065e4b4f45d30390ec9b6aa873ecd6c922ec + ssa_ast: b147a3a622ae4b50a276587f0c0787c15467df7e836068d8b83b7c66ca8d6c72 diff --git a/tests/expectations/compiler/integers/u128/console_assert.out b/tests/expectations/compiler/integers/u128/console_assert.out new file mode 100644 index 0000000000..a431e3fcb3 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 04fd22fe1ef4e6c002f7090ccf35faecff80a2535a688a6fda6d1b0f63d2c19e + initial_ast: cd572fa73ad17923d13099ac77c54b732b260452bc72c2a609a73111a9edb00e + unrolled_ast: cd572fa73ad17923d13099ac77c54b732b260452bc72c2a609a73111a9edb00e + ssa_ast: 422da77763c0fa6d062a63efa018282226b1e3ed5561bf7acd25e498a4cb2e0c diff --git a/tests/expectations/compiler/integers/u128/div.out b/tests/expectations/compiler/integers/u128/div.out new file mode 100644 index 0000000000..bd2c4019b2 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5db93e51b45bd2c1865c73929c64b3d86b684c92e48aa32f851015d0c02f9887 + initial_ast: a8330c8dd15a36a7d515977dacdd57ad7f37d992f19ccf449f6a3c79f4740f68 + unrolled_ast: a8330c8dd15a36a7d515977dacdd57ad7f37d992f19ccf449f6a3c79f4740f68 + ssa_ast: 887a4a5451f5ab8589759185c8a40e437f1ab577f43a66dd5ed4c7dd0d262715 diff --git a/tests/expectations/compiler/integers/u128/eq.out b/tests/expectations/compiler/integers/u128/eq.out new file mode 100644 index 0000000000..af1f916c09 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7e7dafe8ef71c28d032582570b850f6386768ec57e5e3ecd2707bfc44f42e5d7 + initial_ast: 2011f14ebb74498706fea33472a56daacf2b017cc2f102f260f33e7fe1c335c0 + unrolled_ast: 2011f14ebb74498706fea33472a56daacf2b017cc2f102f260f33e7fe1c335c0 + ssa_ast: cfa15d8e5379458839ed73668e4b79637249a55ee124951f655a97d403bf2bc2 diff --git a/tests/expectations/compiler/integers/u128/ge.out b/tests/expectations/compiler/integers/u128/ge.out new file mode 100644 index 0000000000..c000a87f9e --- /dev/null +++ b/tests/expectations/compiler/integers/u128/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 192829d709e9a915c6cc0cdd27fb24bcae5222ad571a8939f6518f27b895bef3 + - initial_input_ast: 8766097c50171ea9912e2ee31fc9124faafa62da00407a4b9ab679a42e45233a + initial_ast: c609706ebfde16ba94eab5c9fac321ffad7392f4734a431b8e627ce6955fd090 + unrolled_ast: c609706ebfde16ba94eab5c9fac321ffad7392f4734a431b8e627ce6955fd090 + ssa_ast: 589b24e1643d28d00e88887af90b901e9e520472bab60bcd97c76df7d5079c03 diff --git a/tests/expectations/compiler/integers/u128/gt.out b/tests/expectations/compiler/integers/u128/gt.out new file mode 100644 index 0000000000..1f04305238 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 783036ae02b0759121405a92762d8924bd3712a5b465f29e000c2a834d3e94a5 + - initial_input_ast: 3a5987d6bf50d0bd048b269040b9da36954c6e4e622c846d4d3447ae0aa93b7a + initial_ast: 22d17b31afab06ad4172b41b182d647bbf88939b84cb220a19e3cc5571da0ae0 + unrolled_ast: 22d17b31afab06ad4172b41b182d647bbf88939b84cb220a19e3cc5571da0ae0 + ssa_ast: ba6a9d7e2958397aeebd8e46faaee034a640e994186c188aa272bceec0ae0d99 diff --git a/tests/expectations/compiler/integers/u128/le.out b/tests/expectations/compiler/integers/u128/le.out new file mode 100644 index 0000000000..44d1a04699 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 192829d709e9a915c6cc0cdd27fb24bcae5222ad571a8939f6518f27b895bef3 + - initial_input_ast: 46dd342e0f8b31909b76fb09d62bd4660220b425dea1f18f60d8e49a82055f29 + initial_ast: ccd9469d94398bc8f3a2f09a16ccc37ed30da7523edadb0a7ee6ad796f721f08 + unrolled_ast: ccd9469d94398bc8f3a2f09a16ccc37ed30da7523edadb0a7ee6ad796f721f08 + ssa_ast: 857e9acd6aea29ac4d3bf1f6e707af74b0177cc931001946608192d4dcc0311f diff --git a/tests/expectations/compiler/integers/u128/lt.out b/tests/expectations/compiler/integers/u128/lt.out new file mode 100644 index 0000000000..3729f02e16 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 445ab3909ea34095878c451cabb6ec147e6ecf18d080df0e2a05e03c16df076e + - initial_input_ast: 17389f0533f443fc916e0fcd04cefc76377450010a2c805d4bdafcf9906ae881 + initial_ast: 116ad158cc967de309d23c131d3c06cb4017fe702d1f7cf9d7b667dd429416c3 + unrolled_ast: 116ad158cc967de309d23c131d3c06cb4017fe702d1f7cf9d7b667dd429416c3 + ssa_ast: bb69ab7d4534410b610fdfbd4e824cc3e2b3ea45b3b57a19ab3602dc9594b16b diff --git a/tests/expectations/compiler/integers/u128/max.out b/tests/expectations/compiler/integers/u128/max.out new file mode 100644 index 0000000000..6aa294b47c --- /dev/null +++ b/tests/expectations/compiler/integers/u128/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a2ab6a89c5952a113fbecdeb630917b4699c38dcda5971528ab35cdd5e92c216 + initial_ast: a09cb20c8555d08c2aa9270a6b76bc680671125405c77f291921817854eb7bca + unrolled_ast: a09cb20c8555d08c2aa9270a6b76bc680671125405c77f291921817854eb7bca + ssa_ast: 1466dcbcfe0dd7a42e24d0f9af5a0df6d594cc4a09416378c4b28b6f87fc2dac diff --git a/tests/expectations/compiler/integers/u128/max_fail.out b/tests/expectations/compiler/integers/u128/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u128/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u128/min.out b/tests/expectations/compiler/integers/u128/min.out new file mode 100644 index 0000000000..df8b95c75f --- /dev/null +++ b/tests/expectations/compiler/integers/u128/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 886b77241861e32ee76414a8f86e04b86943325113b6b28e9d6805ee61c936ef + initial_ast: 48926b48e382e7869e065339fb3823f6bb2fccc11cc0713fd537bef1660d832d + unrolled_ast: 48926b48e382e7869e065339fb3823f6bb2fccc11cc0713fd537bef1660d832d + ssa_ast: d3d77e3a42549fd97c301ded35c2b48740df341804f3bf7ec0ecd5c94d4f80c6 diff --git a/tests/expectations/compiler/integers/u128/min_fail.out b/tests/expectations/compiler/integers/u128/min_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u128/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u128/mul.out b/tests/expectations/compiler/integers/u128/mul.out new file mode 100644 index 0000000000..212cabaa87 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: db3eedda9d86f5720afddf87a7cb319fbe1594d75193eadd2720a28380850814 + initial_ast: 4d3663a3c68f384af87b9da68ed3194718a2e1431ca876a01577b58909f922af + unrolled_ast: 4d3663a3c68f384af87b9da68ed3194718a2e1431ca876a01577b58909f922af + ssa_ast: ac274a9278af83646b56db0a0b69e7f119672692824c9bcca42acff0fa63aa3c diff --git a/tests/expectations/compiler/integers/u128/ne.out b/tests/expectations/compiler/integers/u128/ne.out new file mode 100644 index 0000000000..2432274e16 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 95022fb8616d174af5552e764af96d14ebca2378e57a26caf56155199cc12514 + - initial_input_ast: 6e27f1353141bbbd4f15e0cf9b2647f72eea0ebd5bc9dc75bff17f8e8d7ece01 + initial_ast: 20d177f88a225fd9a8e0bea6299a1fdc9be8f7c0364a39dbb5a84563e126d7ce + unrolled_ast: 20d177f88a225fd9a8e0bea6299a1fdc9be8f7c0364a39dbb5a84563e126d7ce + ssa_ast: 78b4e6f708bfa1c292f9e485c2ccd3b22ecbae5f352a941e593d8401058da5c6 diff --git a/tests/expectations/compiler/integers/u128/no_space_between_literal.out b/tests/expectations/compiler/integers/u128/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u128/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u128/operator_methods.out b/tests/expectations/compiler/integers/u128/operator_methods.out new file mode 100644 index 0000000000..87d777b221 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 323e17762e30677ac3100cad9a455a99d3d57115531e2ca04caa8cf1311266ac + initial_ast: 04dd2fc152a79580155495dbdbae6f9685460550425e5d595914a04b68b21460 + unrolled_ast: 04dd2fc152a79580155495dbdbae6f9685460550425e5d595914a04b68b21460 + ssa_ast: 9a2ef8cc957121610bb160fdc23a647fc78638c87b74b88753ae334cc19499df diff --git a/tests/expectations/compiler/integers/u128/or.out b/tests/expectations/compiler/integers/u128/or.out new file mode 100644 index 0000000000..cdc178f7ad --- /dev/null +++ b/tests/expectations/compiler/integers/u128/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e7ed1e3c5fb2bea093ef50a0c37c1548a1800743f5d2869662c5182b2a866574 + initial_ast: 0a1e0f82423c906073201331fee4c02a6c02d0115ce09993d1c66887087118ad + unrolled_ast: 0a1e0f82423c906073201331fee4c02a6c02d0115ce09993d1c66887087118ad + ssa_ast: 88915e3c9573e8d2318e4398d569375a9d727877b7387abaec3a718c33ad4a82 diff --git a/tests/expectations/compiler/integers/u128/pow.out b/tests/expectations/compiler/integers/u128/pow.out new file mode 100644 index 0000000000..2e9eec722f --- /dev/null +++ b/tests/expectations/compiler/integers/u128/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 3d864c5dd3dba86277a7e64db597913c4866e2c843e1e1c817530e6fd0b64b8e + unrolled_ast: 3d864c5dd3dba86277a7e64db597913c4866e2c843e1e1c817530e6fd0b64b8e + ssa_ast: d7ed9fc0168b80ab70b5e9bc054ee5fb273d17c4627703b3cc84907bd97b29b4 diff --git a/tests/expectations/compiler/integers/u128/shl.out b/tests/expectations/compiler/integers/u128/shl.out new file mode 100644 index 0000000000..cd862565ed --- /dev/null +++ b/tests/expectations/compiler/integers/u128/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9363cea9423b4153976492ca4328a2e5b962c5745cd167e7896421f173a72b47 + initial_ast: edeb671606b15c620c6369ff4f63deb80185119dab43d5fcf1649d3347ccb4b3 + unrolled_ast: edeb671606b15c620c6369ff4f63deb80185119dab43d5fcf1649d3347ccb4b3 + ssa_ast: 22c95020977e7e846b1a174aa690d843a466725f194eb88e2739d8d164e5a56b diff --git a/tests/expectations/compiler/integers/u128/shr.out b/tests/expectations/compiler/integers/u128/shr.out new file mode 100644 index 0000000000..054fa5182c --- /dev/null +++ b/tests/expectations/compiler/integers/u128/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9363cea9423b4153976492ca4328a2e5b962c5745cd167e7896421f173a72b47 + initial_ast: 0d90fc3ecd139b4ad2f0c58a70fda2358607601d80ae5f19d7ea23606340936b + unrolled_ast: 0d90fc3ecd139b4ad2f0c58a70fda2358607601d80ae5f19d7ea23606340936b + ssa_ast: 1c38a8f6cffaa856dd420e5a684fcf2d765c7d00510b5fbcad3f82cc6dfb3e27 diff --git a/tests/expectations/compiler/integers/u128/sub.out b/tests/expectations/compiler/integers/u128/sub.out new file mode 100644 index 0000000000..d15acbdb35 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6e6826bbad13635cdb03f093495dbbb73bac96e8291141ea42a031b4aadf31c5 + initial_ast: 381511efc1cb0f70f2dbd6f822b437a1172e8b5fdd6641e5383b1864c1b6c6f5 + unrolled_ast: 381511efc1cb0f70f2dbd6f822b437a1172e8b5fdd6641e5383b1864c1b6c6f5 + ssa_ast: c7b7db3ed960a54652ff308d9b30b3d33de641993315e54d2fd615b6dc582ed5 diff --git a/tests/expectations/compiler/integers/u128/ternary.out b/tests/expectations/compiler/integers/u128/ternary.out new file mode 100644 index 0000000000..568d4ba502 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 70be7cdc602aa8c9dcfbc7a51eb48e5e76b704429a23b0cfd43ca073d3445412 + - initial_input_ast: 03111b898b34afc7653f3898e3f39c7af3f783a91876eb49c04b9e4b2261f0c6 + initial_ast: 54161644b7c95ff2d294c217ae9314efc1e2412793b5df19ca039093e425f8d5 + unrolled_ast: 54161644b7c95ff2d294c217ae9314efc1e2412793b5df19ca039093e425f8d5 + ssa_ast: ddb0307728b841d82a3c6c49316342e9eb6832b63a1e86d036373532fef3addc diff --git a/tests/expectations/compiler/integers/u128/xor.out b/tests/expectations/compiler/integers/u128/xor.out new file mode 100644 index 0000000000..2b8e02948e --- /dev/null +++ b/tests/expectations/compiler/integers/u128/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8ea11ca502a04fc7590d741016f40fb703bebb746ce5aadb987a76f3a773364f + initial_ast: 990256fb3c95e13095ee5dc44a64cc922ce41c81bb4316fec840c768bcffae57 + unrolled_ast: 990256fb3c95e13095ee5dc44a64cc922ce41c81bb4316fec840c768bcffae57 + ssa_ast: c04edd36a76cad9690a2861472b23b2b7378dd40fa04f33000441686d6c53b5a diff --git a/tests/expectations/compiler/integers/u16/add.out b/tests/expectations/compiler/integers/u16/add.out new file mode 100644 index 0000000000..8680517010 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e42870a9c4915d12757e7ebe32492b7c4dd6f47134c6f2bd635d6e4be239c379 + initial_ast: bf4c95f536ccf875c56803f20cd7e7dac93744068213fc96c575761ff1eab4ff + unrolled_ast: bf4c95f536ccf875c56803f20cd7e7dac93744068213fc96c575761ff1eab4ff + ssa_ast: 2f30d5bfc1f5a425edcd177f633f097b99149212ac78a5fa1df3c92b495fb917 diff --git a/tests/expectations/compiler/integers/u16/and.out b/tests/expectations/compiler/integers/u16/and.out new file mode 100644 index 0000000000..36360bdddd --- /dev/null +++ b/tests/expectations/compiler/integers/u16/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e42870a9c4915d12757e7ebe32492b7c4dd6f47134c6f2bd635d6e4be239c379 + initial_ast: c5e47884d4380e59cf2ba0bf0a3c45fa3ee225aba18dafae1585723e2f065cae + unrolled_ast: c5e47884d4380e59cf2ba0bf0a3c45fa3ee225aba18dafae1585723e2f065cae + ssa_ast: 1b806439f0bd11e3aa81ec1b3e9bad6eb70a50f752d866bd7350ba8e918c3d68 diff --git a/tests/expectations/compiler/integers/u16/console_assert.out b/tests/expectations/compiler/integers/u16/console_assert.out new file mode 100644 index 0000000000..d7e467e5d3 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a5084c2432ba3ce882ffd38b4db3b7805403e203266908de1d6b64b2533c2b71 + initial_ast: e5df6e8d0a445ae477a1d095db6c5510f44d8719279d6d9ed0dde002c220ae4b + unrolled_ast: e5df6e8d0a445ae477a1d095db6c5510f44d8719279d6d9ed0dde002c220ae4b + ssa_ast: 582c8f4d6b9e42062c8ef42c39c708e04b9a25fb02c88f460210d7286e175b22 diff --git a/tests/expectations/compiler/integers/u16/div.out b/tests/expectations/compiler/integers/u16/div.out new file mode 100644 index 0000000000..a6605eb2c4 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bb055123854595a4f93cef4f89dfc0dd322e79a50ed9cf95ea4992e050a7e864 + initial_ast: 4289dcf746dd0bb3dedf8f6bd9a3a16e6fc766bd677856a7c0c3fe240b9cf9f9 + unrolled_ast: 4289dcf746dd0bb3dedf8f6bd9a3a16e6fc766bd677856a7c0c3fe240b9cf9f9 + ssa_ast: f907bcce5e9cbb24ed1bd360e21e1f0f516b6d123ac7a232f5552b0a7ff506da diff --git a/tests/expectations/compiler/integers/u16/eq.out b/tests/expectations/compiler/integers/u16/eq.out new file mode 100644 index 0000000000..3758857842 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9c7090d59baa24c677f2a5b072a6487ba14703c6ff893e8e342b84537a0e4e59 + initial_ast: 848562df01ecf23d384b9746ebac0f8ace80fd5d3d58c561cc1fa898e8e00995 + unrolled_ast: 848562df01ecf23d384b9746ebac0f8ace80fd5d3d58c561cc1fa898e8e00995 + ssa_ast: a0621136f84d60c72eed132e3d44ab690d4d1969c0227c557c515e1f85fa5467 diff --git a/tests/expectations/compiler/integers/u16/ge.out b/tests/expectations/compiler/integers/u16/ge.out new file mode 100644 index 0000000000..c36b63018d --- /dev/null +++ b/tests/expectations/compiler/integers/u16/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 25c18e61267377f9d45aa8097941fd9920d277611e4e6a26e44bec19044ad90e + - initial_input_ast: 40c0cb654f2a935962647b51d536868c2a9caab366458fd55e9fe21cde620685 + initial_ast: c166eacc41ac036b143fcaf31432af394aaece73eb05a8e65e98a9b662d6caef + unrolled_ast: c166eacc41ac036b143fcaf31432af394aaece73eb05a8e65e98a9b662d6caef + ssa_ast: 2b3079fdd45821c2a3e8b9f190924f3881e30a8f4eda2c458831847488050353 diff --git a/tests/expectations/compiler/integers/u16/gt.out b/tests/expectations/compiler/integers/u16/gt.out new file mode 100644 index 0000000000..41677b3256 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b4fbf481b32bd84d6fc11397bab229124d8d261d677e5086e27ebec223a1f882 + - initial_input_ast: bd45fbb21f0dd4ebc486086d1e8914f5a76f2ee9ffd16a47cc0929855ba6eff1 + initial_ast: 3d4ed274642b343749864eccc76103134449075ef18ead2c9e6f0fd69401e864 + unrolled_ast: 3d4ed274642b343749864eccc76103134449075ef18ead2c9e6f0fd69401e864 + ssa_ast: 3457cf8b1678ae974961ef578a53af8b74d767c081d894769ea686a37ec93447 diff --git a/tests/expectations/compiler/integers/u16/le.out b/tests/expectations/compiler/integers/u16/le.out new file mode 100644 index 0000000000..3aa7c76515 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 25c18e61267377f9d45aa8097941fd9920d277611e4e6a26e44bec19044ad90e + - initial_input_ast: b103a43941f8ec2e29ba5eaa3b8f5f4dc8647417aa0d1656b83ba683c6ca1ce7 + initial_ast: 8d3ffa47b2cdf307fbd2673a3c340a49c1e95be9b8e6ef13391b0b79382610ff + unrolled_ast: 8d3ffa47b2cdf307fbd2673a3c340a49c1e95be9b8e6ef13391b0b79382610ff + ssa_ast: 55b7a769877eea231d51404bc609fbc7b7a1928fd1ba535c83734596ce280e6a diff --git a/tests/expectations/compiler/integers/u16/lt.out b/tests/expectations/compiler/integers/u16/lt.out new file mode 100644 index 0000000000..3c32b4c66d --- /dev/null +++ b/tests/expectations/compiler/integers/u16/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bc724c71e20a5d3aad5ed2665209557e8feada799c27830d72a06e0d064e69af + - initial_input_ast: ce67c57955f79db1f00cbe7b976195c609bb6f6f93a4f49c51c88fa349e65554 + initial_ast: 1ae39ead50844069aa07fb4152e31b52ac140a3c8d92793deb14570af611823b + unrolled_ast: 1ae39ead50844069aa07fb4152e31b52ac140a3c8d92793deb14570af611823b + ssa_ast: 85b3192381368a07deedef3512ab1f37f546fdb71477aff0ff590a19c8441554 diff --git a/tests/expectations/compiler/integers/u16/max.out b/tests/expectations/compiler/integers/u16/max.out new file mode 100644 index 0000000000..eb140025d5 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 940d740ba40284a1d3c3cf8737facd1e98968224dd93999dbcb336cb3f4ce571 + initial_ast: 0d6e907cb7cdbd260e7237560385622f7b1340c1b272deedf2138c32edd6e58e + unrolled_ast: 0d6e907cb7cdbd260e7237560385622f7b1340c1b272deedf2138c32edd6e58e + ssa_ast: ca7131e9dd8facea5ff5ab46427d5a5fbdb29f545995fea3f708c869e1423219 diff --git a/tests/expectations/compiler/integers/u16/max_fail.out b/tests/expectations/compiler/integers/u16/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u16/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u16/min.out b/tests/expectations/compiler/integers/u16/min.out new file mode 100644 index 0000000000..f8b2ba7a2f --- /dev/null +++ b/tests/expectations/compiler/integers/u16/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c7cfa681865a1c0623cfd356162d0c6750f3e06fb72126585eace0aeb21bae77 + initial_ast: 2309d5b8b3a71f552625331d626090d15c936077251e1686ed92adf25f53f095 + unrolled_ast: 2309d5b8b3a71f552625331d626090d15c936077251e1686ed92adf25f53f095 + ssa_ast: 0925420dd82bdba6a36384b5f8cd833364734ae35b7afd63d9645b8d72a3e0e7 diff --git a/tests/expectations/compiler/integers/u16/min_fail.out b/tests/expectations/compiler/integers/u16/min_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u16/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u16/mul.out b/tests/expectations/compiler/integers/u16/mul.out new file mode 100644 index 0000000000..aa14af17b3 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 324aa2cb3c57c9e956792d50328347a3da38de524f5d6ce7ae0a66f646efcf85 + initial_ast: 65e17485ed0c22f2f23ca9bb04eb1e3e921068f46902cfe1cd1b24fbcb65c8a9 + unrolled_ast: 65e17485ed0c22f2f23ca9bb04eb1e3e921068f46902cfe1cd1b24fbcb65c8a9 + ssa_ast: 629ea6fce054a5e8086e32e29d84a3423186ef880faea083be15b9ca8cab858b diff --git a/tests/expectations/compiler/integers/u16/ne.out b/tests/expectations/compiler/integers/u16/ne.out new file mode 100644 index 0000000000..7f469cf84b --- /dev/null +++ b/tests/expectations/compiler/integers/u16/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3ca06d5bbeb5e839a4ac328776de5debaa67570dcf5fe42f678c73581c5b0b79 + - initial_input_ast: 1c02488cb37ff8842703d1d1397b917a878f3dd65092191942e34319acf57563 + initial_ast: 992528bae4766fd5bbb5b34870ea14fd71c710d5759c8d577246f8dea618fb54 + unrolled_ast: 992528bae4766fd5bbb5b34870ea14fd71c710d5759c8d577246f8dea618fb54 + ssa_ast: 88873c09692817af2a7caa9ff7deb2d9c1a297adfece826eb4eddead70b9d2a4 diff --git a/tests/expectations/compiler/integers/u16/no_space_between_literal.out b/tests/expectations/compiler/integers/u16/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u16/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u16/operator_methods.out b/tests/expectations/compiler/integers/u16/operator_methods.out new file mode 100644 index 0000000000..ec5e7ea5e2 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ff9c2d1e56ff3e1807432f3315573cbfaf9129ee77b5782bfc87fdb29018fcfa + initial_ast: b421820b604e7060e5ab68f80666db1e7c44761836e4af18e6480030e7838b01 + unrolled_ast: b421820b604e7060e5ab68f80666db1e7c44761836e4af18e6480030e7838b01 + ssa_ast: 471fd8a116e7c418a1fd5942299bf3b889acb627b20caf1b435083f0d48a8449 diff --git a/tests/expectations/compiler/integers/u16/or.out b/tests/expectations/compiler/integers/u16/or.out new file mode 100644 index 0000000000..ef19c1626d --- /dev/null +++ b/tests/expectations/compiler/integers/u16/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e42870a9c4915d12757e7ebe32492b7c4dd6f47134c6f2bd635d6e4be239c379 + initial_ast: 35c8ad870e121356ac9d0ecb07b9f4d4f5283c3c4cc393b7d8027af3369aad52 + unrolled_ast: 35c8ad870e121356ac9d0ecb07b9f4d4f5283c3c4cc393b7d8027af3369aad52 + ssa_ast: b204a34150071529bcef78a4512f0d6c1ac562d63781627bf57da3aa5ebe1f90 diff --git a/tests/expectations/compiler/integers/u16/pow.out b/tests/expectations/compiler/integers/u16/pow.out new file mode 100644 index 0000000000..132a592823 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 58e0404834b4715977bba6f7fe8c6f921692495839cac160e0d8ab227efef8b2 + initial_ast: ea3b7f70662fb50da496d594df242650a7fdef038b6b465807d844bc5c162304 + unrolled_ast: ea3b7f70662fb50da496d594df242650a7fdef038b6b465807d844bc5c162304 + ssa_ast: c037d0dee401d9ec2f7712a5d75db052364cc8525e8d460e623e59a49e3c3eb4 diff --git a/tests/expectations/compiler/integers/u16/shl.out b/tests/expectations/compiler/integers/u16/shl.out new file mode 100644 index 0000000000..9dd9061566 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 65dd7cf520245c5318843529da405a4b32044950de9495123e281819690c9b32 + initial_ast: a6b7db823e035430a49b48dd895c85554caa71120c2c1a40d7b6f93622dddd9a + unrolled_ast: a6b7db823e035430a49b48dd895c85554caa71120c2c1a40d7b6f93622dddd9a + ssa_ast: df7cdacadf815cc492f0d857d7ef517f669004d285168e2684d4d1cb6b24ee44 diff --git a/tests/expectations/compiler/integers/u16/shr.out b/tests/expectations/compiler/integers/u16/shr.out new file mode 100644 index 0000000000..f588d01d28 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 65dd7cf520245c5318843529da405a4b32044950de9495123e281819690c9b32 + initial_ast: e9684a8b5ab2922f815f9dd15bfb939567f776a503b04906835cb422e177b793 + unrolled_ast: e9684a8b5ab2922f815f9dd15bfb939567f776a503b04906835cb422e177b793 + ssa_ast: 4f9f2e96dd410e2bbc7c57097994894f07bc9709bc687753b89ab871e72700e2 diff --git a/tests/expectations/compiler/integers/u16/sub.out b/tests/expectations/compiler/integers/u16/sub.out new file mode 100644 index 0000000000..463049266c --- /dev/null +++ b/tests/expectations/compiler/integers/u16/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 254a400e9fe9ac80d9e2ed8254994a7bca4229005186c223d0a19585613f32b9 + initial_ast: 1439fac87b5291ecbadd34277e98debe8ac2d6dc057b30711159f22e4f51f1f3 + unrolled_ast: 1439fac87b5291ecbadd34277e98debe8ac2d6dc057b30711159f22e4f51f1f3 + ssa_ast: d072d068ab624939ebb7cde0f28583bf510b8607a985f59a481e7f58f5eec713 diff --git a/tests/expectations/compiler/integers/u16/ternary.out b/tests/expectations/compiler/integers/u16/ternary.out new file mode 100644 index 0000000000..9bc031e7f5 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 652d4ff29a89177b1a50bf825c8e0b588cd69b59d15401627d8ad9cb8bc8bea4 + - initial_input_ast: 5c2bc7483238201b8fd1d26d7bf18fd8cd88a0c968e4403d7e588c58d5135ce1 + initial_ast: 35239dd409be0d20ca2b355a6e38300eada05aedb698240825960557e8293b43 + unrolled_ast: 35239dd409be0d20ca2b355a6e38300eada05aedb698240825960557e8293b43 + ssa_ast: 468880313852e477585e7afcd1391a0f4c2048c9032e9586ab27700253a63488 diff --git a/tests/expectations/compiler/integers/u16/xor.out b/tests/expectations/compiler/integers/u16/xor.out new file mode 100644 index 0000000000..129bfaeb60 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d6798a8a955e910e463ef57ef5e09b17ed1b2c06134195c88e91efd38672ef9a + initial_ast: 317292036a9bce4a8ad1d82e5aea8924e4101798231548c289e57ceaa10b805e + unrolled_ast: 317292036a9bce4a8ad1d82e5aea8924e4101798231548c289e57ceaa10b805e + ssa_ast: bbcc9f7de89f49dc1ebdf3c7056768a7f5b1fe23624be088e6d6337044127d72 diff --git a/tests/expectations/compiler/integers/u32/add.out b/tests/expectations/compiler/integers/u32/add.out new file mode 100644 index 0000000000..f9cc333048 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4ae3fcda756be204242383a3b61c067cdfe8b565664f0a30d5940ba4f7266e8a + initial_ast: 69b43c1627d395abf92d9d646733c3295c1c3f2b3da6cccc511f84a89cc7cfe6 + unrolled_ast: 69b43c1627d395abf92d9d646733c3295c1c3f2b3da6cccc511f84a89cc7cfe6 + ssa_ast: 27ccdcecb6c62876514839168ccd570a630cd6508576a26407db99decb509f5d diff --git a/tests/expectations/compiler/integers/u32/and.out b/tests/expectations/compiler/integers/u32/and.out new file mode 100644 index 0000000000..59138dc60f --- /dev/null +++ b/tests/expectations/compiler/integers/u32/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4ae3fcda756be204242383a3b61c067cdfe8b565664f0a30d5940ba4f7266e8a + initial_ast: b10071ee8f3623bfaaaf20973d31ec47788c00639dda7208f28168867953f454 + unrolled_ast: b10071ee8f3623bfaaaf20973d31ec47788c00639dda7208f28168867953f454 + ssa_ast: f9ff1f6a239e2ab25a1c8541c932480f47992dc28c1936845c495e7cefad0d33 diff --git a/tests/expectations/compiler/integers/u32/console_assert.out b/tests/expectations/compiler/integers/u32/console_assert.out new file mode 100644 index 0000000000..77ccc1b459 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 561ac4b4e304248d2a792844c79bc6bb2058fb18c89a2ffa413a605b95b105c7 + initial_ast: 0961afe0f9891298bfcc2549fd110b2d99a5ca63e900748b475ecc19694c425c + unrolled_ast: 0961afe0f9891298bfcc2549fd110b2d99a5ca63e900748b475ecc19694c425c + ssa_ast: 2f0d7a76b468736584d864926d3e9f9805f1336f2884ee94dcd3913d3f11b75d diff --git a/tests/expectations/compiler/integers/u32/div.out b/tests/expectations/compiler/integers/u32/div.out new file mode 100644 index 0000000000..fccb0d6c85 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a6c57f9e310c5c979bec62d2681c7bd2dc1ef0ce672a76c8480943858289937b + initial_ast: ff26a14782b4f76d725602ed0bec0acd22748d8c07a18da1dbbc1162a7b2b433 + unrolled_ast: ff26a14782b4f76d725602ed0bec0acd22748d8c07a18da1dbbc1162a7b2b433 + ssa_ast: ef8d836ea6b48725294b106c261d84b1ea36ca4cca434f0e8b813a2366e6b759 diff --git a/tests/expectations/compiler/integers/u32/eq.out b/tests/expectations/compiler/integers/u32/eq.out new file mode 100644 index 0000000000..6e51df6f32 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2be89543b341c40370cf165944cc0feba6f8519c6e61356e08fcc1deb82337a1 + initial_ast: 2ff9c89b8472f388c8999b08e614a121cb217dc5fa2a49a18bb4e34a654d611b + unrolled_ast: 2ff9c89b8472f388c8999b08e614a121cb217dc5fa2a49a18bb4e34a654d611b + ssa_ast: b57e837e59848423a09dd9964983477db2c73e4da84e8012d14304c6512aecd3 diff --git a/tests/expectations/compiler/integers/u32/ge.out b/tests/expectations/compiler/integers/u32/ge.out new file mode 100644 index 0000000000..17681ba0ca --- /dev/null +++ b/tests/expectations/compiler/integers/u32/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: de8ad46ebf86c8cf39727a576289b732900d67a883b46a1fd7310a05e0a382a4 + - initial_input_ast: 90fd17221034d61fe7b8e6583a861d6d9d97461219d7370d0c34449d9badcc3e + initial_ast: 8437893822f755cfea5eafe1f822869572f138e6c75c768800a4fc62334bfa6d + unrolled_ast: 8437893822f755cfea5eafe1f822869572f138e6c75c768800a4fc62334bfa6d + ssa_ast: 9dd10920b47943a85774f6eaf17463ada6f09d9cd11eb295a250bc2f708baa28 diff --git a/tests/expectations/compiler/integers/u32/gt.out b/tests/expectations/compiler/integers/u32/gt.out new file mode 100644 index 0000000000..399fa29c2e --- /dev/null +++ b/tests/expectations/compiler/integers/u32/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9e8ee0699c70350b4eb62623a588f890133dd278178de2d51aeacd9e4b01365e + - initial_input_ast: befb4b685175af0ffdb1e55ed784847e1bcae0b53d41f7ae04c343fa89662659 + initial_ast: 5477e515cf4f2318d84011c500baec83b9d3698653afed8b2fec77f74125dcdd + unrolled_ast: 5477e515cf4f2318d84011c500baec83b9d3698653afed8b2fec77f74125dcdd + ssa_ast: 5610b0c45d50241750098325e24a8724b6b6eb21afde38046f08abde1c5f1d9d diff --git a/tests/expectations/compiler/integers/u32/le.out b/tests/expectations/compiler/integers/u32/le.out new file mode 100644 index 0000000000..0e3266236d --- /dev/null +++ b/tests/expectations/compiler/integers/u32/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: de8ad46ebf86c8cf39727a576289b732900d67a883b46a1fd7310a05e0a382a4 + - initial_input_ast: 1c2f0c75bc9b2b574e97ea3a0c18d30c5d3f4dd10c471e8ea81bf145ce0c9e40 + initial_ast: 444b3f4d69337068533fa319ce5b6c93b2bc77174724dea0faf3ae0d175c601b + unrolled_ast: 444b3f4d69337068533fa319ce5b6c93b2bc77174724dea0faf3ae0d175c601b + ssa_ast: e760365b9914eb6430a307a951b12ef0a9486cfc22a59271bbdfaace390dbb13 diff --git a/tests/expectations/compiler/integers/u32/lt.out b/tests/expectations/compiler/integers/u32/lt.out new file mode 100644 index 0000000000..3a21574a0b --- /dev/null +++ b/tests/expectations/compiler/integers/u32/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2bf35687c6b599cdd27e9357d4c909560d9333894df8371d8bdeeabec7e3b000 + - initial_input_ast: 4b6e56b6a0f3cb8453256560f005a11d753584cec14158e06b31796a46358fb2 + initial_ast: be306a469d7a06d4a9177da07d8d45f8973a32b655756dc9d9f072ef8c6018d7 + unrolled_ast: be306a469d7a06d4a9177da07d8d45f8973a32b655756dc9d9f072ef8c6018d7 + ssa_ast: dcc15c786183212cbccf672132212fba1dc23f4ccaf657206c719a676fcf9851 diff --git a/tests/expectations/compiler/integers/u32/max.out b/tests/expectations/compiler/integers/u32/max.out new file mode 100644 index 0000000000..a27d069d98 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 76a0fe2199754831329d9b089d2c02f73d7457aaed6548372169318675b85f48 + initial_ast: 1059615bf37daf6664a6205c42660b42b39b2df4c078d073d7be006235ab3b5f + unrolled_ast: 1059615bf37daf6664a6205c42660b42b39b2df4c078d073d7be006235ab3b5f + ssa_ast: 6b2c00edb11c4d3d77e8552d2b2684120853ffb9d19b4790ef5032016d02095f diff --git a/tests/expectations/compiler/integers/u32/max_fail.out b/tests/expectations/compiler/integers/u32/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u32/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u32/min.out b/tests/expectations/compiler/integers/u32/min.out new file mode 100644 index 0000000000..1493a1d32e --- /dev/null +++ b/tests/expectations/compiler/integers/u32/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c7cfa681865a1c0623cfd356162d0c6750f3e06fb72126585eace0aeb21bae77 + initial_ast: 21cb471c85400a751acbd3a432f9b9e61b68130495b787fc1c683978d2c3a889 + unrolled_ast: 21cb471c85400a751acbd3a432f9b9e61b68130495b787fc1c683978d2c3a889 + ssa_ast: af060ef68f1c6f3894f8138b81a3c9c37fe18d91062b0e5290e2605ab50ccbe6 diff --git a/tests/expectations/compiler/integers/u32/min_fail.out b/tests/expectations/compiler/integers/u32/min_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u32/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u32/mul.out b/tests/expectations/compiler/integers/u32/mul.out new file mode 100644 index 0000000000..047553b391 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 546123213cad63ac213c6afeba106d3f0ca69f150c1b65342081d710eec7c7df + initial_ast: 5f0fb707f6c7dc6d08bd3c50475b634a262859b71b6e74a09d0d6fa017f29bb0 + unrolled_ast: 5f0fb707f6c7dc6d08bd3c50475b634a262859b71b6e74a09d0d6fa017f29bb0 + ssa_ast: 33c0f720342f316a8c15e6b427ee3b948f3b4e6600fbc124570cb2d5445d4a23 diff --git a/tests/expectations/compiler/integers/u32/ne.out b/tests/expectations/compiler/integers/u32/ne.out new file mode 100644 index 0000000000..93e6edb3aa --- /dev/null +++ b/tests/expectations/compiler/integers/u32/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1f678103b8b79449301a7755180eabc64cdd0d844548634e04c31f7c75cada2a + - initial_input_ast: 9ba4eacac243edafb1cc7fd490b92a8e2ef9f8023eb552a7655403acae9a5adb + initial_ast: 83678bda6584a3ec3d147b51ede70e3f9b29ff157fb497a26d29c9cdba1f5994 + unrolled_ast: 83678bda6584a3ec3d147b51ede70e3f9b29ff157fb497a26d29c9cdba1f5994 + ssa_ast: 54700cab9eb20a1e949a9ae943331bb53155d9bf651077c0f15af1cdeddc8f4b diff --git a/tests/expectations/compiler/integers/u32/no_space_between_literal.out b/tests/expectations/compiler/integers/u32/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u32/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u32/operator_methods.out b/tests/expectations/compiler/integers/u32/operator_methods.out new file mode 100644 index 0000000000..35b1867646 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 907decb03860d1163454d2b5b01e1034a748fd40b4d773e7f6b9130a11edf301 + initial_ast: ce0e3d994459bc18e2ff67a33b6723513c5d282048b4b93de562e569fc363432 + unrolled_ast: ce0e3d994459bc18e2ff67a33b6723513c5d282048b4b93de562e569fc363432 + ssa_ast: fed5258a6b13288517432b3254570f7b03cf4667ee8f806b9242bfc47563f26f diff --git a/tests/expectations/compiler/integers/u32/or.out b/tests/expectations/compiler/integers/u32/or.out new file mode 100644 index 0000000000..e9c2accd36 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4ae3fcda756be204242383a3b61c067cdfe8b565664f0a30d5940ba4f7266e8a + initial_ast: cc67bc116776d5445c822fe12427a2acddde99e62d79e0664fe06d2dd940e239 + unrolled_ast: cc67bc116776d5445c822fe12427a2acddde99e62d79e0664fe06d2dd940e239 + ssa_ast: 2410952c551357f0173c5a0147473771d8b821fc634146f187b8978f60d80c47 diff --git a/tests/expectations/compiler/integers/u32/pow.out b/tests/expectations/compiler/integers/u32/pow.out new file mode 100644 index 0000000000..6122f43906 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9b4fc7b86cfff53c6ce2de0e0b45e96f28f8f12e7cbe9780e1b863841bddb802 + initial_ast: 547fd062021acab192bedd0629dc407e095a93dfde0e12467fb6ec7b0266f56f + unrolled_ast: 547fd062021acab192bedd0629dc407e095a93dfde0e12467fb6ec7b0266f56f + ssa_ast: 7de34f31b2ff9b2d69bdafd23358bb180704074719fdbf03970f5127460add16 diff --git a/tests/expectations/compiler/integers/u32/shl.out b/tests/expectations/compiler/integers/u32/shl.out new file mode 100644 index 0000000000..c4d6d3e962 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3d9702d3e9990e8ae833c893cbd678a03963e7cd6d9ced5c5ef82850bce77059 + initial_ast: 88dd8688192f2baca7978e8a6c014bd6da14fd412f985becf6615f8b377d9e34 + unrolled_ast: 88dd8688192f2baca7978e8a6c014bd6da14fd412f985becf6615f8b377d9e34 + ssa_ast: 67876633d787a6ad09afae8d9f9907c6c0bd7fdaf0966954ab665f1ab7e23b54 diff --git a/tests/expectations/compiler/integers/u32/shr.out b/tests/expectations/compiler/integers/u32/shr.out new file mode 100644 index 0000000000..a0e1169358 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3d9702d3e9990e8ae833c893cbd678a03963e7cd6d9ced5c5ef82850bce77059 + initial_ast: fc264178c4a7c17c80f5991a14ce3ae69fb46935ab490781e071d495a551eca1 + unrolled_ast: fc264178c4a7c17c80f5991a14ce3ae69fb46935ab490781e071d495a551eca1 + ssa_ast: d8130d9536897715b41775cdbbada599919839c64211ae28a87eebeb428355fe diff --git a/tests/expectations/compiler/integers/u32/sub.out b/tests/expectations/compiler/integers/u32/sub.out new file mode 100644 index 0000000000..ebd4ffa99a --- /dev/null +++ b/tests/expectations/compiler/integers/u32/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e87b936c82f37cf42b7963346a659b9dc14c5c09386e3bf792c4f4b72214ecca + initial_ast: 7dd1d20d3aa695da274111e8b8ed6a826831fd4a1e9b1183bb682e665758c1a9 + unrolled_ast: 7dd1d20d3aa695da274111e8b8ed6a826831fd4a1e9b1183bb682e665758c1a9 + ssa_ast: aaf11bcbe37e88d2311a6c98601e05f60a6eb3f9d3c3a71eb8441530ee8028d4 diff --git a/tests/expectations/compiler/integers/u32/ternary.out b/tests/expectations/compiler/integers/u32/ternary.out new file mode 100644 index 0000000000..bdb212177b --- /dev/null +++ b/tests/expectations/compiler/integers/u32/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a9185aec47cddbf08cb487e40ac62991cb884eff4e0d87f4aaacbe5432a854fa + - initial_input_ast: 835e18dfc6dcfe2837cf2b959884fe9659e4d74d6f4faf3a759b2ffeb517a5a9 + initial_ast: 3f7adea34f1961d45a9c58950647c22943986fdca7d69da115ff6ea96967e860 + unrolled_ast: 3f7adea34f1961d45a9c58950647c22943986fdca7d69da115ff6ea96967e860 + ssa_ast: d2e573f4c4050997c9114a8dd06f7cfc92f171371696e32e9f4eafb7129c96d7 diff --git a/tests/expectations/compiler/integers/u32/xor.out b/tests/expectations/compiler/integers/u32/xor.out new file mode 100644 index 0000000000..9db3b82cbb --- /dev/null +++ b/tests/expectations/compiler/integers/u32/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 11b11228858e335f8bf609bdb2371f741ecfb95b636e8835e583fbd9125d67d9 + initial_ast: 7b603351c155a2153e64a21c9e43b8b04efeb6ba5d54bc035baab1ba74699e03 + unrolled_ast: 7b603351c155a2153e64a21c9e43b8b04efeb6ba5d54bc035baab1ba74699e03 + ssa_ast: 93cd00b082f4c94e3d8e1a8b1edc5ef6fe4f640a87d3d39ec435920385fe6c5d diff --git a/tests/expectations/compiler/integers/u64/add.out b/tests/expectations/compiler/integers/u64/add.out new file mode 100644 index 0000000000..199f12923a --- /dev/null +++ b/tests/expectations/compiler/integers/u64/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5f0da349bc0cc127fd729d94bd9a17313acc2a712b2375e884ac07efaf2673ae + initial_ast: 7d2050c140233b86fd4d3b4ccf5a442d4bad8bf04b31a2a5c548e6e2acdc2add + unrolled_ast: 7d2050c140233b86fd4d3b4ccf5a442d4bad8bf04b31a2a5c548e6e2acdc2add + ssa_ast: 4eb9297ac985ce0a341cb0ecebb8afe4a5e202a991f0e19fe3e8236d8b9752ed diff --git a/tests/expectations/compiler/integers/u64/and.out b/tests/expectations/compiler/integers/u64/and.out new file mode 100644 index 0000000000..b673493984 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5f0da349bc0cc127fd729d94bd9a17313acc2a712b2375e884ac07efaf2673ae + initial_ast: 83f2b4de259e44ad6a5ece8b2e93ab3141b1a7e9e43574998f315bf0b9d4b3e9 + unrolled_ast: 83f2b4de259e44ad6a5ece8b2e93ab3141b1a7e9e43574998f315bf0b9d4b3e9 + ssa_ast: ad8ead524da3e15e0fdf5f2e06dd5e6cae7e23cb26926d53cabb31a7104c0cb3 diff --git a/tests/expectations/compiler/integers/u64/console_assert.out b/tests/expectations/compiler/integers/u64/console_assert.out new file mode 100644 index 0000000000..7624d97150 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ffe727bd0e064f3c4f8b580e6817aaeb3a8f59a40fca63e69b2e162074b060df + initial_ast: e43517734ea3d4f139255f016e8c464cb653bfbca7c525f7dd2ae971c77cbf6a + unrolled_ast: e43517734ea3d4f139255f016e8c464cb653bfbca7c525f7dd2ae971c77cbf6a + ssa_ast: c41eb659cf8bfd9dced9d0efcb1a0a3fcbccc6db342b01e2e09e5f7659689076 diff --git a/tests/expectations/compiler/integers/u64/div.out b/tests/expectations/compiler/integers/u64/div.out new file mode 100644 index 0000000000..e5524ea585 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6824ff7cf3bf1848c9697340221c23ed27db55bd35fa0e3d4a51afb342dca798 + initial_ast: 7a325948a4addeb3a0ad61c64654a81e8e36b5fb4eb02fff37ea61e53ab0fcd0 + unrolled_ast: 7a325948a4addeb3a0ad61c64654a81e8e36b5fb4eb02fff37ea61e53ab0fcd0 + ssa_ast: 49ac2333f36f58ea737dcbd745704a8a123c40abcee28dc33dbbb84bfcb983e4 diff --git a/tests/expectations/compiler/integers/u64/eq.out b/tests/expectations/compiler/integers/u64/eq.out new file mode 100644 index 0000000000..6011aa2f5a --- /dev/null +++ b/tests/expectations/compiler/integers/u64/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a30d87edb4b5e4228844a032596e7140e5c7c2c238a1a5ac1b0b551fd6994b18 + initial_ast: 4d9fcb269daf6a367b08d76663bbf789c6587c4491c9e83e14433682f9dcf36c + unrolled_ast: 4d9fcb269daf6a367b08d76663bbf789c6587c4491c9e83e14433682f9dcf36c + ssa_ast: eabcf817caf0ba712c8f777b82bb24351187b8a4fc1e203f1d90fe04c00e58ff diff --git a/tests/expectations/compiler/integers/u64/ge.out b/tests/expectations/compiler/integers/u64/ge.out new file mode 100644 index 0000000000..f560e6bf51 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b4a2c614c8818d8c909889e083ead68d447d8b2a1d805e0f9ab559012e55d9b1 + - initial_input_ast: eca84ae5626a42e56bf16e86c3ae507b8043a9beebd8c822da2cec5af5ea4ff7 + initial_ast: c621e50b4709a131fceaf4cb02fa1703fa1822e9e6d49ab6d73f1c2b94873040 + unrolled_ast: c621e50b4709a131fceaf4cb02fa1703fa1822e9e6d49ab6d73f1c2b94873040 + ssa_ast: 480d2c7b99187672a2b2c8c9a885085a3231c53b68024c1c8ed4a36b0e8cc817 diff --git a/tests/expectations/compiler/integers/u64/gt.out b/tests/expectations/compiler/integers/u64/gt.out new file mode 100644 index 0000000000..9a145fd45f --- /dev/null +++ b/tests/expectations/compiler/integers/u64/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d90e3ab82224d91c5a023143ddd98de3f6597d2bf9c4bbebce33b4bbff780dbf + - initial_input_ast: b3203b60625dcbfc58481812d0b61fc6e3c9b23a1a60a6087ed75652c73d4de1 + initial_ast: 28b84f16425d5e143b7b2291bf469ee3f3d0a775d0f5df9a1c24edd1b5f54117 + unrolled_ast: 28b84f16425d5e143b7b2291bf469ee3f3d0a775d0f5df9a1c24edd1b5f54117 + ssa_ast: 47a0dca594b38a81e6f8ee2df60508650fc3ef6017129394ede8a01d30a81dc0 diff --git a/tests/expectations/compiler/integers/u64/le.out b/tests/expectations/compiler/integers/u64/le.out new file mode 100644 index 0000000000..fc631a93de --- /dev/null +++ b/tests/expectations/compiler/integers/u64/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b4a2c614c8818d8c909889e083ead68d447d8b2a1d805e0f9ab559012e55d9b1 + - initial_input_ast: 9a30e6239a8777c12b21a658af4d97e393fbda720dd9f6890edbcbcf52fd82dd + initial_ast: 68ebc3ff677336c2dac95b2fd24b3c8bd3b5167475f55480f505de6f197b9dc2 + unrolled_ast: 68ebc3ff677336c2dac95b2fd24b3c8bd3b5167475f55480f505de6f197b9dc2 + ssa_ast: c0d96c1ff0f2bdbee2b389008c7dbce6e4f7b5b2cd529454d21bb978a3e08621 diff --git a/tests/expectations/compiler/integers/u64/lt.out b/tests/expectations/compiler/integers/u64/lt.out new file mode 100644 index 0000000000..49300db485 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f480fbac737ff71dd5517371e2c8b974ec8e7f0d76f1cf95c071647838dd26bb + - initial_input_ast: 5d86162c8dd4157286ebdde26ba2738b2c09a077b09f50081f9f2ae6815f8d5a + initial_ast: fa17537dee8090ede3b8240b5a960d699efa4fd0408bacd119a443c2b69f65bc + unrolled_ast: fa17537dee8090ede3b8240b5a960d699efa4fd0408bacd119a443c2b69f65bc + ssa_ast: 753b2966c71ab5f881fadfd9f9720bafa4fa1aaabd43ce1692c6c7936a1c3844 diff --git a/tests/expectations/compiler/integers/u64/max.out b/tests/expectations/compiler/integers/u64/max.out new file mode 100644 index 0000000000..7f45d78cc4 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ad738add6c03b6224ccba9d8d735b6645444f9c16f3b652ec4c0903fa4bb33aa + initial_ast: 408f90c719a52bbf126e16231e3286f786a564cfa0e80e6f2fa4a4fc8bc84786 + unrolled_ast: 408f90c719a52bbf126e16231e3286f786a564cfa0e80e6f2fa4a4fc8bc84786 + ssa_ast: 3999e1997f8e846c1c21ba57b0484d3793ad9f73b2090c87c793c1a83fb506fc diff --git a/tests/expectations/compiler/integers/u64/max_fail.out b/tests/expectations/compiler/integers/u64/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u64/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u64/min.out b/tests/expectations/compiler/integers/u64/min.out new file mode 100644 index 0000000000..287b0ec56c --- /dev/null +++ b/tests/expectations/compiler/integers/u64/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c7cfa681865a1c0623cfd356162d0c6750f3e06fb72126585eace0aeb21bae77 + initial_ast: c696a0f554211e2b57e1ec12d43a209059e408e0123d5e5dbd5ced6d66120666 + unrolled_ast: c696a0f554211e2b57e1ec12d43a209059e408e0123d5e5dbd5ced6d66120666 + ssa_ast: d7bc1907588c06c678b4be44395a52302e5e88efd3a9f85d5d8db71490aa5dfb diff --git a/tests/expectations/compiler/integers/u64/min_fail.out b/tests/expectations/compiler/integers/u64/min_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u64/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u64/mul.out b/tests/expectations/compiler/integers/u64/mul.out new file mode 100644 index 0000000000..ef226a82d1 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b08335847b9ad7ff1fd1bc85da101950a3bd737aa7339aec6dea798f8bcc0c62 + initial_ast: d60be393992dead9e4403c3fbc58a631b4f66cc343ed7af540bbc8b211b87262 + unrolled_ast: d60be393992dead9e4403c3fbc58a631b4f66cc343ed7af540bbc8b211b87262 + ssa_ast: 89ef5c482b7e883d2c4c03df1c4d8336c9f574f465022dd23ad1c012dbf3e739 diff --git a/tests/expectations/compiler/integers/u64/ne.out b/tests/expectations/compiler/integers/u64/ne.out new file mode 100644 index 0000000000..b35e41cbf5 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 19ccd8355c28de11d696f353eebeb35a92372d6aec6be93fca97ebe917117c89 + - initial_input_ast: fb901b45b5aaee305521668ae9e9edb15cc7cd0cd81814069e06d979a9371ce9 + initial_ast: 4df6c2814550170f7619a8a00fb42c932c348400ae7540600bae2a60331b68f8 + unrolled_ast: 4df6c2814550170f7619a8a00fb42c932c348400ae7540600bae2a60331b68f8 + ssa_ast: 280f8c9cf5a9d337e10a54be60c8915c708148e9b39628e26882b05f792fb761 diff --git a/tests/expectations/compiler/integers/u64/no_space_between_literal.out b/tests/expectations/compiler/integers/u64/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u64/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u64/operator_methods.out b/tests/expectations/compiler/integers/u64/operator_methods.out new file mode 100644 index 0000000000..71bf2166c0 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 58dc0a83c33aaa0f6ccbc5c4441afc1731f3786e885421af64b00c79256cc1c7 + initial_ast: 439c9cbb5790ad633c223f55f00f440c943a8016dc5bc7a1ab6ab289111b70e7 + unrolled_ast: 439c9cbb5790ad633c223f55f00f440c943a8016dc5bc7a1ab6ab289111b70e7 + ssa_ast: 916f159d3180cd849f9888f45d9e85563bb905baaf8949b95ca0972c79e1aec9 diff --git a/tests/expectations/compiler/integers/u64/or.out b/tests/expectations/compiler/integers/u64/or.out new file mode 100644 index 0000000000..2ed86ec55f --- /dev/null +++ b/tests/expectations/compiler/integers/u64/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5f0da349bc0cc127fd729d94bd9a17313acc2a712b2375e884ac07efaf2673ae + initial_ast: c23f5c849ac000df9897be0176e38bd8cba55ee5e2c4808f2dd9dd001f2242fb + unrolled_ast: c23f5c849ac000df9897be0176e38bd8cba55ee5e2c4808f2dd9dd001f2242fb + ssa_ast: 37f82d84f8ad1904eb3a331c38867c9898fe83fcdaade5074912fb47a8c644cd diff --git a/tests/expectations/compiler/integers/u64/pow.out b/tests/expectations/compiler/integers/u64/pow.out new file mode 100644 index 0000000000..879c55ff94 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 124c63b86afdb483e1ecd1e917b68627e1cf503f728213235e860ee8f17108c5 + initial_ast: 1ab1ae9559dc3be4ced54c6699d7f4a2b2ffe1f1cb61289761e88f0e87233119 + unrolled_ast: 1ab1ae9559dc3be4ced54c6699d7f4a2b2ffe1f1cb61289761e88f0e87233119 + ssa_ast: 25e60dd3fa0fdfa3c5daab42c68b69ab8125e09230ef4e4e622207d4f00d4be5 diff --git a/tests/expectations/compiler/integers/u64/shl.out b/tests/expectations/compiler/integers/u64/shl.out new file mode 100644 index 0000000000..cbebbf9bc9 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 73e39e8df0b0dbcde45e1965fe098a688eacc3c2a88464e943f0a9cf5eaeed35 + initial_ast: 61289dc5f8014bf445cf3b37e5bbb84c9a55eda14f8f8f18e5732d63ffcc01f4 + unrolled_ast: 61289dc5f8014bf445cf3b37e5bbb84c9a55eda14f8f8f18e5732d63ffcc01f4 + ssa_ast: efb7bb42483766d83f0e7d5c3999bb402e035b3c62c9c71010be9ea1c912160d diff --git a/tests/expectations/compiler/integers/u64/shr.out b/tests/expectations/compiler/integers/u64/shr.out new file mode 100644 index 0000000000..54a3210d21 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 73e39e8df0b0dbcde45e1965fe098a688eacc3c2a88464e943f0a9cf5eaeed35 + initial_ast: 54aa3493a612a30bfd347dd4809661c0b3600e50a7c3b62f70542a8777d29bb4 + unrolled_ast: 54aa3493a612a30bfd347dd4809661c0b3600e50a7c3b62f70542a8777d29bb4 + ssa_ast: 3cfa7033e1a4d9bbe261fb07dc50e00920fc01110b4169e2dc5a05edd1c6507f diff --git a/tests/expectations/compiler/integers/u64/sub.out b/tests/expectations/compiler/integers/u64/sub.out new file mode 100644 index 0000000000..f45a3b5424 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 037a91c8ce566bd11e1c3fead1de1b913fdece7cda25fda8b140a48fe6ed8e18 + initial_ast: b1d74b54a8858578ff359461d7f2eee75bfae9468e366654893945499df525d2 + unrolled_ast: b1d74b54a8858578ff359461d7f2eee75bfae9468e366654893945499df525d2 + ssa_ast: 9c89ea9e7094c9274cfa980fbf9bf41288d22df2712d68b0b7d524da70551f63 diff --git a/tests/expectations/compiler/integers/u64/ternary.out b/tests/expectations/compiler/integers/u64/ternary.out new file mode 100644 index 0000000000..fa70810538 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4450f5a11abdb8fc9b562c7aa9ca3aca3a9334124c635a0e28ae4168908f1bc1 + - initial_input_ast: 50119550f6c8019f7b05f4af5b542c1fe2167cd02c9e89760e82cacf40d3540c + initial_ast: 8b1ce5ee0743a80bc0cad666886dfaf8401d82cd5abcc5e7e90bfb12d648433c + unrolled_ast: 8b1ce5ee0743a80bc0cad666886dfaf8401d82cd5abcc5e7e90bfb12d648433c + ssa_ast: 327d6b359e7d201267d2a4bec86879be531f39ef3abd97947f7c99fbffaf750e diff --git a/tests/expectations/compiler/integers/u64/xor.out b/tests/expectations/compiler/integers/u64/xor.out new file mode 100644 index 0000000000..00399503a9 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 78b3b31c4ce65112e8aa5ffb43d266d6ac030f1f623e59a951bb9ef022b426f6 + initial_ast: 370728de721b2710a76cb736d3ec61d9cbed0409b990a69662ce121a666b4fcf + unrolled_ast: 370728de721b2710a76cb736d3ec61d9cbed0409b990a69662ce121a666b4fcf + ssa_ast: e75dad28720e5e4cd5025e5726dd1349e99e8dfb6e1be2b5525540bd3ff58ac0 diff --git a/tests/expectations/compiler/integers/u8/add.out b/tests/expectations/compiler/integers/u8/add.out new file mode 100644 index 0000000000..dbc6c87ac3 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d0f3e37c62ac7e5546a31310c8128be2dd63e29ea4fa420f94e30c87a1fa7ac9 + initial_ast: 6cb728c26879e2116c79f09bf6c3f082c6bec6ffebdb58c7b678219af41b41e3 + unrolled_ast: 6cb728c26879e2116c79f09bf6c3f082c6bec6ffebdb58c7b678219af41b41e3 + ssa_ast: fc89379f182cd15cb4ccfaf9add5b14e639cf31007008b56024e1477b53f5d0a diff --git a/tests/expectations/compiler/integers/u8/and.out b/tests/expectations/compiler/integers/u8/and.out new file mode 100644 index 0000000000..1c40c76193 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/and.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d0f3e37c62ac7e5546a31310c8128be2dd63e29ea4fa420f94e30c87a1fa7ac9 + initial_ast: 2e82a7e0522ba866877caec94779bec5ee56107e52fd7fc3ff4cab0963d67f66 + unrolled_ast: 2e82a7e0522ba866877caec94779bec5ee56107e52fd7fc3ff4cab0963d67f66 + ssa_ast: 7fcb1d75143cd8c7f31f2b6d408f13c379d59de68908b2d1d8ddcb6e4b7d9602 diff --git a/tests/expectations/compiler/integers/u8/console_assert.out b/tests/expectations/compiler/integers/u8/console_assert.out new file mode 100644 index 0000000000..9f773bf29b --- /dev/null +++ b/tests/expectations/compiler/integers/u8/console_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d2efab25011fe4638baa7285769822f2dc76fccadc1bb8b47dfb0e5a9cd4afeb + initial_ast: d3271992622fe1567c51c3d2515cb377fff7f569af76f75e45a00e14867a3aa1 + unrolled_ast: d3271992622fe1567c51c3d2515cb377fff7f569af76f75e45a00e14867a3aa1 + ssa_ast: ea86efd2a343acf1e77808157514b830712db5c7d2bdad92f40ad62598011a71 diff --git a/tests/expectations/compiler/integers/u8/div.out b/tests/expectations/compiler/integers/u8/div.out new file mode 100644 index 0000000000..f37ac96234 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/div.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 75c65019abb9d4d2b03ca454d75070980c5eddfd4a3f55105da62dc462e6f2b4 + initial_ast: f7eb9aca3628c06ec36113984d3580a416425559d24cde6fa226e4b315ce121c + unrolled_ast: f7eb9aca3628c06ec36113984d3580a416425559d24cde6fa226e4b315ce121c + ssa_ast: 6b6e3cda1e952b6fc319524d5cdb1f5d55e61a4d1b0ea4948c83812858ce5f28 diff --git a/tests/expectations/compiler/integers/u8/eq.out b/tests/expectations/compiler/integers/u8/eq.out new file mode 100644 index 0000000000..1366bc2c79 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 52c6f13316dac6cd775fd0ed87c85b2193ce7ce98e4af5fe90a02228b91bd436 + initial_ast: 305b0859c3b385dfec3449debe9b45a171b7c4bc22d67b14a5c982cce3d158bb + unrolled_ast: 305b0859c3b385dfec3449debe9b45a171b7c4bc22d67b14a5c982cce3d158bb + ssa_ast: b1cb02bf1311b99972ad9b20c8ee787a75b98e0b320903cba5b99cf9a9c0e24d diff --git a/tests/expectations/compiler/integers/u8/ge.out b/tests/expectations/compiler/integers/u8/ge.out new file mode 100644 index 0000000000..635f395131 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/ge.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 363f50e3854bd4f21cbf7a504c5c2115a80957b3fb1a57c02d53d9641b4ba75f + - initial_input_ast: 904d8fd6014d774459898b77c719aad7b8022aa655b5deb9d6c2a721d7764dca + initial_ast: d741e37f6dddfeb676b42c3ae18ddeeb42d284586ccb7d3005fa30305d4088e7 + unrolled_ast: d741e37f6dddfeb676b42c3ae18ddeeb42d284586ccb7d3005fa30305d4088e7 + ssa_ast: fd55bcaac50d9d88f00f3cba33c1d0c9d1a46f9e297655c8e92f34ab5340faab diff --git a/tests/expectations/compiler/integers/u8/gt.out b/tests/expectations/compiler/integers/u8/gt.out new file mode 100644 index 0000000000..273644b438 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/gt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 11dfe30414af52cd3789b4661b5321703b3f7c59c1d56156453f017216549638 + - initial_input_ast: 3e57abe0efb9f8f96288dc4e5483d2bae4bfbfdf17656e06939dc902f22bfc06 + initial_ast: 5cb07961697f1b453397b716f646c1d06036dc0af885bd9738eb1a20ab8d6270 + unrolled_ast: 5cb07961697f1b453397b716f646c1d06036dc0af885bd9738eb1a20ab8d6270 + ssa_ast: a7e413d5ae2f6c2f0dff15088b720d40d81279e8aa2b3ce7acb4046bc649a176 diff --git a/tests/expectations/compiler/integers/u8/le.out b/tests/expectations/compiler/integers/u8/le.out new file mode 100644 index 0000000000..83fbf84388 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/le.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 363f50e3854bd4f21cbf7a504c5c2115a80957b3fb1a57c02d53d9641b4ba75f + - initial_input_ast: e258c10edaaa1e75317f18338d4401727c00bc1f4ff31b63d6dd2d3c4055786a + initial_ast: aafa797f7510cb68a000c519cba95c1d9d3df572ed5798c7e6f952b38afa4f2e + unrolled_ast: aafa797f7510cb68a000c519cba95c1d9d3df572ed5798c7e6f952b38afa4f2e + ssa_ast: 5d9776e262da19fb4fc40f794e986c33c93f4d5d9a87230d16c94d08ea699670 diff --git a/tests/expectations/compiler/integers/u8/lt.out b/tests/expectations/compiler/integers/u8/lt.out new file mode 100644 index 0000000000..63f95863f9 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/lt.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f6f717332c3b7db6fb3cce23f081b8889744d750647472938f65fc22bba75d3 + - initial_input_ast: 070b47a3460318982ab945e6c9fb89c68207b3388126f8daadb463fa669834ed + initial_ast: e0a50bc740dd5465240944e4e8da80062a8f2b0cf95051e1fcd5b912f593bbee + unrolled_ast: e0a50bc740dd5465240944e4e8da80062a8f2b0cf95051e1fcd5b912f593bbee + ssa_ast: d9876c716030d0172a18dd401d66b67afa00c976ecb29fd1654f7b6e88d0538f diff --git a/tests/expectations/compiler/integers/u8/max.out b/tests/expectations/compiler/integers/u8/max.out new file mode 100644 index 0000000000..0a2a8ab465 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/max.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c7cfa681865a1c0623cfd356162d0c6750f3e06fb72126585eace0aeb21bae77 + initial_ast: b6a1a46467e61d42768094825c2b306a5b60633ebf36e18bdf16405466643af2 + unrolled_ast: b6a1a46467e61d42768094825c2b306a5b60633ebf36e18bdf16405466643af2 + ssa_ast: 13267afa29c0abf75e9c28e08800122a4147cc1b31d3013326e3321c9a4a965e diff --git a/tests/expectations/compiler/integers/u8/max_fail.out b/tests/expectations/compiler/integers/u8/max_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u8/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u8/min.out b/tests/expectations/compiler/integers/u8/min.out new file mode 100644 index 0000000000..62b4d6bb1b --- /dev/null +++ b/tests/expectations/compiler/integers/u8/min.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 13720f61f86be3462e6829a230cb85abd2ea7a3e406c03bad349c0580839fd1b + initial_ast: 7fabfaa9c74d411896fa0061d36170820ce473f354eeefe2df5ca2b3e27d98af + unrolled_ast: 7fabfaa9c74d411896fa0061d36170820ce473f354eeefe2df5ca2b3e27d98af + ssa_ast: ae27eb9ed5e504078830c3a2c7805081da2c84aa9eeabdabd6edd57764fa501d diff --git a/tests/expectations/compiler/integers/u8/min_fail.out b/tests/expectations/compiler/integers/u8/min_fail.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u8/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u8/mul.out b/tests/expectations/compiler/integers/u8/mul.out new file mode 100644 index 0000000000..b3f0ad27d1 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/mul.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: dc88d1ee78f1dcf6e0c6680c832d10071756ed9b0430d61032df953dc09697f1 + initial_ast: e9bb0a4f4770740bdccccfb26c6e19dc6bd3aa76884f140af0f6d35c4b1d1998 + unrolled_ast: e9bb0a4f4770740bdccccfb26c6e19dc6bd3aa76884f140af0f6d35c4b1d1998 + ssa_ast: 09a5032c583c395cbafa98742170d664e8cfe0e46c0294f3c2db7451a71cd837 diff --git a/tests/expectations/compiler/integers/u8/ne.out b/tests/expectations/compiler/integers/u8/ne.out new file mode 100644 index 0000000000..526e4c51bb --- /dev/null +++ b/tests/expectations/compiler/integers/u8/ne.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c689cc64548f987ae996743a1221fc7dc2f29c265f21f08e8f883383cf0e4f2b + - initial_input_ast: 9322acfd66d611ebc2ed47adc1c9cce394287216103578c2c822bec1318d6d1a + initial_ast: 881750c7d9851577a8d398f41834366d48c5e72d65e7d9ef0939bf2e2a986412 + unrolled_ast: 881750c7d9851577a8d398f41834366d48c5e72d65e7d9ef0939bf2e2a986412 + ssa_ast: 6b958ac6da5fbc801a0ca1af8fcb33f60bd4bfa37762327a4b1a0e40a844b956 diff --git a/tests/expectations/compiler/integers/u8/no_space_between_literal.out b/tests/expectations/compiler/integers/u8/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/integers/u8/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/integers/u8/operator_methods.out b/tests/expectations/compiler/integers/u8/operator_methods.out new file mode 100644 index 0000000000..cf3af94539 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c3b116f4488d161d75436a017fb2cbef40813da29efcbe6f841eb8933101e1b9 + initial_ast: f0eb1b31e1e5bca816153e30e3c16e5ad5fc289a28a4b357bd58e24795e1bb1e + unrolled_ast: f0eb1b31e1e5bca816153e30e3c16e5ad5fc289a28a4b357bd58e24795e1bb1e + ssa_ast: 5c3543ad65a2d2b9beb68409212b8ef4690daf9b12226f5f5eeef89d9659bc7a diff --git a/tests/expectations/compiler/integers/u8/or.out b/tests/expectations/compiler/integers/u8/or.out new file mode 100644 index 0000000000..93591767f9 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/or.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d0f3e37c62ac7e5546a31310c8128be2dd63e29ea4fa420f94e30c87a1fa7ac9 + initial_ast: c72a6da36ca21cb600004dd195e72f5cdf4d335c4b2e01ff04c6f3adc90b6d62 + unrolled_ast: c72a6da36ca21cb600004dd195e72f5cdf4d335c4b2e01ff04c6f3adc90b6d62 + ssa_ast: 278ab1a5ef8ea9349b7198b21509c9b3c8a4e8c66d5ede34935608d301250130 diff --git a/tests/expectations/compiler/integers/u8/pow.out b/tests/expectations/compiler/integers/u8/pow.out new file mode 100644 index 0000000000..878655dbe2 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/pow.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b55eee822a4ad904943e328fec4c781891b6e783610dc30b0ed96ba09fb92f7f + initial_ast: a984f6f6b248e4b67c52d21b84148c63e0242d8b8722556f7c961513571d291e + unrolled_ast: a984f6f6b248e4b67c52d21b84148c63e0242d8b8722556f7c961513571d291e + ssa_ast: 3af1406ea476007f2e5cf104b681cbb9c3064a4e46a8ba70b8cf113f14de3018 diff --git a/tests/expectations/compiler/integers/u8/shl.out b/tests/expectations/compiler/integers/u8/shl.out new file mode 100644 index 0000000000..d6a272e0c3 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/shl.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a047688deafc90ee0a7106bb8673139ab51d00958ede28d18194573e3b101c20 + initial_ast: ba8e563e5da826bf441e53a8186b415b0c6d824c372b8d2a416ec04215021eb0 + unrolled_ast: ba8e563e5da826bf441e53a8186b415b0c6d824c372b8d2a416ec04215021eb0 + ssa_ast: d6a3e47fe4fc44393d17362cd32f9c598e2933c91c5d4d7416126eee91501c17 diff --git a/tests/expectations/compiler/integers/u8/shr.out b/tests/expectations/compiler/integers/u8/shr.out new file mode 100644 index 0000000000..40b083b9e0 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/shr.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a047688deafc90ee0a7106bb8673139ab51d00958ede28d18194573e3b101c20 + initial_ast: 6df9da2c7c88fd1037d8c03d9e0349ce3dad159e53f9558af1900844a8ac695a + unrolled_ast: 6df9da2c7c88fd1037d8c03d9e0349ce3dad159e53f9558af1900844a8ac695a + ssa_ast: 64d2d2db65c8286557a4e2306d068810d2cb20f3747fa1918cd2197e6b37367c diff --git a/tests/expectations/compiler/integers/u8/sub.out b/tests/expectations/compiler/integers/u8/sub.out new file mode 100644 index 0000000000..2e0c5dc52d --- /dev/null +++ b/tests/expectations/compiler/integers/u8/sub.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 81c6ce5338920cb12db8f9e0ee4d48b70c5db0749721fe3b93f4a10ca25ca78c + initial_ast: a9b94b29b5ef8f2dc23c3cf12110039f232accda0d0e02b3acb9fecd0afdac92 + unrolled_ast: a9b94b29b5ef8f2dc23c3cf12110039f232accda0d0e02b3acb9fecd0afdac92 + ssa_ast: dff3c8bd0f85b3018dc423825915842df6f6dbbd9c0c82a6fe3ed8015b495533 diff --git a/tests/expectations/compiler/integers/u8/ternary.out b/tests/expectations/compiler/integers/u8/ternary.out new file mode 100644 index 0000000000..4895de7992 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/ternary.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e3d0d7eec93a75e9229f9f7df388ac643dd0c8a5709dd87b8b9dcd33d7ac7dfe + - initial_input_ast: 9e11865bb074c2b2fe29b244e6f0455b3a2a776ad399c4a94a507160ac61d90f + initial_ast: 6887a6696e99967e2e83cb8bb1c11e71101f4b2b7cce5cf47e1f6fec67894568 + unrolled_ast: 6887a6696e99967e2e83cb8bb1c11e71101f4b2b7cce5cf47e1f6fec67894568 + ssa_ast: 1ea84d76059211f1a231621397e66d728c228f42d64b4b7506456f0895f9f3e1 diff --git a/tests/expectations/compiler/integers/u8/xor.out b/tests/expectations/compiler/integers/u8/xor.out new file mode 100644 index 0000000000..484cfcddde --- /dev/null +++ b/tests/expectations/compiler/integers/u8/xor.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 55992e9c7217caf5b515ab7c37df933849469e18118400e0231fddb6746d7bf5 + initial_ast: 9bd1c210831994e147c5ab6587cba2f55b2592fd4211a39a3d52f04826db1242 + unrolled_ast: 9bd1c210831994e147c5ab6587cba2f55b2592fd4211a39a3d52f04826db1242 + ssa_ast: 5ca87aeef1391c69776a6dc2f04c1a8a56769fcd943f0f3ec1a0c031ffc83f0c diff --git a/tests/expectations/compiler/records/balance_wrong_ty.out b/tests/expectations/compiler/records/balance_wrong_ty.out new file mode 100644 index 0000000000..547d014da3 --- /dev/null +++ b/tests/expectations/compiler/records/balance_wrong_ty.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372020]: The field `gates` in a `record` must have type `u64`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | gates: address,\n 6 | owner: address,\n 7 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/declaration.out b/tests/expectations/compiler/records/declaration.out new file mode 100644 index 0000000000..600b53e3db --- /dev/null +++ b/tests/expectations/compiler/records/declaration.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 821c447666f4f0e3ec05818c7e5ff8f228768ea9ea89e50cac3c9c4e2286cf83 + unrolled_ast: 821c447666f4f0e3ec05818c7e5ff8f228768ea9ea89e50cac3c9c4e2286cf83 + ssa_ast: f229b97b92b6e5517e0404a6ba5559c94df673c14ec8f4f10156828f05f4761f diff --git a/tests/expectations/compiler/records/duplicate_circuit_name_fail.out b/tests/expectations/compiler/records/duplicate_circuit_name_fail.out new file mode 100644 index 0000000000..d2a0d3a021 --- /dev/null +++ b/tests/expectations/compiler/records/duplicate_circuit_name_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372010]: record `Token` shadowed by\n --> compiler-test:12:1\n |\n 12 | circuit Token { // This circuit cannot have the same name as the record defined above it.\n 13 | x: u32,\n 14 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/duplicate_var_fail.out b/tests/expectations/compiler/records/duplicate_var_fail.out new file mode 100644 index 0000000000..e5a0582906 --- /dev/null +++ b/tests/expectations/compiler/records/duplicate_var_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372016]: Record Token defined with more than one variable with the same name.\n --> compiler-test:3:1\n |\n 3 | record Token {\n 4 | // The token owner.\n 5 | owner: address,\n 6 | // The token owner.\n 7 | owner: address, // Cannot define two record variables with the same name.\n 8 | // The Aleo balance (in gates).\n 9 | gates: u64,\n 10 | // The token amount.\n 11 | amount: u64,\n 12 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/init_expression.out b/tests/expectations/compiler/records/init_expression.out new file mode 100644 index 0000000000..711a75ff05 --- /dev/null +++ b/tests/expectations/compiler/records/init_expression.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 91a94b43e7599be7a8d284d8ed68af60521bf2f586c081c46571e6877d42423f + unrolled_ast: 91a94b43e7599be7a8d284d8ed68af60521bf2f586c081c46571e6877d42423f + ssa_ast: f8dd2e6a50e15fc6e503645342f37c1da08ce3a7c90e70f91ff0e9aeb3e20ef9 diff --git a/tests/expectations/compiler/records/init_expression_shorthand.out b/tests/expectations/compiler/records/init_expression_shorthand.out new file mode 100644 index 0000000000..5ed900f273 --- /dev/null +++ b/tests/expectations/compiler/records/init_expression_shorthand.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 1381798c7151d829ababe68636c8f60caa2c4ede84e0603cae658079b4ffdb89 + unrolled_ast: 1381798c7151d829ababe68636c8f60caa2c4ede84e0603cae658079b4ffdb89 + ssa_ast: a327e9edcf9b23898a9855c61eb03920816ee84c0ab0d71c84faa6169550e1b3 diff --git a/tests/expectations/compiler/records/init_expression_type_fail.out b/tests/expectations/compiler/records/init_expression_type_fail.out new file mode 100644 index 0000000000..2b77bbee7c --- /dev/null +++ b/tests/expectations/compiler/records/init_expression_type_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `address` but type `u64` was found\n --> compiler-test:12:28\n |\n 12 | function mint(r0: address, r1: u64) -> Token {\n | ^^\nError [ETYC0372003]: Expected type `u64` but type `address` was found\n --> compiler-test:12:15\n |\n 12 | function mint(r0: address, r1: u64) -> Token {\n | ^^\n" diff --git a/tests/expectations/compiler/records/init_expression_var_fail.out b/tests/expectations/compiler/records/init_expression_var_fail.out new file mode 100644 index 0000000000..9d4bc8f1f1 --- /dev/null +++ b/tests/expectations/compiler/records/init_expression_var_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372013]: Circuit initialization expression for `Token` is missing member `owner`.\n --> compiler-test:13:12\n |\n 13 | return Token {\n 14 | sender: r0, // This variable should be named `owner`.\n 15 | gates: 0u64,\n 16 | amount: r1,\n 17 | };\n | ^^^^^^\n" diff --git a/tests/expectations/compiler/records/no_owner_fail.out b/tests/expectations/compiler/records/no_owner_fail.out new file mode 100644 index 0000000000..7fb821fc91 --- /dev/null +++ b/tests/expectations/compiler/records/no_owner_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372019]: The `record` type requires the variable `owner: address`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | // The Aleo balance (in gates).\n 6 | gates: u64,\n 7 | // The token amount.\n 8 | amount: u64,\n 9 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/owner_wrong_ty.out b/tests/expectations/compiler/records/owner_wrong_ty.out new file mode 100644 index 0000000000..4dc59ed555 --- /dev/null +++ b/tests/expectations/compiler/records/owner_wrong_ty.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372020]: The field `owner` in a `record` must have type `address`.\n --> compiler-test:4:1\n |\n 4 | record Token {\n 5 | gates: u64,\n 6 | owner: bool,\n 7 | }\n | ^\n" diff --git a/tests/expectations/compiler/scalar/add.out b/tests/expectations/compiler/scalar/add.out new file mode 100644 index 0000000000..939f34deea --- /dev/null +++ b/tests/expectations/compiler/scalar/add.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c528268c53f01e78fbbc8af3ed5e0dc1d4e9b9f28644c597167971edef764cf0 + initial_ast: 267628fed05800b7d1b0d3218f30e6d614b38119d94fcf30be64e1e74cb68717 + unrolled_ast: 267628fed05800b7d1b0d3218f30e6d614b38119d94fcf30be64e1e74cb68717 + ssa_ast: b2e6c173eb839a726e82f149719c2d3f560e685482730ff066ec6371a67a50f7 diff --git a/tests/expectations/compiler/scalar/cmp.out b/tests/expectations/compiler/scalar/cmp.out new file mode 100644 index 0000000000..aad7fb9c9a --- /dev/null +++ b/tests/expectations/compiler/scalar/cmp.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8b51ce00d3448cda6f763ac1fbc6d14a2588dc0bc0d24eb423b5f417029b28c5 + initial_ast: 78ad22f7a7591585c256c097527f6697371a0788e2a4f298ba78dfa14bec5716 + unrolled_ast: 78ad22f7a7591585c256c097527f6697371a0788e2a4f298ba78dfa14bec5716 + ssa_ast: 4b2a40d14e26818ea4bd82b2400265bbe633e243b4d7d62be4093a2bb6a68f66 diff --git a/tests/expectations/compiler/scalar/div_fail.out b/tests/expectations/compiler/scalar/div_fail.out new file mode 100644 index 0000000000..7910b95704 --- /dev/null +++ b/tests/expectations/compiler/scalar/div_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `field, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `scalar`\n --> compiler-test:4:12\n |\n 4 | return a / b; // division not supported for scalar types.\n | ^^^^^\n" diff --git a/tests/expectations/compiler/scalar/eq.out b/tests/expectations/compiler/scalar/eq.out new file mode 100644 index 0000000000..6314675f9e --- /dev/null +++ b/tests/expectations/compiler/scalar/eq.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fbb9f33bc5cf7fd11341e6dc1d12d4899274f3bee34dd64590ffd3c9438a61a5 + initial_ast: 8289ba8d30365026c4e1b2fdef5afded1ca8c748dbe8051a96d6ecad4a6fe2b2 + unrolled_ast: 8289ba8d30365026c4e1b2fdef5afded1ca8c748dbe8051a96d6ecad4a6fe2b2 + ssa_ast: 85863634a5c310ad76a098e3a2e9419d3d5d46fc675c859d253343471899176a diff --git a/tests/expectations/compiler/scalar/no_space_between_literal.out b/tests/expectations/compiler/scalar/no_space_between_literal.out new file mode 100644 index 0000000000..9ac75fd08d --- /dev/null +++ b/tests/expectations/compiler/scalar/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/scalar/operator_methods.out b/tests/expectations/compiler/scalar/operator_methods.out new file mode 100644 index 0000000000..982ad5f68c --- /dev/null +++ b/tests/expectations/compiler/scalar/operator_methods.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d7a45ca3c65b0e933098d6a2be13eebaeac9395e7c0461be10c5fcf1e99a7e5e + initial_ast: da81d8fd30bf591686b8991f5f0edda86155bac3d0b5531a336fe90372d82ee1 + unrolled_ast: da81d8fd30bf591686b8991f5f0edda86155bac3d0b5531a336fe90372d82ee1 + ssa_ast: 1d1b56f3e69520219eaeda8d96977a64f915ba554e721c5f6cc89ff71a170546 diff --git a/tests/expectations/compiler/scalar/scalar.out b/tests/expectations/compiler/scalar/scalar.out new file mode 100644 index 0000000000..02171ad813 --- /dev/null +++ b/tests/expectations/compiler/scalar/scalar.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 28228b87fcb43040ca2c4a6c9e6539642323a9f64d837a6de7f579b17ceb1da4 + initial_ast: e11179e20be602466a0d59025b95a169b431b190d4cc6cb2bc80287e7429bf9b + unrolled_ast: e11179e20be602466a0d59025b95a169b431b190d4cc6cb2bc80287e7429bf9b + ssa_ast: f7f43114a0adce0fb246b06465b583cab83745fa54f09a2264d3dcfbd803ac51 diff --git a/tests/expectations/compiler/scalar/square_root_fail.out b/tests/expectations/compiler/scalar/square_root_fail.out new file mode 100644 index 0000000000..2b07fcd602 --- /dev/null +++ b/tests/expectations/compiler/scalar/square_root_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `field`, but got `scalar`\n --> compiler-test:4:12\n |\n 4 | return a.square_root(); // square root not supported for scalar types.\n | ^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/scalar/ternary.out b/tests/expectations/compiler/scalar/ternary.out new file mode 100644 index 0000000000..918e1fca2c --- /dev/null +++ b/tests/expectations/compiler/scalar/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fbb9f33bc5cf7fd11341e6dc1d12d4899274f3bee34dd64590ffd3c9438a61a5 + initial_ast: fbc9f38d923601aa2e14979cb36a6f6a4d41feea94a4cf381c2bf14060c3e457 + unrolled_ast: fbc9f38d923601aa2e14979cb36a6f6a4d41feea94a4cf381c2bf14060c3e457 + ssa_ast: 8faf6baa2ff1cb8b7e20bbec6022306ca75ddd034644715c3402fa9f002acb56 diff --git a/tests/expectations/compiler/statements/all_loops_fail.out b/tests/expectations/compiler/statements/all_loops_fail.out new file mode 100644 index 0000000000..b6979435ee --- /dev/null +++ b/tests/expectations/compiler/statements/all_loops_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> compiler-test:15:26\n |\n 15 | for a: u32 in 10u32..=0u32 {\n | ^" diff --git a/tests/expectations/compiler/statements/assign.out b/tests/expectations/compiler/statements/assign.out new file mode 100644 index 0000000000..f9bf5770d0 --- /dev/null +++ b/tests/expectations/compiler/statements/assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9f519c84609aa8fc9c90d398fdb30fe75df106dc0347ab1e3d7e947b2ab1b724 + initial_ast: 90d7b657319b7b4c7151826d74e891f1c2e9722ea96527002a5b541a8bf33107 + unrolled_ast: 90d7b657319b7b4c7151826d74e891f1c2e9722ea96527002a5b541a8bf33107 + ssa_ast: 2fd1f68ae99ae9600f3eacc41f11613c3b803ca38ff2ff5256bef5ebad59b5e6 diff --git a/tests/expectations/compiler/statements/assign_fail.out b/tests/expectations/compiler/statements/assign_fail.out new file mode 100644 index 0000000000..8fc47c7d45 --- /dev/null +++ b/tests/expectations/compiler/statements/assign_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `🦀`.\n" diff --git a/tests/expectations/compiler/statements/assign_ternary.out b/tests/expectations/compiler/statements/assign_ternary.out new file mode 100644 index 0000000000..efdfd7f46d --- /dev/null +++ b/tests/expectations/compiler/statements/assign_ternary.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> compiler-test:3:23\n |\n 3 | function main(x: u32) {\n | ^" diff --git a/tests/expectations/compiler/statements/block.out b/tests/expectations/compiler/statements/block.out new file mode 100644 index 0000000000..a9c64e14cc --- /dev/null +++ b/tests/expectations/compiler/statements/block.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e1c7ad7391827e106457839413bf85010988ea959e65aa886551b0c6917b25e + initial_ast: cbffad01dfba4f4a7edc9d3dd648dcc579b3c35643b94a39136e1461cd22cc73 + unrolled_ast: cbffad01dfba4f4a7edc9d3dd648dcc579b3c35643b94a39136e1461cd22cc73 + ssa_ast: ee2532244bd5d690146aa195724462fce2f1fca9f47cd8b90465330e7297b468 diff --git a/tests/expectations/compiler/statements/chain.out b/tests/expectations/compiler/statements/chain.out new file mode 100644 index 0000000000..0cb1483da6 --- /dev/null +++ b/tests/expectations/compiler/statements/chain.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 099858521f685395ad30dc798ca7edc52a2d681044e86766d3df5fbc5284f6a0 + - initial_input_ast: a35737f164b8311e127ba8a4d6313c1195b66de26e2800ad95397d795ae006b0 + - initial_input_ast: d264a0cababb36d4cc7304beff80ed0a42fe626b9002adacbe594af847a1f47d + initial_ast: 2e9922d1559751ce17eb9484f297ad8196d3516c7904bf3a167d5f9810533f30 + unrolled_ast: 2e9922d1559751ce17eb9484f297ad8196d3516c7904bf3a167d5f9810533f30 + ssa_ast: 2b1904cf6e5e88ab7573141c2e31e8b9998d4024f6a0ebe3229aec61c67e3cfb diff --git a/tests/expectations/compiler/statements/compare_diff_types_fail.out b/tests/expectations/compiler/statements/compare_diff_types_fail.out new file mode 100644 index 0000000000..b953fdbe50 --- /dev/null +++ b/tests/expectations/compiler/statements/compare_diff_types_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:4:19\n |\n 4 | let b: bool = a == 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:5:19\n |\n 5 | let c: bool = a != 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:6:19\n |\n 6 | let d: bool = a > 1u8;\n | ^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:7:19\n |\n 7 | let e: bool = a < 1u8;\n | ^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:8:19\n |\n 8 | let f: bool = a >= 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:9:19\n |\n 9 | let g: bool = a <= 1u8;\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/compare_invalid_negates_fail.out b/tests/expectations/compiler/statements/compare_invalid_negates_fail.out new file mode 100644 index 0000000000..8e9bc6ec7b --- /dev/null +++ b/tests/expectations/compiler/statements/compare_invalid_negates_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:4:20\n |\n 4 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:4:26\n |\n 4 | let b: bool = -a == -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:20\n |\n 5 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:25\n |\n 5 | let c: bool = -a > -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:20\n |\n 6 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:25\n |\n 6 | let d: bool = -a < -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:20\n |\n 7 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:26\n |\n 7 | let e: bool = -a >= -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:20\n |\n 8 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:26\n |\n 8 | let f: bool = -a <= -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:18\n |\n 9 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:23\n |\n 9 | let g: u8 = -a * -1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:18\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:24\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^^^\n" diff --git a/tests/expectations/compiler/statements/duplicate_variable.out b/tests/expectations/compiler/statements/duplicate_variable.out new file mode 100644 index 0000000000..3ce46d4586 --- /dev/null +++ b/tests/expectations/compiler/statements/duplicate_variable.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372011]: variable `x` shadowed by\n --> compiler-test:5:4\n |\n 5 | \tlet x: bool = true;\n | ^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/iteration_basic.out b/tests/expectations/compiler/statements/iteration_basic.out new file mode 100644 index 0000000000..116a91774b --- /dev/null +++ b/tests/expectations/compiler/statements/iteration_basic.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2536e33f2d79d2aef1e1dcc6d2c731605f22086a5d1c7f4a364383fb15b89b97 + initial_ast: 1103461b81a0a8e24c65d27a0f569715946dbb424dd1c6b5a2c41beb4bb96230 + unrolled_ast: 2a9e2923379ca24b043afe465cdae88dd5ef28f255149f57cd5302042ea629a2 + ssa_ast: b1e4fe312f740181b4a7155f3d482119364d00dc103daface4e131211fc0cae5 diff --git a/tests/expectations/compiler/statements/iteration_nested.out b/tests/expectations/compiler/statements/iteration_nested.out new file mode 100644 index 0000000000..4bb073c132 --- /dev/null +++ b/tests/expectations/compiler/statements/iteration_nested.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e8caaaa48fd4ca19b2d31da65831711c477323db6fb477cbe2e1abcd9182e0e9 + initial_ast: b540a2430fa67d651a52d46ca96aa981c9ae7670a2524f9bc830435a5117b171 + unrolled_ast: d024c73e29934c57ddd22dafcde4100e773491e462b190fdd943fc64ec709d1d + ssa_ast: 7db305c51ad2b3c03f1d69dca9c2bbc16bccff7e011dc23fa8bd7a1b0613a22d diff --git a/tests/expectations/compiler/statements/loop_returns_fail.out b/tests/expectations/compiler/statements/loop_returns_fail.out new file mode 100644 index 0000000000..107026a0dd --- /dev/null +++ b/tests/expectations/compiler/statements/loop_returns_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372027]: Loop body contains a return statement or always returns.\n --> compiler-test:5:5\n |\n 5 | for i: u32 in 0u32..9u32 {\n 6 | return false;\n 7 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\nError [ETYC0372027]: Loop body contains a return statement or always returns.\n --> compiler-test:9:5\n |\n 9 | for i: u32 in 0u32..9u32 {\n 10 | if (x == 0u32) {\n 11 | return false;\n 12 | } else {\n 13 | return true;\n 14 | }\n 15 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\n" diff --git a/tests/expectations/compiler/statements/multiple_returns.out b/tests/expectations/compiler/statements/multiple_returns.out new file mode 100644 index 0000000000..0d3f80ab8c --- /dev/null +++ b/tests/expectations/compiler/statements/multiple_returns.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e1c7ad7391827e106457839413bf85010988ea959e65aa886551b0c6917b25e + - initial_input_ast: 05aec88bcd0cad7448814728a983f3ff8cb52f9dc5f9bd464e130f18c4ae1033 + initial_ast: 72f2d64a55e6db776ee3af263fe200d8dd806e4f20e27696012e49f6987a8609 + unrolled_ast: 72f2d64a55e6db776ee3af263fe200d8dd806e4f20e27696012e49f6987a8609 + ssa_ast: 567f9e9a2688896cad548bec48b0d91b6418d7a1857f1b33ea8dfdafecfabb4b diff --git a/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out b/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out new file mode 100644 index 0000000000..c01018211a --- /dev/null +++ b/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372026]: Cannot reach the following statement.\n --> compiler-test:5:5\n |\n 5 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372026]: Cannot reach the following statement.\n --> compiler-test:6:5\n |\n 6 | return double;\n | ^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\n" diff --git a/tests/expectations/compiler/statements/mutate.out b/tests/expectations/compiler/statements/mutate.out new file mode 100644 index 0000000000..1d31714ac5 --- /dev/null +++ b/tests/expectations/compiler/statements/mutate.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 39f57bd6523db083837653e04356cc4b201e93e887dc11d89a1a51029e92236a + - initial_input_ast: 965f2de6d6d4b0d3b2bf32e29ca196835aec7ca5803f9c6a33b8987185a5c233 + initial_ast: 97eb6d68a9c10827d6420dc9013f0c391291bfb52df42439f9fb9fa30abb6a93 + unrolled_ast: 97eb6d68a9c10827d6420dc9013f0c391291bfb52df42439f9fb9fa30abb6a93 + ssa_ast: b7e0a3b368e4566a568fd1cc79b9d071ea529980f8464dbc707adf2e80b92045 diff --git a/tests/expectations/compiler/statements/non_existant_var_exp_fail.out b/tests/expectations/compiler/statements/non_existant_var_exp_fail.out new file mode 100644 index 0000000000..36dbbd6b9e --- /dev/null +++ b/tests/expectations/compiler/statements/non_existant_var_exp_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372005]: Unknown variable `z`\n --> compiler-test:4:19\n |\n 4 | \tlet b: u8 = 1u8**z;\n | ^\n" diff --git a/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out b/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out new file mode 100644 index 0000000000..d0fa22eb14 --- /dev/null +++ b/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372005]: Unknown variable `x`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372005]: Unknown variable `z`\n --> compiler-test:4:16\n |\n 4 | \tlet b: u8 = x*z;\n | ^\n" diff --git a/tests/expectations/compiler/statements/operations/add_assign.out b/tests/expectations/compiler/statements/operations/add_assign.out new file mode 100644 index 0000000000..3885483814 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/add_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 3271404de78a08cd43d615d8bb2db1bd566fef9854e1cdb4b4d461654115d2fd + unrolled_ast: 3271404de78a08cd43d615d8bb2db1bd566fef9854e1cdb4b4d461654115d2fd + ssa_ast: 90e8c25568ba62bf8f996fc7f687739f1f0c4cf3849fc7f7064d4029eec06c67 diff --git a/tests/expectations/compiler/statements/operations/and_assign.out b/tests/expectations/compiler/statements/operations/and_assign.out new file mode 100644 index 0000000000..7e289cf9a1 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/and_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: bfc400b64c2c1ca71fd2f582f3309751a641f801abb9537046956daba1f1e60c + unrolled_ast: bfc400b64c2c1ca71fd2f582f3309751a641f801abb9537046956daba1f1e60c + ssa_ast: c545e4db9d0c87f1357844140613f65afe9a8ebe8e47e840731a1e09844af107 diff --git a/tests/expectations/compiler/statements/operations/bitand_assign.out b/tests/expectations/compiler/statements/operations/bitand_assign.out new file mode 100644 index 0000000000..74ca2366c8 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/bitand_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 9bc893442192331571b46f148d3ff458f176b195aca954dc5ad2a09e580b3ce5 + unrolled_ast: 9bc893442192331571b46f148d3ff458f176b195aca954dc5ad2a09e580b3ce5 + ssa_ast: ffd8093439d1dffd761fcc544d09832cd248af655b2b929213d57c3a4b6f96d6 diff --git a/tests/expectations/compiler/statements/operations/bitor_assign.out b/tests/expectations/compiler/statements/operations/bitor_assign.out new file mode 100644 index 0000000000..443fc0d646 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/bitor_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 9a3505edc4d86daf80f435407ce8a39bcf54731e231a98ecba5a32a24eaafc08 + unrolled_ast: 9a3505edc4d86daf80f435407ce8a39bcf54731e231a98ecba5a32a24eaafc08 + ssa_ast: af1ef0156d2e938ceba949f5b84b5df89fdf281fe7a8ac0b485db49b183f0b3d diff --git a/tests/expectations/compiler/statements/operations/bitxor_assign.out b/tests/expectations/compiler/statements/operations/bitxor_assign.out new file mode 100644 index 0000000000..f95208f3fe --- /dev/null +++ b/tests/expectations/compiler/statements/operations/bitxor_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 56b18c60bc6a6ed6cc4861fb42dfc722782b430f6c446cd042431af634da963e + unrolled_ast: 56b18c60bc6a6ed6cc4861fb42dfc722782b430f6c446cd042431af634da963e + ssa_ast: 46a1c1943f296b04bccf760a86fa95d2917f04b9e37f0263df9b5824b694b96b diff --git a/tests/expectations/compiler/statements/operations/div_assign.out b/tests/expectations/compiler/statements/operations/div_assign.out new file mode 100644 index 0000000000..6c03cdbb3a --- /dev/null +++ b/tests/expectations/compiler/statements/operations/div_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 97ede6d822c5431f5d060656d6370d2a744cf083fd96945553f9753a03b36b27 + unrolled_ast: 97ede6d822c5431f5d060656d6370d2a744cf083fd96945553f9753a03b36b27 + ssa_ast: ec4c4e7c1bea4fd088abe8e006da47eb501c631261205bc88c2e5186c08c3604 diff --git a/tests/expectations/compiler/statements/operations/mul_assign.out b/tests/expectations/compiler/statements/operations/mul_assign.out new file mode 100644 index 0000000000..e9b899f3c4 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/mul_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: bafb8f3b713bb362f69e050adb18684bc5cec6472b2b5d8252a7537c933ed234 + unrolled_ast: bafb8f3b713bb362f69e050adb18684bc5cec6472b2b5d8252a7537c933ed234 + ssa_ast: 0053ca3c00cf642fe3e13016f78fffe15362467242713a95311a2d1996867a6a diff --git a/tests/expectations/compiler/statements/operations/or_assign.out b/tests/expectations/compiler/statements/operations/or_assign.out new file mode 100644 index 0000000000..8c983424e2 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/or_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: f8c328e4c411ce92c540040ff7459e1d25340cc4e98b5df318622d293ad25ccd + unrolled_ast: f8c328e4c411ce92c540040ff7459e1d25340cc4e98b5df318622d293ad25ccd + ssa_ast: 3e30c185fbcfd0e05a3da8fb90a91b0d65cff679fda4c9e96376609b867530f4 diff --git a/tests/expectations/compiler/statements/operations/pow_assign.out b/tests/expectations/compiler/statements/operations/pow_assign.out new file mode 100644 index 0000000000..ac7ca84c5c --- /dev/null +++ b/tests/expectations/compiler/statements/operations/pow_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 690eb113c9b66167171cffb9de6ef2f1c8281250252c5933c8ef1c58c437b701 + unrolled_ast: 690eb113c9b66167171cffb9de6ef2f1c8281250252c5933c8ef1c58c437b701 + ssa_ast: 5b4c0f3e090d31ae8456c7ab9cf71d4024ec2c86527cc387b25804f8f506005d diff --git a/tests/expectations/compiler/statements/operations/shl_assign.out b/tests/expectations/compiler/statements/operations/shl_assign.out new file mode 100644 index 0000000000..5c7e07cd18 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/shl_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: f4137239ab0c3334882a6ebed513bf96e8045dc5def25b9ebb4f9e1566a3e4e9 + unrolled_ast: f4137239ab0c3334882a6ebed513bf96e8045dc5def25b9ebb4f9e1566a3e4e9 + ssa_ast: e701076b03cd05300c8e38bc91734907d7a7179f2cc8cb2335a5c4ca4c55cce9 diff --git a/tests/expectations/compiler/statements/operations/shr_assign.out b/tests/expectations/compiler/statements/operations/shr_assign.out new file mode 100644 index 0000000000..9b70de62cf --- /dev/null +++ b/tests/expectations/compiler/statements/operations/shr_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: f33336f4949a9829f5d6a53033fe159ddc4d4953bcbf3386429e93ffff1b03bb + unrolled_ast: f33336f4949a9829f5d6a53033fe159ddc4d4953bcbf3386429e93ffff1b03bb + ssa_ast: 2deb559e2052ec78dba98c46d67f952f748167c6a9dff8f75ecb309802d83f91 diff --git a/tests/expectations/compiler/statements/operations/sub_assign.out b/tests/expectations/compiler/statements/operations/sub_assign.out new file mode 100644 index 0000000000..ef2487ab7b --- /dev/null +++ b/tests/expectations/compiler/statements/operations/sub_assign.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 5b00661c154de835d472bf2b27116e1d556771dc960683f83b6fc40c9978a988 + unrolled_ast: 5b00661c154de835d472bf2b27116e1d556771dc960683f83b6fc40c9978a988 + ssa_ast: a83af44e560da899fc089bbac0afbd7e1a3c7b01c77b96c22c6f2ba0df599a80 diff --git a/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out b/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out new file mode 100644 index 0000000000..2ec0ef8cb7 --- /dev/null +++ b/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372026]: Cannot reach the following statement.\n --> compiler-test:9:5\n |\n 9 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372026]: Cannot reach the following statement.\n --> compiler-test:10:5\n |\n 10 | return double;\n | ^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\n" diff --git a/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out new file mode 100644 index 0000000000..dcc2b40e10 --- /dev/null +++ b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fb744c11bbf167bd99bd67ad37031466e9292e06da1c2ea21142c3a03f7c3790 + initial_ast: 9cb9c5e2c30cdac7dc27c26425dbb854ef9d33624c9097d531f3cd64caf4fe9c + unrolled_ast: 9cb9c5e2c30cdac7dc27c26425dbb854ef9d33624c9097d531f3cd64caf4fe9c + ssa_ast: c8787619b460330a7e09876da27593d2aa5ddfff595043416530dd75a505c512 diff --git a/tests/expectations/compiler/tuple/access_negative_fail.out b/tests/expectations/compiler/tuple/access_negative_fail.out new file mode 100644 index 0000000000..021a7db830 --- /dev/null +++ b/tests/expectations/compiler/tuple/access_negative_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '-'\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.-1); // Index `t.-1` is invalid.\n | ^" diff --git a/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out b/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out new file mode 100644 index 0000000000..c2bfd8e51c --- /dev/null +++ b/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372024]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372014]: t.2 is not a valid core circuit call.\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\n" diff --git a/tests/expectations/compiler/tuple/declare_fail.out b/tests/expectations/compiler/tuple/declare_fail.out new file mode 100644 index 0000000000..05ba398d7a --- /dev/null +++ b/tests/expectations/compiler/tuple/declare_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:4:31\n |\n 4 | let t: (bool, bool) = (a, 1u64); // We should be declaring to a boolean, not a u64.\n | ^^^^\n" diff --git a/tests/expectations/compiler/tuple/function_return.out b/tests/expectations/compiler/tuple/function_return.out new file mode 100644 index 0000000000..209545b2ac --- /dev/null +++ b/tests/expectations/compiler/tuple/function_return.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 33396f24215dd7889c98d8afbc693a0bd262e255406816a21ba3e6e60d4cff2b + initial_ast: ec5ade5f68105536a98b43650808b666cf4576044a31efa25773e5396d39a91c + unrolled_ast: ec5ade5f68105536a98b43650808b666cf4576044a31efa25773e5396d39a91c + ssa_ast: 6346f85478670c0042a66fc1ae772103a6ca4a29ee654af028659dbba90abe59 diff --git a/tests/expectations/compiler/tuple/function_return_single_fail.out b/tests/expectations/compiler/tuple/function_return_single_fail.out new file mode 100644 index 0000000000..d7377f0932 --- /dev/null +++ b/tests/expectations/compiler/tuple/function_return_single_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372007]: Tuples of one element are not allowed.\n --> compiler-test:3:36\n |\n 3 | function main(a: bool, b: bool) -> (bool) {\n | ^^^^^^\n |\n = Try defining a single type by removing the parenthesis `( )`" diff --git a/tests/expectations/compiler/tuple/function_return_zero_fail.out b/tests/expectations/compiler/tuple/function_return_zero_fail.out new file mode 100644 index 0000000000..fb9976ed79 --- /dev/null +++ b/tests/expectations/compiler/tuple/function_return_zero_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372006]: Tuples of zero elements are not allowed.\n --> compiler-test:3:36\n |\n 3 | function main(a: bool, b: bool) -> () {\n | ^^" diff --git a/tests/expectations/compiler/tuple/return_statement_fail.out b/tests/expectations/compiler/tuple/return_statement_fail.out new file mode 100644 index 0000000000..f3c49b4356 --- /dev/null +++ b/tests/expectations/compiler/tuple/return_statement_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `u64` but type `boolean` was found\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.1); // The second element should be type u64 as in the function declaration.\n | ^\n" diff --git a/tests/expectations/compiler/tuple/tuple_not_allowed.out b/tests/expectations/compiler/tuple/tuple_not_allowed.out new file mode 100644 index 0000000000..01a1909214 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_not_allowed.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:7:14\n |\n 7 | function foo(a: (u8, u16)) -> (u8, u16) {\n | ^\nError [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:11:1\n |\n 11 | function bar() -> (u8, (u16, u32)) {\n 12 | return (1u8, (2u16, 3u32));\n 13 | }\n | ^\nError [ETYC0372007]: Expected one type from `i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `(u8,u16)`\n --> compiler-test:16:9\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:16:25\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:16:30\n |\n 16 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372025]: Tuples are only allowed as function return types.\n --> compiler-test:21:5\n |\n 21 | mem: (u8, u16)\n | ^^^\n" diff --git a/tests/expectations/compiler/tuple/type_fail.out b/tests/expectations/compiler/tuple/type_fail.out new file mode 100644 index 0000000000..4bc3711ad1 --- /dev/null +++ b/tests/expectations/compiler/tuple/type_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `u64` but type `boolean` was found\n --> compiler-test:3:24\n |\n 3 | function main(a: bool, b: bool) -> (bool, bool) {\n | ^\nError [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:6:20\n |\n 6 | return (t.0, t.1);\n | ^\n" diff --git a/tests/expectations/parser/expression/access/call.out b/tests/expectations/parser/expression/access/call.out new file mode 100644 index 0000000000..b01f617737 --- /dev/null +++ b/tests/expectations/parser/expression/access/call.out @@ -0,0 +1,45 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: [] + span: + lo: 0 + hi: 3 + - Call: + function: + Identifier: "{\"name\":\"X\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: [] + span: + lo: 0 + hi: 3 + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + span: + lo: 0 + hi: 4 + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 7 + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + span: + lo: 0 + hi: 10 diff --git a/tests/expectations/parser/expression/array_init_fail.out b/tests/expectations/parser/expression/array_init_fail.out new file mode 100644 index 0000000000..66c99b3d13 --- /dev/null +++ b/tests/expectations/parser/expression/array_init_fail.out @@ -0,0 +1,8 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [...0u8; 1]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [...0; 1]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [0; ()]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [0; (1)]\n | ^" diff --git a/tests/expectations/parser/expression/array_inline_fail.out b/tests/expectations/parser/expression/array_inline_fail.out new file mode 100644 index 0000000000..3b19a17abe --- /dev/null +++ b/tests/expectations/parser/expression/array_inline_fail.out @@ -0,0 +1,9 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [,]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [,,]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [0,,]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [,0]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [,0,]\n | ^" diff --git a/tests/expectations/parser/expression/binary/add.out b/tests/expectations/parser/expression/binary/add.out new file mode 100644 index 0000000000..26f43b48e4 --- /dev/null +++ b/tests/expectations/parser/expression/binary/add.out @@ -0,0 +1,461 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 4 + hi: 7 + op: Add + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: Add + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + right: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + op: Mul + span: + lo: 12 + hi: 21 + op: Add + span: + lo: 0 + hi: 21 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: Sub + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + right: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + op: Mul + span: + lo: 12 + hi: 21 + op: Add + span: + lo: 0 + hi: 21 + right: + Binary: + left: + Literal: + U8: + - "5" + - span: + lo: 24 + hi: 27 + right: + Literal: + U8: + - "6" + - span: + lo: 30 + hi: 33 + op: Mul + span: + lo: 24 + hi: 33 + op: Sub + span: + lo: 0 + hi: 33 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Add + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Add + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Add + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Add + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Add + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Add + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Add + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Add + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Add + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Add + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Add + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Add + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Add + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Add + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Add + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: Add + span: + lo: 12 + hi: 20 + op: Add + span: + lo: 1 + hi: 20 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: Add + span: + lo: 26 + hi: 34 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" + op: Add + span: + lo: 37 + hi: 45 + op: Add + span: + lo: 26 + hi: 45 + op: Add + span: + lo: 1 + hi: 46 diff --git a/tests/expectations/parser/expression/binary/add_wrapped.out b/tests/expectations/parser/expression/binary/add_wrapped.out new file mode 100644 index 0000000000..c5c7cb64ba --- /dev/null +++ b/tests/expectations/parser/expression/binary/add_wrapped.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: AddWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: AddWrapped + span: + lo: 0 + hi: 16 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" + op: AddWrapped + span: + lo: 0 + hi: 31 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" + op: AddWrapped + span: + lo: 0 + hi: 46 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: AddWrapped + span: + lo: 1 + hi: 17 + op: Negate + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: AddWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: AddWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: AddWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: AddWrapped + span: + lo: 1 + hi: 34 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: AddWrapped + span: + lo: 1 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: AddWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: AddWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: AddWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: AddWrapped + span: + lo: 1 + hi: 34 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: AddWrapped + span: + lo: 1 + hi: 17 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":34,\\\"hi\\\":35}\"}" + op: AddWrapped + span: + lo: 20 + hi: 36 + op: Add + span: + lo: 1 + hi: 36 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":50,\\\"hi\\\":51}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":64,\\\"hi\\\":65}\"}" + op: AddWrapped + span: + lo: 50 + hi: 66 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":69,\\\"hi\\\":70}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":83,\\\"hi\\\":84}\"}" + op: AddWrapped + span: + lo: 69 + hi: 85 + op: Add + span: + lo: 50 + hi: 85 + op: AddWrapped + span: + lo: 1 + hi: 86 diff --git a/tests/expectations/parser/expression/binary/and.out b/tests/expectations/parser/expression/binary/and.out new file mode 100644 index 0000000000..80c098ae8b --- /dev/null +++ b/tests/expectations/parser/expression/binary/and.out @@ -0,0 +1,313 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + Boolean: + - true + - span: + lo: 0 + hi: 4 + right: + Literal: + Boolean: + - false + - span: + lo: 8 + hi: 13 + op: And + span: + lo: 0 + hi: 13 + - Binary: + left: + Literal: + Boolean: + - false + - span: + lo: 0 + hi: 5 + right: + Literal: + Boolean: + - true + - span: + lo: 7 + hi: 11 + op: And + span: + lo: 0 + hi: 11 + - Binary: + left: + Binary: + left: + Literal: + Boolean: + - true + - span: + lo: 0 + hi: 4 + right: + Literal: + Boolean: + - false + - span: + lo: 6 + hi: 11 + op: And + span: + lo: 0 + hi: 11 + right: + Literal: + Boolean: + - true + - span: + lo: 13 + hi: 17 + op: And + span: + lo: 0 + hi: 17 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: BitwiseAnd + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: BitwiseAnd + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: BitwiseAnd + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: BitwiseAnd + span: + lo: 12 + hi: 20 + op: Add + span: + lo: 1 + hi: 20 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: BitwiseAnd + span: + lo: 26 + hi: 34 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" + op: BitwiseAnd + span: + lo: 37 + hi: 45 + op: Add + span: + lo: 26 + hi: 45 + op: BitwiseAnd + span: + lo: 1 + hi: 46 diff --git a/tests/expectations/parser/expression/binary/bit_and.out b/tests/expectations/parser/expression/binary/bit_and.out new file mode 100644 index 0000000000..365c867eb1 --- /dev/null +++ b/tests/expectations/parser/expression/binary/bit_and.out @@ -0,0 +1,461 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: BitwiseAnd + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 4 + hi: 7 + op: BitwiseAnd + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: BitwiseAnd + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: BitwiseAnd + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: BitwiseAnd + span: + lo: 6 + hi: 15 + op: BitwiseOr + span: + lo: 0 + hi: 15 + right: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + op: BitwiseOr + span: + lo: 0 + hi: 21 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: BitwiseAnd + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: BitwiseAnd + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: BitwiseAnd + span: + lo: 6 + hi: 15 + op: BitwiseOr + span: + lo: 0 + hi: 15 + right: + Binary: + left: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + right: + Literal: + U8: + - "5" + - span: + lo: 24 + hi: 27 + op: BitwiseAnd + span: + lo: 18 + hi: 27 + op: BitwiseOr + span: + lo: 0 + hi: 27 + right: + Literal: + U8: + - "6" + - span: + lo: 30 + hi: 33 + op: BitwiseOr + span: + lo: 0 + hi: 33 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: BitwiseAnd + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: BitwiseAnd + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: BitwiseAnd + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseAnd + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseAnd + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: BitwiseAnd + span: + lo: 12 + hi: 20 + op: BitwiseAnd + span: + lo: 1 + hi: 20 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: BitwiseAnd + span: + lo: 26 + hi: 34 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" + op: BitwiseAnd + span: + lo: 37 + hi: 45 + op: BitwiseAnd + span: + lo: 26 + hi: 45 + op: BitwiseAnd + span: + lo: 1 + hi: 46 diff --git a/tests/expectations/parser/expression/binary/bit_or.out b/tests/expectations/parser/expression/binary/bit_or.out new file mode 100644 index 0000000000..a2e14d0a9a --- /dev/null +++ b/tests/expectations/parser/expression/binary/bit_or.out @@ -0,0 +1,461 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: BitwiseOr + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 4 + hi: 7 + op: BitwiseOr + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: BitwiseOr + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: BitwiseOr + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: BitwiseOr + span: + lo: 6 + hi: 15 + op: Xor + span: + lo: 0 + hi: 15 + right: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + op: Xor + span: + lo: 0 + hi: 21 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: BitwiseOr + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: BitwiseOr + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: BitwiseOr + span: + lo: 6 + hi: 15 + op: Xor + span: + lo: 0 + hi: 15 + right: + Binary: + left: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + right: + Literal: + U8: + - "5" + - span: + lo: 24 + hi: 27 + op: BitwiseOr + span: + lo: 18 + hi: 27 + op: Xor + span: + lo: 0 + hi: 27 + right: + Literal: + U8: + - "6" + - span: + lo: 30 + hi: 33 + op: Xor + span: + lo: 0 + hi: 33 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseOr + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + op: BitwiseOr + span: + lo: 0 + hi: 7 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + op: BitwiseOr + span: + lo: 0 + hi: 13 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: BitwiseOr + span: + lo: 0 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: BitwiseOr + span: + lo: 1 + hi: 8 + op: Negate + span: + lo: 0 + hi: 8 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseOr + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseOr + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseOr + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: BitwiseOr + span: + lo: 1 + hi: 16 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: BitwiseOr + span: + lo: 1 + hi: 8 + op: Not + span: + lo: 0 + hi: 8 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: BitwiseOr + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseOr + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: BitwiseOr + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 1 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: BitwiseOr + span: + lo: 1 + hi: 16 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: BitwiseOr + span: + lo: 1 + hi: 8 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: BitwiseOr + span: + lo: 11 + hi: 18 + op: BitwiseOr + span: + lo: 1 + hi: 18 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" + op: BitwiseOr + span: + lo: 23 + hi: 30 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" + op: BitwiseOr + span: + lo: 33 + hi: 40 + op: BitwiseOr + span: + lo: 23 + hi: 40 + op: BitwiseOr + span: + lo: 1 + hi: 41 diff --git a/tests/expectations/parser/expression/binary/bit_xor.out b/tests/expectations/parser/expression/binary/bit_xor.out new file mode 100644 index 0000000000..02adbc3561 --- /dev/null +++ b/tests/expectations/parser/expression/binary/bit_xor.out @@ -0,0 +1,461 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: Xor + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 4 + hi: 7 + op: Xor + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Xor + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: Xor + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: BitwiseAnd + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + right: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + op: BitwiseAnd + span: + lo: 12 + hi: 21 + op: Xor + span: + lo: 0 + hi: 21 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Xor + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: Xor + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: BitwiseAnd + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + right: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + op: BitwiseAnd + span: + lo: 12 + hi: 21 + op: Xor + span: + lo: 0 + hi: 21 + right: + Binary: + left: + Literal: + U8: + - "5" + - span: + lo: 24 + hi: 27 + right: + Literal: + U8: + - "6" + - span: + lo: 30 + hi: 33 + op: BitwiseAnd + span: + lo: 24 + hi: 33 + op: Xor + span: + lo: 0 + hi: 33 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Xor + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Xor + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Xor + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Xor + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Xor + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Xor + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Xor + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Xor + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Xor + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Xor + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Xor + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Xor + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Xor + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Xor + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Xor + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: Xor + span: + lo: 12 + hi: 20 + op: Xor + span: + lo: 1 + hi: 20 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: Xor + span: + lo: 26 + hi: 34 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" + op: Xor + span: + lo: 37 + hi: 45 + op: Xor + span: + lo: 26 + hi: 45 + op: Xor + span: + lo: 1 + hi: 46 diff --git a/tests/expectations/parser/expression/binary/div.out b/tests/expectations/parser/expression/binary/div.out new file mode 100644 index 0000000000..8c6bb1505f --- /dev/null +++ b/tests/expectations/parser/expression/binary/div.out @@ -0,0 +1,358 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: Div + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 4 + hi: 7 + op: Div + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Div + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: Div + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 7 + hi: 10 + op: Pow + span: + lo: 0 + hi: 10 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 20 + hi: 23 + op: Pow + span: + lo: 13 + hi: 23 + op: Div + span: + lo: 0 + hi: 23 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Div + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Div + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Div + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Div + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Div + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Div + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Div + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Div + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Div + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Div + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: Div + span: + lo: 12 + hi: 20 + op: Div + span: + lo: 1 + hi: 20 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: Div + span: + lo: 26 + hi: 34 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" + op: Div + span: + lo: 37 + hi: 45 + op: Div + span: + lo: 26 + hi: 45 + op: Div + span: + lo: 1 + hi: 46 diff --git a/tests/expectations/parser/expression/binary/div_wrapped.out b/tests/expectations/parser/expression/binary/div_wrapped.out new file mode 100644 index 0000000000..f0c2bdfb82 --- /dev/null +++ b/tests/expectations/parser/expression/binary/div_wrapped.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Div + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Div + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Div + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Div + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Div + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Div + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Div + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Div + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Div + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Div + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Div + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: Div + span: + lo: 12 + hi: 20 + op: Div + span: + lo: 1 + hi: 20 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: Div + span: + lo: 26 + hi: 34 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" + op: Div + span: + lo: 37 + hi: 45 + op: Div + span: + lo: 26 + hi: 45 + op: Div + span: + lo: 1 + hi: 46 diff --git a/tests/expectations/parser/expression/binary/eq.out b/tests/expectations/parser/expression/binary/eq.out new file mode 100644 index 0000000000..473792d084 --- /dev/null +++ b/tests/expectations/parser/expression/binary/eq.out @@ -0,0 +1,423 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 7 + hi: 10 + op: Eq + span: + lo: 0 + hi: 10 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 5 + hi: 8 + op: Eq + span: + lo: 0 + hi: 8 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Lt + span: + lo: 13 + hi: 22 + op: Eq + span: + lo: 0 + hi: 22 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Lt + span: + lo: 13 + hi: 22 + op: Eq + span: + lo: 0 + hi: 22 + right: + Binary: + left: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 26 + hi: 29 + right: + Literal: + U8: + - "4" + - span: + lo: 32 + hi: 35 + op: Lt + span: + lo: 26 + hi: 35 + right: + Binary: + left: + Literal: + U8: + - "5" + - span: + lo: 39 + hi: 42 + right: + Literal: + U8: + - "6" + - span: + lo: 45 + hi: 48 + op: Lt + span: + lo: 39 + hi: 48 + op: Eq + span: + lo: 26 + hi: 48 + op: And + span: + lo: 0 + hi: 48 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Eq + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + op: Eq + span: + lo: 0 + hi: 7 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + op: Eq + span: + lo: 0 + hi: 13 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Eq + span: + lo: 0 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Eq + span: + lo: 1 + hi: 8 + op: Negate + span: + lo: 0 + hi: 8 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Eq + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Eq + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Eq + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: Eq + span: + lo: 1 + hi: 16 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Eq + span: + lo: 1 + hi: 8 + op: Not + span: + lo: 0 + hi: 8 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Eq + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Eq + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Eq + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 1 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: Eq + span: + lo: 1 + hi: 16 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Eq + span: + lo: 1 + hi: 8 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Eq + span: + lo: 12 + hi: 19 + op: Eq + span: + lo: 1 + hi: 19 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":24,\\\"hi\\\":25}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" + op: Eq + span: + lo: 24 + hi: 31 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":40,\\\"hi\\\":41}\"}" + op: Eq + span: + lo: 35 + hi: 42 + op: Eq + span: + lo: 24 + hi: 42 + op: Eq + span: + lo: 1 + hi: 43 diff --git a/tests/expectations/parser/expression/binary/eq_fail.out b/tests/expectations/parser/expression/binary/eq_fail.out new file mode 100644 index 0000000000..d643907ea3 --- /dev/null +++ b/tests/expectations/parser/expression/binary/eq_fail.out @@ -0,0 +1,5 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370018]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 == 2 == 3\n | ^" diff --git a/tests/expectations/parser/expression/binary/ge.out b/tests/expectations/parser/expression/binary/ge.out new file mode 100644 index 0000000000..86ce9ad764 --- /dev/null +++ b/tests/expectations/parser/expression/binary/ge.out @@ -0,0 +1,326 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 7 + hi: 10 + op: Gte + span: + lo: 0 + hi: 10 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 7 + hi: 10 + op: Gte + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Add + span: + lo: 13 + hi: 22 + op: Gte + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Gte + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Gte + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Gte + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Gte + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Gte + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Gte + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Gte + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Gte + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Gte + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Gte + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Gte + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Gte + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Gte + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Gte + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Gte + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + op: Gte + span: + lo: 13 + hi: 21 + op: Gte + span: + lo: 1 + hi: 21 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + op: Gte + span: + lo: 27 + hi: 35 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + op: Gte + span: + lo: 39 + hi: 47 + op: Gte + span: + lo: 27 + hi: 47 + op: Gte + span: + lo: 1 + hi: 48 diff --git a/tests/expectations/parser/expression/binary/ge_fail.out b/tests/expectations/parser/expression/binary/ge_fail.out new file mode 100644 index 0000000000..cb0658f61b --- /dev/null +++ b/tests/expectations/parser/expression/binary/ge_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '>=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" + - "did not consume all input: '>=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" + - "did not consume all input: '>=' @ 1:24-26\n'5' @ 1:27-28\n'u8' @ 1:28-30\n'+' @ 1:31-32\n'6' @ 1:33-34\n'u8' @ 1:34-36\n" diff --git a/tests/expectations/parser/expression/binary/gt.out b/tests/expectations/parser/expression/binary/gt.out new file mode 100644 index 0000000000..6cb8177cd9 --- /dev/null +++ b/tests/expectations/parser/expression/binary/gt.out @@ -0,0 +1,326 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: Gt + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 4 + hi: 7 + op: Gt + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + right: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + op: Add + span: + lo: 12 + hi: 21 + op: Gt + span: + lo: 0 + hi: 21 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Gt + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + op: Gt + span: + lo: 0 + hi: 7 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + op: Gt + span: + lo: 0 + hi: 13 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Gt + span: + lo: 0 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Gt + span: + lo: 1 + hi: 8 + op: Negate + span: + lo: 0 + hi: 8 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Gt + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Gt + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Gt + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: Gt + span: + lo: 1 + hi: 16 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Gt + span: + lo: 1 + hi: 8 + op: Not + span: + lo: 0 + hi: 8 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Gt + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Gt + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Gt + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 1 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: Gt + span: + lo: 1 + hi: 16 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Gt + span: + lo: 1 + hi: 8 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Gt + span: + lo: 11 + hi: 18 + op: Gt + span: + lo: 1 + hi: 18 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" + op: Gt + span: + lo: 23 + hi: 30 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" + op: Gt + span: + lo: 33 + hi: 40 + op: Gt + span: + lo: 23 + hi: 40 + op: Gt + span: + lo: 1 + hi: 41 diff --git a/tests/expectations/parser/expression/binary/gt_fail.out b/tests/expectations/parser/expression/binary/gt_fail.out new file mode 100644 index 0000000000..87fca2dd48 --- /dev/null +++ b/tests/expectations/parser/expression/binary/gt_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '>' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" + - "did not consume all input: '>' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" + - "did not consume all input: '>' @ 1:23-24\n'5' @ 1:25-26\n'u8' @ 1:26-28\n'+' @ 1:29-30\n'6' @ 1:31-32\n'u8' @ 1:32-34\n" diff --git a/tests/expectations/parser/expression/binary/le.out b/tests/expectations/parser/expression/binary/le.out new file mode 100644 index 0000000000..47f1a1463a --- /dev/null +++ b/tests/expectations/parser/expression/binary/le.out @@ -0,0 +1,326 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 7 + hi: 10 + op: Lte + span: + lo: 0 + hi: 10 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 7 + hi: 10 + op: Lte + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Add + span: + lo: 13 + hi: 22 + op: Lte + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Lte + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Lte + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Lte + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Lte + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Lte + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Lte + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Lte + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Lte + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Lte + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Lte + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Lte + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Lte + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Lte + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Lte + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Lte + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + op: Lte + span: + lo: 13 + hi: 21 + op: Lte + span: + lo: 1 + hi: 21 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + op: Lte + span: + lo: 27 + hi: 35 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + op: Lte + span: + lo: 39 + hi: 47 + op: Lte + span: + lo: 27 + hi: 47 + op: Lte + span: + lo: 1 + hi: 48 diff --git a/tests/expectations/parser/expression/binary/le_fail.out b/tests/expectations/parser/expression/binary/le_fail.out new file mode 100644 index 0000000000..2f754fbf41 --- /dev/null +++ b/tests/expectations/parser/expression/binary/le_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '<=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" + - "did not consume all input: '<=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" + - "did not consume all input: '<=' @ 1:24-26\n'5' @ 1:27-28\n'u8' @ 1:28-30\n'+' @ 1:31-32\n'6' @ 1:33-34\n'u8' @ 1:34-36\n" diff --git a/tests/expectations/parser/expression/binary/lt.out b/tests/expectations/parser/expression/binary/lt.out new file mode 100644 index 0000000000..3a69a75dc0 --- /dev/null +++ b/tests/expectations/parser/expression/binary/lt.out @@ -0,0 +1,326 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 4 + hi: 7 + op: Lt + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + right: + Literal: + U8: + - "4" + - span: + lo: 18 + hi: 21 + op: Add + span: + lo: 12 + hi: 21 + op: Lt + span: + lo: 0 + hi: 21 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Lt + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + op: Lt + span: + lo: 0 + hi: 7 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + op: Lt + span: + lo: 0 + hi: 13 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Lt + span: + lo: 0 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Lt + span: + lo: 1 + hi: 8 + op: Negate + span: + lo: 0 + hi: 8 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Lt + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Lt + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Lt + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: Lt + span: + lo: 1 + hi: 16 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Lt + span: + lo: 1 + hi: 8 + op: Not + span: + lo: 0 + hi: 8 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Lt + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Lt + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Lt + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 1 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: Lt + span: + lo: 1 + hi: 16 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Lt + span: + lo: 1 + hi: 8 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Lt + span: + lo: 11 + hi: 18 + op: Lt + span: + lo: 1 + hi: 18 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" + op: Lt + span: + lo: 23 + hi: 30 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" + op: Lt + span: + lo: 33 + hi: 40 + op: Lt + span: + lo: 23 + hi: 40 + op: Lt + span: + lo: 1 + hi: 41 diff --git a/tests/expectations/parser/expression/binary/lt_fail.out b/tests/expectations/parser/expression/binary/lt_fail.out new file mode 100644 index 0000000000..76f35f9d39 --- /dev/null +++ b/tests/expectations/parser/expression/binary/lt_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '<' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" + - "did not consume all input: '<' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" + - "did not consume all input: '<' @ 1:23-24\n'5' @ 1:25-26\n'u8' @ 1:26-28\n'+' @ 1:29-30\n'6' @ 1:31-32\n'u8' @ 1:32-34\n" diff --git a/tests/expectations/parser/expression/binary/mul.out b/tests/expectations/parser/expression/binary/mul.out new file mode 100644 index 0000000000..836a1bbd94 --- /dev/null +++ b/tests/expectations/parser/expression/binary/mul.out @@ -0,0 +1,429 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 4 + hi: 7 + op: Mul + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + right: + Literal: + U8: + - "3" + - span: + lo: 12 + hi: 15 + op: Mul + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 7 + hi: 10 + op: Pow + span: + lo: 0 + hi: 10 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 20 + hi: 23 + op: Pow + span: + lo: 13 + hi: 23 + op: Mul + span: + lo: 0 + hi: 23 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 7 + hi: 10 + op: Pow + span: + lo: 0 + hi: 10 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 20 + hi: 23 + op: Pow + span: + lo: 13 + hi: 23 + op: Mul + span: + lo: 0 + hi: 23 + right: + Binary: + left: + Literal: + U8: + - "5" + - span: + lo: 26 + hi: 29 + right: + Literal: + U8: + - "6" + - span: + lo: 33 + hi: 36 + op: Pow + span: + lo: 26 + hi: 36 + op: Div + span: + lo: 0 + hi: 36 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Mul + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Mul + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Mul + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Mul + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Mul + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Mul + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Mul + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Mul + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Mul + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Mul + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Mul + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Mul + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Mul + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Mul + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Mul + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: Mul + span: + lo: 12 + hi: 20 + op: Mul + span: + lo: 1 + hi: 20 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: Mul + span: + lo: 26 + hi: 34 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}" + op: Mul + span: + lo: 37 + hi: 45 + op: Mul + span: + lo: 26 + hi: 45 + op: Mul + span: + lo: 1 + hi: 46 diff --git a/tests/expectations/parser/expression/binary/mul_wrapped.out b/tests/expectations/parser/expression/binary/mul_wrapped.out new file mode 100644 index 0000000000..e9e0dcb376 --- /dev/null +++ b/tests/expectations/parser/expression/binary/mul_wrapped.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: MulWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: MulWrapped + span: + lo: 0 + hi: 16 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" + op: MulWrapped + span: + lo: 0 + hi: 31 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" + op: MulWrapped + span: + lo: 0 + hi: 46 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: MulWrapped + span: + lo: 1 + hi: 17 + op: Negate + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: MulWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: MulWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: MulWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: MulWrapped + span: + lo: 1 + hi: 34 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: MulWrapped + span: + lo: 1 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: MulWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: MulWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: MulWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: MulWrapped + span: + lo: 1 + hi: 34 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: MulWrapped + span: + lo: 1 + hi: 17 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":34,\\\"hi\\\":35}\"}" + op: MulWrapped + span: + lo: 20 + hi: 36 + op: Mul + span: + lo: 1 + hi: 36 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":50,\\\"hi\\\":51}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":64,\\\"hi\\\":65}\"}" + op: MulWrapped + span: + lo: 50 + hi: 66 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":69,\\\"hi\\\":70}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":83,\\\"hi\\\":84}\"}" + op: MulWrapped + span: + lo: 69 + hi: 85 + op: Mul + span: + lo: 50 + hi: 85 + op: MulWrapped + span: + lo: 1 + hi: 86 diff --git a/tests/expectations/parser/expression/binary/nand.out b/tests/expectations/parser/expression/binary/nand.out new file mode 100644 index 0000000000..4062b297dd --- /dev/null +++ b/tests/expectations/parser/expression/binary/nand.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Nand + span: + lo: 2 + hi: 11 + op: Negate + span: + lo: 1 + hi: 11 + op: Not + span: + lo: 0 + hi: 11 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Nand + span: + lo: 0 + hi: 9 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: Nand + span: + lo: 0 + hi: 17 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" + op: Nand + span: + lo: 0 + hi: 25 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Nand + span: + lo: 1 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":10,\\\"hi\\\":11}\"}" + op: Nand + span: + lo: 1 + hi: 12 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Nand + span: + lo: 2 + hi: 11 + op: Negate + span: + lo: 0 + hi: 11 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Nand + span: + lo: 2 + hi: 11 + op: Negate + span: + lo: 1 + hi: 11 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: Nand + span: + lo: 1 + hi: 20 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Nand + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":10,\\\"hi\\\":11}\"}" + op: Nand + span: + lo: 1 + hi: 12 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Nand + span: + lo: 2 + hi: 11 + op: Not + span: + lo: 0 + hi: 11 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Nand + span: + lo: 2 + hi: 11 + op: Not + span: + lo: 1 + hi: 11 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + op: Nand + span: + lo: 1 + hi: 20 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Nand + span: + lo: 1 + hi: 10 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Nand + span: + lo: 13 + hi: 22 + op: BitwiseAnd + span: + lo: 1 + hi: 22 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":36,\\\"hi\\\":37}\"}" + op: Nand + span: + lo: 29 + hi: 38 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":41,\\\"hi\\\":42}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":48,\\\"hi\\\":49}\"}" + op: Nand + span: + lo: 41 + hi: 50 + op: BitwiseAnd + span: + lo: 29 + hi: 50 + op: Nand + span: + lo: 1 + hi: 51 diff --git a/tests/expectations/parser/expression/binary/neq.out b/tests/expectations/parser/expression/binary/neq.out new file mode 100644 index 0000000000..d47b861603 --- /dev/null +++ b/tests/expectations/parser/expression/binary/neq.out @@ -0,0 +1,423 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 7 + hi: 10 + op: Neq + span: + lo: 0 + hi: 10 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 5 + hi: 8 + op: Neq + span: + lo: 0 + hi: 8 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Lt + span: + lo: 13 + hi: 22 + op: Neq + span: + lo: 0 + hi: 22 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Lt + span: + lo: 13 + hi: 22 + op: Neq + span: + lo: 0 + hi: 22 + right: + Binary: + left: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 26 + hi: 29 + right: + Literal: + U8: + - "4" + - span: + lo: 32 + hi: 35 + op: Lt + span: + lo: 26 + hi: 35 + right: + Binary: + left: + Literal: + U8: + - "5" + - span: + lo: 39 + hi: 42 + right: + Literal: + U8: + - "6" + - span: + lo: 45 + hi: 48 + op: Lt + span: + lo: 39 + hi: 48 + op: Neq + span: + lo: 26 + hi: 48 + op: Or + span: + lo: 0 + hi: 48 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Neq + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Neq + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Neq + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Neq + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Neq + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Neq + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Neq + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Neq + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Neq + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Neq + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Neq + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Neq + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Neq + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Neq + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Neq + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + op: Neq + span: + lo: 13 + hi: 21 + op: Neq + span: + lo: 1 + hi: 21 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + op: Neq + span: + lo: 27 + hi: 35 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + op: Neq + span: + lo: 39 + hi: 47 + op: Neq + span: + lo: 27 + hi: 47 + op: Neq + span: + lo: 1 + hi: 48 diff --git a/tests/expectations/parser/expression/binary/neq_fail.out b/tests/expectations/parser/expression/binary/neq_fail.out new file mode 100644 index 0000000000..22d8f36f38 --- /dev/null +++ b/tests/expectations/parser/expression/binary/neq_fail.out @@ -0,0 +1,5 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370018]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^" diff --git a/tests/expectations/parser/expression/binary/nor.out b/tests/expectations/parser/expression/binary/nor.out new file mode 100644 index 0000000000..7523b7b32c --- /dev/null +++ b/tests/expectations/parser/expression/binary/nor.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Nor + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Nor + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Nor + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Nor + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Nor + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Nor + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Nor + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Nor + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Nor + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Nor + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Nor + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Nor + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Nor + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Nor + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Nor + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + op: Nor + span: + lo: 13 + hi: 21 + op: Neq + span: + lo: 1 + hi: 21 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + op: Nor + span: + lo: 27 + hi: 35 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + op: Nor + span: + lo: 39 + hi: 47 + op: Neq + span: + lo: 27 + hi: 47 + op: Nor + span: + lo: 1 + hi: 48 diff --git a/tests/expectations/parser/expression/binary/or.out b/tests/expectations/parser/expression/binary/or.out new file mode 100644 index 0000000000..cfbb0b1aa8 --- /dev/null +++ b/tests/expectations/parser/expression/binary/or.out @@ -0,0 +1,164 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + Boolean: + - true + - span: + lo: 0 + hi: 4 + right: + Literal: + Boolean: + - true + - span: + lo: 8 + hi: 12 + op: Or + span: + lo: 0 + hi: 12 + - Binary: + left: + Literal: + Boolean: + - false + - span: + lo: 0 + hi: 5 + right: + Literal: + Boolean: + - true + - span: + lo: 7 + hi: 11 + op: Or + span: + lo: 0 + hi: 11 + - Binary: + left: + Binary: + left: + Literal: + Boolean: + - true + - span: + lo: 0 + hi: 4 + right: + Literal: + Boolean: + - false + - span: + lo: 6 + hi: 11 + op: Or + span: + lo: 0 + hi: 11 + right: + Literal: + Boolean: + - false + - span: + lo: 15 + hi: 20 + op: Or + span: + lo: 0 + hi: 20 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + Boolean: + - true + - span: + lo: 0 + hi: 4 + right: + Literal: + Boolean: + - false + - span: + lo: 8 + hi: 13 + op: Or + span: + lo: 0 + hi: 13 + right: + Literal: + Boolean: + - true + - span: + lo: 17 + hi: 21 + op: Or + span: + lo: 0 + hi: 21 + right: + Literal: + Boolean: + - false + - span: + lo: 25 + hi: 30 + op: Or + span: + lo: 0 + hi: 30 + - Binary: + left: + Binary: + left: + Literal: + Boolean: + - true + - span: + lo: 0 + hi: 4 + right: + Binary: + left: + Literal: + Boolean: + - true + - span: + lo: 9 + hi: 13 + right: + Literal: + Boolean: + - false + - span: + lo: 17 + hi: 22 + op: Or + span: + lo: 9 + hi: 22 + op: Or + span: + lo: 0 + hi: 22 + right: + Literal: + Boolean: + - true + - span: + lo: 27 + hi: 31 + op: Or + span: + lo: 0 + hi: 31 diff --git a/tests/expectations/parser/expression/binary/pow.out b/tests/expectations/parser/expression/binary/pow.out new file mode 100644 index 0000000000..8cf1975cfc --- /dev/null +++ b/tests/expectations/parser/expression/binary/pow.out @@ -0,0 +1,313 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 7 + hi: 10 + op: Pow + span: + lo: 0 + hi: 10 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 5 + hi: 8 + op: Pow + span: + lo: 0 + hi: 8 + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 7 + hi: 10 + right: + Literal: + U8: + - "3" + - span: + lo: 14 + hi: 17 + op: Pow + span: + lo: 7 + hi: 17 + op: Pow + span: + lo: 0 + hi: 17 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Pow + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Pow + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Pow + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Pow + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Pow + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Pow + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Pow + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Pow + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Pow + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Pow + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Pow + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Pow + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Pow + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Pow + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Pow + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + op: Pow + span: + lo: 13 + hi: 21 + op: Pow + span: + lo: 1 + hi: 21 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + op: Pow + span: + lo: 27 + hi: 35 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + op: Pow + span: + lo: 39 + hi: 47 + op: Pow + span: + lo: 27 + hi: 47 + op: Pow + span: + lo: 1 + hi: 48 diff --git a/tests/expectations/parser/expression/binary/pow_wrapped.out b/tests/expectations/parser/expression/binary/pow_wrapped.out new file mode 100644 index 0000000000..223a91ff76 --- /dev/null +++ b/tests/expectations/parser/expression/binary/pow_wrapped.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: PowWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: PowWrapped + span: + lo: 0 + hi: 16 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" + op: PowWrapped + span: + lo: 0 + hi: 31 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" + op: PowWrapped + span: + lo: 0 + hi: 46 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: PowWrapped + span: + lo: 1 + hi: 17 + op: Negate + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: PowWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: PowWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: PowWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: PowWrapped + span: + lo: 1 + hi: 34 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: PowWrapped + span: + lo: 1 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: PowWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: PowWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: PowWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: PowWrapped + span: + lo: 1 + hi: 34 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: PowWrapped + span: + lo: 1 + hi: 17 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" + op: PowWrapped + span: + lo: 21 + hi: 37 + op: Pow + span: + lo: 1 + hi: 37 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":51,\\\"hi\\\":52}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":65,\\\"hi\\\":66}\"}" + op: PowWrapped + span: + lo: 51 + hi: 67 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":71,\\\"hi\\\":72}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" + op: PowWrapped + span: + lo: 71 + hi: 87 + op: Pow + span: + lo: 51 + hi: 87 + op: PowWrapped + span: + lo: 1 + hi: 88 diff --git a/tests/expectations/parser/expression/binary/shl.out b/tests/expectations/parser/expression/binary/shl.out new file mode 100644 index 0000000000..eff86a37a0 --- /dev/null +++ b/tests/expectations/parser/expression/binary/shl.out @@ -0,0 +1,461 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 7 + hi: 10 + op: Shl + span: + lo: 0 + hi: 10 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 5 + hi: 8 + op: Shl + span: + lo: 0 + hi: 8 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 7 + hi: 10 + op: Shl + span: + lo: 0 + hi: 10 + right: + Literal: + U8: + - "3" + - span: + lo: 14 + hi: 17 + op: Shl + span: + lo: 0 + hi: 17 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Add + span: + lo: 13 + hi: 22 + op: Shl + span: + lo: 0 + hi: 22 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 7 + hi: 10 + op: Shl + span: + lo: 0 + hi: 10 + right: + Literal: + U8: + - "3" + - span: + lo: 14 + hi: 17 + op: Shl + span: + lo: 0 + hi: 17 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Add + span: + lo: 13 + hi: 22 + op: Shl + span: + lo: 0 + hi: 22 + right: + Binary: + left: + Literal: + U8: + - "5" + - span: + lo: 26 + hi: 29 + right: + Literal: + U8: + - "6" + - span: + lo: 32 + hi: 35 + op: Add + span: + lo: 26 + hi: 35 + op: Shl + span: + lo: 0 + hi: 35 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shl + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Shl + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Shl + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Shl + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Shl + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Shl + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shl + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shl + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Shl + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Shl + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Shl + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shl + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shl + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Shl + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Shl + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + op: Shl + span: + lo: 13 + hi: 21 + op: Shl + span: + lo: 1 + hi: 21 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + op: Shl + span: + lo: 27 + hi: 35 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + op: Shl + span: + lo: 39 + hi: 47 + op: Shl + span: + lo: 27 + hi: 47 + op: Shl + span: + lo: 1 + hi: 48 diff --git a/tests/expectations/parser/expression/binary/shl_wrapped.out b/tests/expectations/parser/expression/binary/shl_wrapped.out new file mode 100644 index 0000000000..478abf1ade --- /dev/null +++ b/tests/expectations/parser/expression/binary/shl_wrapped.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShlWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: ShlWrapped + span: + lo: 0 + hi: 16 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" + op: ShlWrapped + span: + lo: 0 + hi: 31 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" + op: ShlWrapped + span: + lo: 0 + hi: 46 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: ShlWrapped + span: + lo: 1 + hi: 17 + op: Negate + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: ShlWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShlWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShlWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: ShlWrapped + span: + lo: 1 + hi: 34 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: ShlWrapped + span: + lo: 1 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: ShlWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShlWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShlWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: ShlWrapped + span: + lo: 1 + hi: 34 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: ShlWrapped + span: + lo: 1 + hi: 17 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" + op: ShlWrapped + span: + lo: 21 + hi: 37 + op: Shl + span: + lo: 1 + hi: 37 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":51,\\\"hi\\\":52}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":65,\\\"hi\\\":66}\"}" + op: ShlWrapped + span: + lo: 51 + hi: 67 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":71,\\\"hi\\\":72}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" + op: ShlWrapped + span: + lo: 71 + hi: 87 + op: Shl + span: + lo: 51 + hi: 87 + op: ShlWrapped + span: + lo: 1 + hi: 88 diff --git a/tests/expectations/parser/expression/binary/shr.out b/tests/expectations/parser/expression/binary/shr.out new file mode 100644 index 0000000000..04082f6b28 --- /dev/null +++ b/tests/expectations/parser/expression/binary/shr.out @@ -0,0 +1,461 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 7 + hi: 10 + op: Shr + span: + lo: 0 + hi: 10 + - Binary: + left: + Literal: + U8: + - "2" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "3" + - span: + lo: 5 + hi: 8 + op: Shr + span: + lo: 0 + hi: 8 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 7 + hi: 10 + op: Shr + span: + lo: 0 + hi: 10 + right: + Literal: + U8: + - "3" + - span: + lo: 14 + hi: 17 + op: Shr + span: + lo: 0 + hi: 17 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Add + span: + lo: 13 + hi: 22 + op: Shr + span: + lo: 0 + hi: 22 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 7 + hi: 10 + op: Shr + span: + lo: 0 + hi: 10 + right: + Literal: + U8: + - "3" + - span: + lo: 14 + hi: 17 + op: Shr + span: + lo: 0 + hi: 17 + - Binary: + left: + Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Literal: + U8: + - "3" + - span: + lo: 13 + hi: 16 + right: + Literal: + U8: + - "4" + - span: + lo: 19 + hi: 22 + op: Add + span: + lo: 13 + hi: 22 + op: Shr + span: + lo: 0 + hi: 22 + right: + Binary: + left: + Literal: + U8: + - "5" + - span: + lo: 26 + hi: 29 + right: + Literal: + U8: + - "6" + - span: + lo: 32 + hi: 35 + op: Add + span: + lo: 26 + hi: 35 + op: Shr + span: + lo: 0 + hi: 35 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shr + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Shr + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Shr + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Shr + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Shr + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Shr + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shr + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shr + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Shr + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Shr + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Shr + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shr + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Shr + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Shr + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Shr + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + op: Shr + span: + lo: 13 + hi: 21 + op: Shr + span: + lo: 1 + hi: 21 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + op: Shr + span: + lo: 27 + hi: 35 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + op: Shr + span: + lo: 39 + hi: 47 + op: Shr + span: + lo: 27 + hi: 47 + op: Shr + span: + lo: 1 + hi: 48 diff --git a/tests/expectations/parser/expression/binary/shr_wrapped.out b/tests/expectations/parser/expression/binary/shr_wrapped.out new file mode 100644 index 0000000000..fca601254b --- /dev/null +++ b/tests/expectations/parser/expression/binary/shr_wrapped.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShrWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: ShrWrapped + span: + lo: 0 + hi: 16 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" + op: ShrWrapped + span: + lo: 0 + hi: 31 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" + op: ShrWrapped + span: + lo: 0 + hi: 46 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: ShrWrapped + span: + lo: 1 + hi: 17 + op: Negate + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: ShrWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShrWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShrWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: ShrWrapped + span: + lo: 1 + hi: 34 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: ShrWrapped + span: + lo: 1 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: ShrWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShrWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: ShrWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: ShrWrapped + span: + lo: 1 + hi: 34 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: ShrWrapped + span: + lo: 1 + hi: 17 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" + op: ShrWrapped + span: + lo: 21 + hi: 37 + op: Shr + span: + lo: 1 + hi: 37 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":51,\\\"hi\\\":52}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":65,\\\"hi\\\":66}\"}" + op: ShrWrapped + span: + lo: 51 + hi: 67 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":71,\\\"hi\\\":72}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" + op: ShrWrapped + span: + lo: 71 + hi: 87 + op: Shr + span: + lo: 51 + hi: 87 + op: ShrWrapped + span: + lo: 1 + hi: 88 diff --git a/tests/expectations/parser/expression/binary/sub.out b/tests/expectations/parser/expression/binary/sub.out new file mode 100644 index 0000000000..33bfc0af35 --- /dev/null +++ b/tests/expectations/parser/expression/binary/sub.out @@ -0,0 +1,358 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U8: + - "1" + - span: + lo: 6 + hi: 9 + op: Sub + span: + lo: 0 + hi: 9 + - Binary: + left: + Literal: + U16: + - "2" + - span: + lo: 0 + hi: 4 + right: + Literal: + U64: + - "3" + - span: + lo: 5 + hi: 9 + op: Sub + span: + lo: 0 + hi: 9 + - Binary: + left: + Binary: + left: + Literal: + U32: + - "1" + - span: + lo: 0 + hi: 4 + right: + Literal: + U32: + - "2" + - span: + lo: 7 + hi: 11 + op: Sub + span: + lo: 0 + hi: 11 + right: + Literal: + U32: + - "3" + - span: + lo: 14 + hi: 18 + op: Sub + span: + lo: 0 + hi: 18 + - Binary: + left: + Binary: + left: + Literal: + U8: + - "1" + - span: + lo: 0 + hi: 3 + right: + Literal: + U16: + - "2" + - span: + lo: 6 + hi: 10 + op: Mul + span: + lo: 0 + hi: 10 + right: + Binary: + left: + Literal: + U32: + - "3" + - span: + lo: 13 + hi: 17 + right: + Literal: + I64: + - "4" + - span: + lo: 20 + hi: 24 + op: Mul + span: + lo: 13 + hi: 24 + op: Sub + span: + lo: 0 + hi: 24 + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Sub + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Sub + span: + lo: 0 + hi: 8 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + op: Sub + span: + lo: 0 + hi: 15 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Sub + span: + lo: 0 + hi: 22 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Sub + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Sub + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Sub + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Sub + span: + lo: 2 + hi: 10 + op: Negate + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Sub + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Sub + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + op: Sub + span: + lo: 1 + hi: 11 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Sub + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 0 + hi: 10 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + op: Sub + span: + lo: 2 + hi: 10 + op: Not + span: + lo: 1 + hi: 10 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Sub + span: + lo: 1 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + op: Sub + span: + lo: 1 + hi: 9 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + op: Sub + span: + lo: 13 + hi: 21 + op: Shl + span: + lo: 1 + hi: 21 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":27,\\\"hi\\\":28}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":33,\\\"hi\\\":34}\"}" + op: Sub + span: + lo: 27 + hi: 35 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + op: Sub + span: + lo: 39 + hi: 47 + op: Shl + span: + lo: 27 + hi: 47 + op: Sub + span: + lo: 1 + hi: 48 diff --git a/tests/expectations/parser/expression/binary/sub_wrapped.out b/tests/expectations/parser/expression/binary/sub_wrapped.out new file mode 100644 index 0000000000..accd061554 --- /dev/null +++ b/tests/expectations/parser/expression/binary/sub_wrapped.out @@ -0,0 +1,243 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: SubWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + op: SubWrapped + span: + lo: 0 + hi: 16 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":29,\\\"hi\\\":30}\"}" + op: SubWrapped + span: + lo: 0 + hi: 31 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" + op: SubWrapped + span: + lo: 0 + hi: 46 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: SubWrapped + span: + lo: 1 + hi: 17 + op: Negate + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: SubWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: SubWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: SubWrapped + span: + lo: 2 + hi: 18 + op: Negate + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: SubWrapped + span: + lo: 1 + hi: 34 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: SubWrapped + span: + lo: 1 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Binary: + left: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: SubWrapped + span: + lo: 1 + hi: 19 + - Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: SubWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 0 + hi: 18 + - Binary: + left: + Unary: + receiver: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: SubWrapped + span: + lo: 2 + hi: 18 + op: Not + span: + lo: 1 + hi: 18 + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}" + op: SubWrapped + span: + lo: 1 + hi: 34 + - Binary: + left: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: SubWrapped + span: + lo: 1 + hi: 17 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":35,\\\"hi\\\":36}\"}" + op: SubWrapped + span: + lo: 21 + hi: 37 + op: Shl + span: + lo: 1 + hi: 37 + right: + Binary: + left: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":51,\\\"hi\\\":52}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":65,\\\"hi\\\":66}\"}" + op: SubWrapped + span: + lo: 51 + hi: 67 + right: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":71,\\\"hi\\\":72}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" + op: SubWrapped + span: + lo: 71 + hi: 87 + op: Shl + span: + lo: 51 + hi: 87 + op: SubWrapped + span: + lo: 1 + hi: 88 diff --git a/tests/expectations/parser/expression/circuit_init_fail.out b/tests/expectations/parser/expression/circuit_init_fail.out new file mode 100644 index 0000000000..a1898918cf --- /dev/null +++ b/tests/expectations/parser/expression/circuit_init_fail.out @@ -0,0 +1,16 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ''\n --> test:1:3\n |\n 1 | x {\n | ^" + - "did not consume all input: '}' @ 1:3-4\n" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:5\n |\n 1 | x { , }\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,,,}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:6\n |\n 1 | x {x,,}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,,x}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,x}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:8\n |\n 1 | x {x:y,,}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,,x:y}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x {,x:y}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '}'\n --> test:1:6\n |\n 1 | x {x:}\n | ^" diff --git a/tests/expectations/parser/expression/ident.out b/tests/expectations/parser/expression/ident.out new file mode 100644 index 0000000000..17dcc95565 --- /dev/null +++ b/tests/expectations/parser/expression/ident.out @@ -0,0 +1,23 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + - Identifier: "{\"name\":\"X\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + - Identifier: "{\"name\":\"xxx\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + - Identifier: "{\"name\":\"XXX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + - Identifier: "{\"name\":\"x1\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" + - Identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"testx\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"truex\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"TRUE\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"testX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"letX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"constX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" + - Identifier: "{\"name\":\"test_test\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":9}\"}" + - Identifier: "{\"name\":\"self\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"input\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"selfX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"SelfX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"inputX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" diff --git a/tests/expectations/parser/expression/literal/address.out b/tests/expectations/parser/expression/literal/address.out new file mode 100644 index 0000000000..b0e997ef27 --- /dev/null +++ b/tests/expectations/parser/expression/literal/address.out @@ -0,0 +1,10 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9' @ 1:1-64" + - "'ALEO1' @ 1:1-6" + - "'Aleo1' @ 1:1-6" + - "'aleO1' @ 1:1-6" + - "'aleo2qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d9' @ 1:1-64" + - "'bleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d9' @ 1:1-64" diff --git a/tests/expectations/parser/expression/literal/address_fail.out b/tests/expectations/parser/expression/literal/address_fail.out new file mode 100644 index 0000000000..23b56de7c9 --- /dev/null +++ b/tests/expectations/parser/expression/literal/address_fail.out @@ -0,0 +1,14 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6Z2eu975wnpz2925ntjccd5cfqxtyu8sta57J9'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6Z2eu975wnpz2925ntjccd5cfqxtyu8sta57J9\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j9'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j9\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1'\n --> test:1:1\n |\n 1 | aleo1\n | ^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8st'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8st\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1'\n --> test:1:1\n |\n 1 | aleo1\n | ^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1aleo1\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d11\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x'\n --> test:1:1\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x + aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [EPAR0370001]: invalid address literal: 'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x'\n --> test:1:68\n |\n 1 | aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x + aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d1x\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" diff --git a/tests/expectations/parser/expression/literal/address_parse.out b/tests/expectations/parser/expression/literal/address_parse.out new file mode 100644 index 0000000000..536b2d1efe --- /dev/null +++ b/tests/expectations/parser/expression/literal/address_parse.out @@ -0,0 +1,10 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9 + - span: + lo: 0 + hi: 63 diff --git a/tests/expectations/parser/expression/literal/bool.out b/tests/expectations/parser/expression/literal/bool.out new file mode 100644 index 0000000000..9222f3dd49 --- /dev/null +++ b/tests/expectations/parser/expression/literal/bool.out @@ -0,0 +1,12 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'true' @ 1:1-5" + - "'True' @ 1:1-5" + - "'TRUE' @ 1:1-5" + - "'truE' @ 1:1-5" + - "'false' @ 1:1-6" + - "'False' @ 1:1-6" + - "'FALSE' @ 1:1-6" + - "'falsE' @ 1:1-6" diff --git a/tests/expectations/parser/expression/literal/bool_parse.out b/tests/expectations/parser/expression/literal/bool_parse.out new file mode 100644 index 0000000000..e2dfa68011 --- /dev/null +++ b/tests/expectations/parser/expression/literal/bool_parse.out @@ -0,0 +1,16 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + Boolean: + - true + - span: + lo: 0 + hi: 4 + - Literal: + Boolean: + - false + - span: + lo: 0 + hi: 5 diff --git a/tests/expectations/parser/expression/literal/char.out b/tests/expectations/parser/expression/literal/char.out new file mode 100644 index 0000000000..0a52d2a847 --- /dev/null +++ b/tests/expectations/parser/expression/literal/char.out @@ -0,0 +1,57 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `'a'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'Z'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\\"'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\''`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\t'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\r'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\0'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{F}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{E5}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'å'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{4e0}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'Ӡ'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{d800}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'❤'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1F622}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'😭'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{10001F}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x2A'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x7f'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x00'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x01'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x02'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x03'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x04'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x05'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x06'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x07'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x10'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x11'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x12'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x13'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x14'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x15'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x16'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x17'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x20'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x21'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x22'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x23'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x24'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x25'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x26'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x27'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x30'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x31'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x32'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x33'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x34'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x35'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x36'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x37'`.\n" diff --git a/tests/expectations/parser/expression/literal/char_fail.out b/tests/expectations/parser/expression/literal/char_fail.out new file mode 100644 index 0000000000..d2da2bcb23 --- /dev/null +++ b/tests/expectations/parser/expression/literal/char_fail.out @@ -0,0 +1,51 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `'\\'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `\\n`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'a`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x7'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\xz'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x9A'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x7g'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x80'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\xc1'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\xc2'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\xDF'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\xC0'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\xe0'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x9f'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'abcdefg'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\a'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\z'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\A'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\Z'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\1'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\9'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\*'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\t\\t'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\uz'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u1'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u}`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'🦀\\n'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u123'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'🦀1🦀'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u6🦀}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{af🦀'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764z'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{276g}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u9999999'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u00000000'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u01000000'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{110000}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1234567890}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'😭😂😘'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'⁩'`.\n" diff --git a/tests/expectations/parser/expression/literal/char_parse.out b/tests/expectations/parser/expression/literal/char_parse.out new file mode 100644 index 0000000000..c3b482b2c7 --- /dev/null +++ b/tests/expectations/parser/expression/literal/char_parse.out @@ -0,0 +1,55 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `'a'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'Z'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\\"'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\t'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\r'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\0'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{F}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{E5}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'å'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{4e0}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'Ӡ'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{2764}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'❤'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{1F622}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'😭'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\u{10001F}'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x2A'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x7f'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x00'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x01'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x02'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x03'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x04'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x05'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x06'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x07'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x10'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x11'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x12'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x13'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x14'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x15'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x16'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x17'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x20'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x21'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x22'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x23'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x24'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x25'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x26'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x27'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x30'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x31'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x32'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x33'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x34'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x35'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x36'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'\\x37'`.\n" diff --git a/tests/expectations/parser/expression/literal/comment.out b/tests/expectations/parser/expression/literal/comment.out new file mode 100644 index 0000000000..346f38884e --- /dev/null +++ b/tests/expectations/parser/expression/literal/comment.out @@ -0,0 +1,10 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: {} + circuits: {} diff --git a/tests/expectations/parser/expression/literal/comment_fail.out b/tests/expectations/parser/expression/literal/comment_fail.out new file mode 100644 index 0000000000..1184910801 --- /dev/null +++ b/tests/expectations/parser/expression/literal/comment_fail.out @@ -0,0 +1,15 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370015]: Empty block comment." + - "Error [EPAR0370016]: Block comment does not close with content: `/* test`." + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '/'\n --> test:1:1\n |\n 1 | / /\n | ^" + - "Error [EPAR0370016]: Block comment does not close with content: `/*/`." + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '*'\n --> test:1:1\n |\n 1 | */\n | ^" + - "Error [EPAR0370017]: Could not lex the following content: `🦀**/`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `🦀*/`.\n" + - "Error [EPAR0370016]: Block comment does not close with content: `/*🦀/`." + - "Error [EPAR0370016]: Block comment does not close with content: `/**🦀`." + - "Error [EPAR0370016]: Block comment does not close with content: `/*🦀`." + - "Error [EPAR0370016]: Block comment does not close with content: `/*/*`." diff --git a/tests/expectations/parser/expression/literal/formatted_string.out b/tests/expectations/parser/expression/literal/formatted_string.out new file mode 100644 index 0000000000..47fddf9292 --- /dev/null +++ b/tests/expectations/parser/expression/literal/formatted_string.out @@ -0,0 +1,24 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'\"{}\"' @ 1:1-5" + - "'\" {} \"' @ 1:1-7" + - "'\"{}d\"' @ 1:1-6" + - "'\"{}D\"' @ 1:1-6" + - "'\"d{}\"' @ 1:1-6" + - "'\"D{}\"' @ 1:1-6" + - "'\"D{}D\"' @ 1:1-7" + - "'\"{}{}\"' @ 1:1-7" + - "'\"D{}{}D\"' @ 1:1-9" + - "'\"D{}{}\"' @ 1:1-8" + - "'\"{}{}D\"' @ 1:1-8" + - "'\"D{}D{}D\"' @ 1:1-10" + - "'\"{{}}\"' @ 1:1-7" + - "'\"}}\"' @ 1:1-5" + - "'\"{{\"' @ 1:1-5" + - "'\"}}{{\"' @ 1:1-7" + - "'\"{{}\"' @ 1:1-6" + - "'\"{}}\"' @ 1:1-6" + - "'\"{\"' @ 1:1-4" + - "'\"}\"' @ 1:1-4" diff --git a/tests/expectations/parser/expression/literal/group.out b/tests/expectations/parser/expression/literal/group.out new file mode 100644 index 0000000000..6573e4ac8f --- /dev/null +++ b/tests/expectations/parser/expression/literal/group.out @@ -0,0 +1,442 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + Group: + Tuple: + x: SignHigh + y: Inferred + span: + lo: 0 + hi: 11 + - Literal: + Group: + Tuple: + x: Inferred + y: SignLow + span: + lo: 0 + hi: 11 + - Literal: + Group: + Tuple: + x: SignHigh + y: SignLow + span: + lo: 0 + hi: 11 + - Literal: + Group: + Tuple: + x: SignLow + y: SignHigh + span: + lo: 0 + hi: 11 + - Literal: + Group: + Tuple: + x: SignHigh + y: SignHigh + span: + lo: 0 + hi: 11 + - Literal: + Group: + Tuple: + x: SignLow + y: SignLow + span: + lo: 0 + hi: 11 + - Literal: + Group: + Tuple: + x: Inferred + y: Inferred + span: + lo: 0 + hi: 11 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "-456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "-123" + - span: + lo: 2 + hi: 5 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "-123" + - span: + lo: 2 + hi: 5 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: Inferred + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignLow + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignLow + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignHigh + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignHigh + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignLow + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: Inferred + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: Inferred + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: SignLow + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: SignLow + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: Inferred + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Literal: + Group: + Single: + - "1" + - span: + lo: 0 + hi: 6 + - Unary: + receiver: + Literal: + Group: + Single: + - "1" + - span: + lo: 1 + hi: 7 + op: Negate + span: + lo: 0 + hi: 7 diff --git a/tests/expectations/parser/expression/literal/group_fail.out b/tests/expectations/parser/expression/literal/group_fail.out new file mode 100644 index 0000000000..607bbed79e --- /dev/null +++ b/tests/expectations/parser/expression/literal/group_fail.out @@ -0,0 +1,16 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: 'group' @ 1:3-8\n" + - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123)group\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:2\n |\n 1 | (,)group\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '+'\n --> test:1:2\n |\n 1 | (+, -,)group\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:2\n |\n 1 | (,+, -)group\n | ^" + - "did not consume all input: 'group' @ 1:6-11\n" + - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456u8)group\n | ^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456field)group\n | ^^^" + - "Error [EPAR0370004]: Unexpected white space between terms (123,456) and group\n --> test:1:11\n |\n 1 | (123, 456) group\n | ^" + - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, )group\n | ^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456, 789)group\n | ^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456)bool\n | ^^^" diff --git a/tests/expectations/parser/expression/literal/int.out b/tests/expectations/parser/expression/literal/int.out new file mode 100644 index 0000000000..ccac03f213 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int.out @@ -0,0 +1,111 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'123' @ 1:1-4,'abc123' @ 1:4-10" + - "'123' @ 1:1-4,'abc' @ 1:4-7" + - "'123' @ 1:1-4" + - "'456' @ 1:1-4" + - "'123' @ 1:1-4,'456' @ 1:5-8" + - "'87377802873778028737780287377802873778028737780287377802873778028737780287377802' @ 1:1-81" + - "'8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802' @ 1:1-401" + - "'340130024' @ 1:1-10" + - "'158951116' @ 1:1-10" + - "'155529659' @ 1:1-10" + - "'642023166' @ 1:1-10" + - "'228481736' @ 1:1-10" + - "'469712960' @ 1:1-10" + - "'929437719' @ 1:1-10" + - "'721072814' @ 1:1-10" + - "'363254789' @ 1:1-10" + - "'906732565' @ 1:1-10" + - "'288246391' @ 1:1-10" + - "'724940549' @ 1:1-10" + - "'487101620' @ 1:1-10" + - "'261373583' @ 1:1-10" + - "'891163927' @ 1:1-10" + - "'743967544' @ 1:1-10" + - "'8372586' @ 1:1-8" + - "'461793278' @ 1:1-10" + - "'806307045' @ 1:1-10" + - "'122764546' @ 1:1-10" + - "'356336181' @ 1:1-10" + - "'158370903' @ 1:1-10" + - "'774460877' @ 1:1-10" + - "'557174131' @ 1:1-10" + - "'492401267' @ 1:1-10" + - "'893445620' @ 1:1-10" + - "'957757048' @ 1:1-10" + - "'721540649' @ 1:1-10" + - "'390746493' @ 1:1-10" + - "'211251725' @ 1:1-10" + - "'938266114' @ 1:1-10" + - "'156985870' @ 1:1-10" + - "'703831126' @ 1:1-10" + - "'729964155' @ 1:1-10" + - "'988151305' @ 1:1-10" + - "'320872435' @ 1:1-10" + - "'719287167' @ 1:1-10" + - "'152289486' @ 1:1-10" + - "'740067975' @ 1:1-10" + - "'728627816' @ 1:1-10" + - "'385008978' @ 1:1-10" + - "'553967635' @ 1:1-10" + - "'71980713' @ 1:1-9" + - "'519444716' @ 1:1-10" + - "'116499965' @ 1:1-10" + - "'717422268' @ 1:1-10" + - "'18966279' @ 1:1-9" + - "'22458638' @ 1:1-9" + - "'857282620' @ 1:1-10" + - "'920675898' @ 1:1-10" + - "'762235516' @ 1:1-10" + - "'469018377' @ 1:1-10" + - "'199986521' @ 1:1-10" + - "'536679358' @ 1:1-10" + - "'591399452' @ 1:1-10" + - "'83083158' @ 1:1-9" + - "'599449051' @ 1:1-10" + - "'445442318' @ 1:1-10" + - "'585486590' @ 1:1-10" + - "'209278800' @ 1:1-10" + - "'873568117' @ 1:1-10" + - "'664470940' @ 1:1-10" + - "'465262783' @ 1:1-10" + - "'605652874' @ 1:1-10" + - "'376803940' @ 1:1-10" + - "'965247040' @ 1:1-10" + - "'598474509' @ 1:1-10" + - "'845119918' @ 1:1-10" + - "'648159133' @ 1:1-10" + - "'669051032' @ 1:1-10" + - "'800600261' @ 1:1-10" + - "'434689764' @ 1:1-10" + - "'520060080' @ 1:1-10" + - "'804659385' @ 1:1-10" + - "'537828058' @ 1:1-10" + - "'716600292' @ 1:1-10" + - "'387020273' @ 1:1-10" + - "'199375617' @ 1:1-10" + - "'680337189' @ 1:1-10" + - "'818479931' @ 1:1-10" + - "'893693281' @ 1:1-10" + - "'87377802' @ 1:1-9" + - "'84699261' @ 1:1-9" + - "'292826090' @ 1:1-10" + - "'569171405' @ 1:1-10" + - "'387436237' @ 1:1-10" + - "'150682190' @ 1:1-10" + - "'888770419' @ 1:1-10" + - "'824696431' @ 1:1-10" + - "'765659803' @ 1:1-10" + - "'270163693' @ 1:1-10" + - "'427940240' @ 1:1-10" + - "'504997332' @ 1:1-10" + - "'337808338' @ 1:1-10" + - "'907200008' @ 1:1-10" + - "'757177889' @ 1:1-10" + - "'696697188' @ 1:1-10" + - "'41376051' @ 1:1-9" + - "'496293518' @ 1:1-10" + - "'251218820' @ 1:1-10" diff --git a/tests/expectations/parser/expression/literal/int_fail.out b/tests/expectations/parser/expression/literal/int_fail.out new file mode 100644 index 0000000000..957a328f5f --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/expression/literal/int_parse/field.out b/tests/expectations/parser/expression/literal/int_parse/field.out new file mode 100644 index 0000000000..9789a049b3 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/field.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + Field: + - "123" + - span: + lo: 0 + hi: 8 + - Literal: + Field: + - "123" + - span: + lo: 0 + hi: 8 + - Literal: + Field: + - "456" + - span: + lo: 0 + hi: 8 + - Literal: + Field: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 85 + - Literal: + Field: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 405 + - Literal: + Field: + - "340130024" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "158951116" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "155529659" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "642023166" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "228481736" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "469712960" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "929437719" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "721072814" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "363254789" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "906732565" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "288246391" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "724940549" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "487101620" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "261373583" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "891163927" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "743967544" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "8372586" + - span: + lo: 0 + hi: 12 + - Literal: + Field: + - "461793278" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "806307045" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "122764546" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "356336181" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "158370903" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "774460877" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "557174131" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "492401267" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "893445620" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "957757048" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "721540649" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "390746493" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "211251725" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "938266114" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "156985870" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "703831126" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "729964155" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "988151305" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "320872435" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "719287167" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "152289486" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "740067975" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "728627816" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "385008978" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "553967635" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "71980713" + - span: + lo: 0 + hi: 13 + - Literal: + Field: + - "519444716" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "116499965" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "717422268" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "18966279" + - span: + lo: 0 + hi: 13 + - Literal: + Field: + - "22458638" + - span: + lo: 0 + hi: 13 + - Literal: + Field: + - "857282620" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "920675898" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "762235516" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "469018377" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "199986521" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "536679358" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "591399452" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "83083158" + - span: + lo: 0 + hi: 13 + - Literal: + Field: + - "599449051" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "445442318" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "585486590" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "209278800" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "873568117" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "664470940" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "465262783" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "605652874" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "376803940" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "965247040" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "598474509" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "845119918" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "648159133" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "669051032" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "800600261" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "434689764" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "520060080" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "804659385" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "537828058" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "716600292" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "387020273" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "199375617" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "680337189" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "818479931" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "893693281" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "87377802" + - span: + lo: 0 + hi: 13 + - Literal: + Field: + - "84699261" + - span: + lo: 0 + hi: 13 + - Literal: + Field: + - "292826090" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "569171405" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "387436237" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "150682190" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "888770419" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "824696431" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "765659803" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "270163693" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "427940240" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "504997332" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "337808338" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "907200008" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "757177889" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "696697188" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "41376051" + - span: + lo: 0 + hi: 13 + - Literal: + Field: + - "496293518" + - span: + lo: 0 + hi: 14 + - Literal: + Field: + - "251218820" + - span: + lo: 0 + hi: 14 diff --git a/tests/expectations/parser/expression/literal/int_parse/field_fail.out b/tests/expectations/parser/expression/literal/int_parse/field_fail.out new file mode 100644 index 0000000000..68daceda67 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/field_fail.out @@ -0,0 +1,5 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/expression/literal/int_parse/i128.out b/tests/expectations/parser/expression/literal/int_parse/i128.out new file mode 100644 index 0000000000..0e61e79d70 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/i128.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + I128: + - "123" + - span: + lo: 0 + hi: 7 + - Literal: + I128: + - "123" + - span: + lo: 0 + hi: 7 + - Literal: + I128: + - "456" + - span: + lo: 0 + hi: 7 + - Literal: + I128: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 84 + - Literal: + I128: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 404 + - Literal: + I128: + - "340130024" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "158951116" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "155529659" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "642023166" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "228481736" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "469712960" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "929437719" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "721072814" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "363254789" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "906732565" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "288246391" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "724940549" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "487101620" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "261373583" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "891163927" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "743967544" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "8372586" + - span: + lo: 0 + hi: 11 + - Literal: + I128: + - "461793278" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "806307045" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "122764546" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "356336181" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "158370903" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "774460877" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "557174131" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "492401267" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "893445620" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "957757048" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "721540649" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "390746493" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "211251725" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "938266114" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "156985870" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "703831126" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "729964155" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "988151305" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "320872435" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "719287167" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "152289486" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "740067975" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "728627816" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "385008978" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "553967635" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "71980713" + - span: + lo: 0 + hi: 12 + - Literal: + I128: + - "519444716" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "116499965" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "717422268" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "18966279" + - span: + lo: 0 + hi: 12 + - Literal: + I128: + - "22458638" + - span: + lo: 0 + hi: 12 + - Literal: + I128: + - "857282620" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "920675898" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "762235516" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "469018377" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "199986521" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "536679358" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "591399452" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "83083158" + - span: + lo: 0 + hi: 12 + - Literal: + I128: + - "599449051" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "445442318" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "585486590" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "209278800" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "873568117" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "664470940" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "465262783" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "605652874" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "376803940" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "965247040" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "598474509" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "845119918" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "648159133" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "669051032" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "800600261" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "434689764" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "520060080" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "804659385" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "537828058" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "716600292" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "387020273" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "199375617" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "680337189" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "818479931" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "893693281" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "87377802" + - span: + lo: 0 + hi: 12 + - Literal: + I128: + - "84699261" + - span: + lo: 0 + hi: 12 + - Literal: + I128: + - "292826090" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "569171405" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "387436237" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "150682190" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "888770419" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "824696431" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "765659803" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "270163693" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "427940240" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "504997332" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "337808338" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "907200008" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "757177889" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "696697188" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "41376051" + - span: + lo: 0 + hi: 12 + - Literal: + I128: + - "496293518" + - span: + lo: 0 + hi: 13 + - Literal: + I128: + - "251218820" + - span: + lo: 0 + hi: 13 diff --git a/tests/expectations/parser/expression/literal/int_parse/i16.out b/tests/expectations/parser/expression/literal/int_parse/i16.out new file mode 100644 index 0000000000..4da22229ad --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/i16.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + I16: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + I16: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + I16: + - "456" + - span: + lo: 0 + hi: 6 + - Literal: + I16: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Literal: + I16: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Literal: + I16: + - "340130024" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "158951116" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "155529659" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "642023166" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "228481736" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "469712960" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "929437719" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "721072814" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "363254789" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "906732565" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "288246391" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "724940549" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "487101620" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "261373583" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "891163927" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "743967544" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "8372586" + - span: + lo: 0 + hi: 10 + - Literal: + I16: + - "461793278" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "806307045" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "122764546" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "356336181" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "158370903" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "774460877" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "557174131" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "492401267" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "893445620" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "957757048" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "721540649" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "390746493" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "211251725" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "938266114" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "156985870" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "703831126" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "729964155" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "988151305" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "320872435" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "719287167" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "152289486" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "740067975" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "728627816" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "385008978" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "553967635" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "71980713" + - span: + lo: 0 + hi: 11 + - Literal: + I16: + - "519444716" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "116499965" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "717422268" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "18966279" + - span: + lo: 0 + hi: 11 + - Literal: + I16: + - "22458638" + - span: + lo: 0 + hi: 11 + - Literal: + I16: + - "857282620" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "920675898" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "762235516" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "469018377" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "199986521" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "536679358" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "591399452" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "83083158" + - span: + lo: 0 + hi: 11 + - Literal: + I16: + - "599449051" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "445442318" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "585486590" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "209278800" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "873568117" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "664470940" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "465262783" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "605652874" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "376803940" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "965247040" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "598474509" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "845119918" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "648159133" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "669051032" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "800600261" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "434689764" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "520060080" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "804659385" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "537828058" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "716600292" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "387020273" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "199375617" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "680337189" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "818479931" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "893693281" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "87377802" + - span: + lo: 0 + hi: 11 + - Literal: + I16: + - "84699261" + - span: + lo: 0 + hi: 11 + - Literal: + I16: + - "292826090" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "569171405" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "387436237" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "150682190" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "888770419" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "824696431" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "765659803" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "270163693" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "427940240" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "504997332" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "337808338" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "907200008" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "757177889" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "696697188" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "41376051" + - span: + lo: 0 + hi: 11 + - Literal: + I16: + - "496293518" + - span: + lo: 0 + hi: 12 + - Literal: + I16: + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/i32.out b/tests/expectations/parser/expression/literal/int_parse/i32.out new file mode 100644 index 0000000000..2ab28183df --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/i32.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + I32: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + I32: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + I32: + - "456" + - span: + lo: 0 + hi: 6 + - Literal: + I32: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Literal: + I32: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Literal: + I32: + - "340130024" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "158951116" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "155529659" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "642023166" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "228481736" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "469712960" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "929437719" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "721072814" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "363254789" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "906732565" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "288246391" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "724940549" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "487101620" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "261373583" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "891163927" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "743967544" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "8372586" + - span: + lo: 0 + hi: 10 + - Literal: + I32: + - "461793278" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "806307045" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "122764546" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "356336181" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "158370903" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "774460877" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "557174131" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "492401267" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "893445620" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "957757048" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "721540649" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "390746493" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "211251725" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "938266114" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "156985870" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "703831126" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "729964155" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "988151305" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "320872435" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "719287167" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "152289486" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "740067975" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "728627816" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "385008978" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "553967635" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "71980713" + - span: + lo: 0 + hi: 11 + - Literal: + I32: + - "519444716" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "116499965" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "717422268" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "18966279" + - span: + lo: 0 + hi: 11 + - Literal: + I32: + - "22458638" + - span: + lo: 0 + hi: 11 + - Literal: + I32: + - "857282620" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "920675898" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "762235516" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "469018377" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "199986521" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "536679358" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "591399452" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "83083158" + - span: + lo: 0 + hi: 11 + - Literal: + I32: + - "599449051" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "445442318" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "585486590" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "209278800" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "873568117" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "664470940" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "465262783" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "605652874" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "376803940" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "965247040" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "598474509" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "845119918" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "648159133" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "669051032" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "800600261" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "434689764" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "520060080" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "804659385" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "537828058" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "716600292" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "387020273" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "199375617" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "680337189" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "818479931" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "893693281" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "87377802" + - span: + lo: 0 + hi: 11 + - Literal: + I32: + - "84699261" + - span: + lo: 0 + hi: 11 + - Literal: + I32: + - "292826090" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "569171405" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "387436237" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "150682190" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "888770419" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "824696431" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "765659803" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "270163693" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "427940240" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "504997332" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "337808338" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "907200008" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "757177889" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "696697188" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "41376051" + - span: + lo: 0 + hi: 11 + - Literal: + I32: + - "496293518" + - span: + lo: 0 + hi: 12 + - Literal: + I32: + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/i64.out b/tests/expectations/parser/expression/literal/int_parse/i64.out new file mode 100644 index 0000000000..31870870f2 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/i64.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + I64: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + I64: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + I64: + - "456" + - span: + lo: 0 + hi: 6 + - Literal: + I64: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Literal: + I64: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Literal: + I64: + - "340130024" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "158951116" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "155529659" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "642023166" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "228481736" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "469712960" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "929437719" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "721072814" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "363254789" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "906732565" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "288246391" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "724940549" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "487101620" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "261373583" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "891163927" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "743967544" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "8372586" + - span: + lo: 0 + hi: 10 + - Literal: + I64: + - "461793278" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "806307045" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "122764546" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "356336181" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "158370903" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "774460877" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "557174131" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "492401267" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "893445620" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "957757048" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "721540649" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "390746493" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "211251725" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "938266114" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "156985870" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "703831126" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "729964155" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "988151305" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "320872435" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "719287167" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "152289486" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "740067975" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "728627816" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "385008978" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "553967635" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "71980713" + - span: + lo: 0 + hi: 11 + - Literal: + I64: + - "519444716" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "116499965" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "717422268" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "18966279" + - span: + lo: 0 + hi: 11 + - Literal: + I64: + - "22458638" + - span: + lo: 0 + hi: 11 + - Literal: + I64: + - "857282620" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "920675898" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "762235516" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "469018377" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "199986521" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "536679358" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "591399452" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "83083158" + - span: + lo: 0 + hi: 11 + - Literal: + I64: + - "599449051" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "445442318" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "585486590" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "209278800" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "873568117" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "664470940" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "465262783" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "605652874" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "376803940" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "965247040" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "598474509" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "845119918" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "648159133" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "669051032" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "800600261" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "434689764" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "520060080" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "804659385" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "537828058" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "716600292" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "387020273" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "199375617" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "680337189" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "818479931" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "893693281" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "87377802" + - span: + lo: 0 + hi: 11 + - Literal: + I64: + - "84699261" + - span: + lo: 0 + hi: 11 + - Literal: + I64: + - "292826090" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "569171405" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "387436237" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "150682190" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "888770419" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "824696431" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "765659803" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "270163693" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "427940240" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "504997332" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "337808338" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "907200008" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "757177889" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "696697188" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "41376051" + - span: + lo: 0 + hi: 11 + - Literal: + I64: + - "496293518" + - span: + lo: 0 + hi: 12 + - Literal: + I64: + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/i8.out b/tests/expectations/parser/expression/literal/int_parse/i8.out new file mode 100644 index 0000000000..cf6fe6fb31 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/i8.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + I8: + - "123" + - span: + lo: 0 + hi: 5 + - Literal: + I8: + - "123" + - span: + lo: 0 + hi: 5 + - Literal: + I8: + - "456" + - span: + lo: 0 + hi: 5 + - Literal: + I8: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 82 + - Literal: + I8: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 402 + - Literal: + I8: + - "340130024" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "158951116" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "155529659" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "642023166" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "228481736" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "469712960" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "929437719" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "721072814" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "363254789" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "906732565" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "288246391" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "724940549" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "487101620" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "261373583" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "891163927" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "743967544" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "8372586" + - span: + lo: 0 + hi: 9 + - Literal: + I8: + - "461793278" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "806307045" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "122764546" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "356336181" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "158370903" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "774460877" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "557174131" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "492401267" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "893445620" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "957757048" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "721540649" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "390746493" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "211251725" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "938266114" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "156985870" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "703831126" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "729964155" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "988151305" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "320872435" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "719287167" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "152289486" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "740067975" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "728627816" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "385008978" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "553967635" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "71980713" + - span: + lo: 0 + hi: 10 + - Literal: + I8: + - "519444716" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "116499965" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "717422268" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "18966279" + - span: + lo: 0 + hi: 10 + - Literal: + I8: + - "22458638" + - span: + lo: 0 + hi: 10 + - Literal: + I8: + - "857282620" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "920675898" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "762235516" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "469018377" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "199986521" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "536679358" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "591399452" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "83083158" + - span: + lo: 0 + hi: 10 + - Literal: + I8: + - "599449051" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "445442318" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "585486590" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "209278800" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "873568117" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "664470940" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "465262783" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "605652874" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "376803940" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "965247040" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "598474509" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "845119918" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "648159133" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "669051032" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "800600261" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "434689764" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "520060080" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "804659385" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "537828058" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "716600292" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "387020273" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "199375617" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "680337189" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "818479931" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "893693281" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "87377802" + - span: + lo: 0 + hi: 10 + - Literal: + I8: + - "84699261" + - span: + lo: 0 + hi: 10 + - Literal: + I8: + - "292826090" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "569171405" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "387436237" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "150682190" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "888770419" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "824696431" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "765659803" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "270163693" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "427940240" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "504997332" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "337808338" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "907200008" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "757177889" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "696697188" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "41376051" + - span: + lo: 0 + hi: 10 + - Literal: + I8: + - "496293518" + - span: + lo: 0 + hi: 11 + - Literal: + I8: + - "251218820" + - span: + lo: 0 + hi: 11 diff --git a/tests/expectations/parser/expression/literal/int_parse/implicit.out b/tests/expectations/parser/expression/literal/int_parse/implicit.out new file mode 100644 index 0000000000..1030593369 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/implicit.out @@ -0,0 +1,109 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 456.\n --> test:1:1\n |\n 1 | 456\n | ^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 87377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 87377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 340130024.\n --> test:1:1\n |\n 1 | 340130024\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 158951116.\n --> test:1:1\n |\n 1 | 158951116\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 155529659.\n --> test:1:1\n |\n 1 | 155529659\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 642023166.\n --> test:1:1\n |\n 1 | 642023166\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 228481736.\n --> test:1:1\n |\n 1 | 228481736\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 469712960.\n --> test:1:1\n |\n 1 | 469712960\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 929437719.\n --> test:1:1\n |\n 1 | 929437719\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 721072814.\n --> test:1:1\n |\n 1 | 721072814\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 363254789.\n --> test:1:1\n |\n 1 | 363254789\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 906732565.\n --> test:1:1\n |\n 1 | 906732565\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 288246391.\n --> test:1:1\n |\n 1 | 288246391\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 724940549.\n --> test:1:1\n |\n 1 | 724940549\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 487101620.\n --> test:1:1\n |\n 1 | 487101620\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 261373583.\n --> test:1:1\n |\n 1 | 261373583\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 891163927.\n --> test:1:1\n |\n 1 | 891163927\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 743967544.\n --> test:1:1\n |\n 1 | 743967544\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 8372586.\n --> test:1:1\n |\n 1 | 8372586\n | ^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 461793278.\n --> test:1:1\n |\n 1 | 461793278\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 806307045.\n --> test:1:1\n |\n 1 | 806307045\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 122764546.\n --> test:1:1\n |\n 1 | 122764546\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 356336181.\n --> test:1:1\n |\n 1 | 356336181\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 158370903.\n --> test:1:1\n |\n 1 | 158370903\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 774460877.\n --> test:1:1\n |\n 1 | 774460877\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 557174131.\n --> test:1:1\n |\n 1 | 557174131\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 492401267.\n --> test:1:1\n |\n 1 | 492401267\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 893445620.\n --> test:1:1\n |\n 1 | 893445620\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 957757048.\n --> test:1:1\n |\n 1 | 957757048\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 721540649.\n --> test:1:1\n |\n 1 | 721540649\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 390746493.\n --> test:1:1\n |\n 1 | 390746493\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 211251725.\n --> test:1:1\n |\n 1 | 211251725\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 938266114.\n --> test:1:1\n |\n 1 | 938266114\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 156985870.\n --> test:1:1\n |\n 1 | 156985870\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 703831126.\n --> test:1:1\n |\n 1 | 703831126\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 729964155.\n --> test:1:1\n |\n 1 | 729964155\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 988151305.\n --> test:1:1\n |\n 1 | 988151305\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 320872435.\n --> test:1:1\n |\n 1 | 320872435\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 719287167.\n --> test:1:1\n |\n 1 | 719287167\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 152289486.\n --> test:1:1\n |\n 1 | 152289486\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 740067975.\n --> test:1:1\n |\n 1 | 740067975\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 728627816.\n --> test:1:1\n |\n 1 | 728627816\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 385008978.\n --> test:1:1\n |\n 1 | 385008978\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 553967635.\n --> test:1:1\n |\n 1 | 553967635\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 71980713.\n --> test:1:1\n |\n 1 | 71980713\n | ^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 519444716.\n --> test:1:1\n |\n 1 | 519444716\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 116499965.\n --> test:1:1\n |\n 1 | 116499965\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 717422268.\n --> test:1:1\n |\n 1 | 717422268\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 18966279.\n --> test:1:1\n |\n 1 | 18966279\n | ^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 22458638.\n --> test:1:1\n |\n 1 | 22458638\n | ^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 857282620.\n --> test:1:1\n |\n 1 | 857282620\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 920675898.\n --> test:1:1\n |\n 1 | 920675898\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 762235516.\n --> test:1:1\n |\n 1 | 762235516\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 469018377.\n --> test:1:1\n |\n 1 | 469018377\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 199986521.\n --> test:1:1\n |\n 1 | 199986521\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 536679358.\n --> test:1:1\n |\n 1 | 536679358\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 591399452.\n --> test:1:1\n |\n 1 | 591399452\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 83083158.\n --> test:1:1\n |\n 1 | 83083158\n | ^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 599449051.\n --> test:1:1\n |\n 1 | 599449051\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 445442318.\n --> test:1:1\n |\n 1 | 445442318\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 585486590.\n --> test:1:1\n |\n 1 | 585486590\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 209278800.\n --> test:1:1\n |\n 1 | 209278800\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 873568117.\n --> test:1:1\n |\n 1 | 873568117\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 664470940.\n --> test:1:1\n |\n 1 | 664470940\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 465262783.\n --> test:1:1\n |\n 1 | 465262783\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 605652874.\n --> test:1:1\n |\n 1 | 605652874\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 376803940.\n --> test:1:1\n |\n 1 | 376803940\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 965247040.\n --> test:1:1\n |\n 1 | 965247040\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 598474509.\n --> test:1:1\n |\n 1 | 598474509\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 845119918.\n --> test:1:1\n |\n 1 | 845119918\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 648159133.\n --> test:1:1\n |\n 1 | 648159133\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 669051032.\n --> test:1:1\n |\n 1 | 669051032\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 800600261.\n --> test:1:1\n |\n 1 | 800600261\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 434689764.\n --> test:1:1\n |\n 1 | 434689764\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 520060080.\n --> test:1:1\n |\n 1 | 520060080\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 804659385.\n --> test:1:1\n |\n 1 | 804659385\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 537828058.\n --> test:1:1\n |\n 1 | 537828058\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 716600292.\n --> test:1:1\n |\n 1 | 716600292\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 387020273.\n --> test:1:1\n |\n 1 | 387020273\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 199375617.\n --> test:1:1\n |\n 1 | 199375617\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 680337189.\n --> test:1:1\n |\n 1 | 680337189\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 818479931.\n --> test:1:1\n |\n 1 | 818479931\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 893693281.\n --> test:1:1\n |\n 1 | 893693281\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 87377802.\n --> test:1:1\n |\n 1 | 87377802\n | ^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 84699261.\n --> test:1:1\n |\n 1 | 84699261\n | ^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 292826090.\n --> test:1:1\n |\n 1 | 292826090\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 569171405.\n --> test:1:1\n |\n 1 | 569171405\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 387436237.\n --> test:1:1\n |\n 1 | 387436237\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 150682190.\n --> test:1:1\n |\n 1 | 150682190\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 888770419.\n --> test:1:1\n |\n 1 | 888770419\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 824696431.\n --> test:1:1\n |\n 1 | 824696431\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 765659803.\n --> test:1:1\n |\n 1 | 765659803\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 270163693.\n --> test:1:1\n |\n 1 | 270163693\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 427940240.\n --> test:1:1\n |\n 1 | 427940240\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 504997332.\n --> test:1:1\n |\n 1 | 504997332\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 337808338.\n --> test:1:1\n |\n 1 | 337808338\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 907200008.\n --> test:1:1\n |\n 1 | 907200008\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 757177889.\n --> test:1:1\n |\n 1 | 757177889\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 696697188.\n --> test:1:1\n |\n 1 | 696697188\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 41376051.\n --> test:1:1\n |\n 1 | 41376051\n | ^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 496293518.\n --> test:1:1\n |\n 1 | 496293518\n | ^^^^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 251218820.\n --> test:1:1\n |\n 1 | 251218820\n | ^^^^^^^^^" diff --git a/tests/expectations/parser/expression/literal/int_parse/mono_group.out b/tests/expectations/parser/expression/literal/int_parse/mono_group.out new file mode 100644 index 0000000000..d8ebd0c812 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/mono_group.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + Group: + Single: + - "123" + - span: + lo: 0 + hi: 8 + - Literal: + Group: + Single: + - "123" + - span: + lo: 0 + hi: 8 + - Literal: + Group: + Single: + - "456" + - span: + lo: 0 + hi: 8 + - Literal: + Group: + Single: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 85 + - Literal: + Group: + Single: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 405 + - Literal: + Group: + Single: + - "340130024" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "158951116" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "155529659" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "642023166" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "228481736" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "469712960" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "929437719" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "721072814" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "363254789" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "906732565" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "288246391" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "724940549" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "487101620" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "261373583" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "891163927" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "743967544" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "8372586" + - span: + lo: 0 + hi: 12 + - Literal: + Group: + Single: + - "461793278" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "806307045" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "122764546" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "356336181" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "158370903" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "774460877" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "557174131" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "492401267" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "893445620" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "957757048" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "721540649" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "390746493" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "211251725" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "938266114" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "156985870" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "703831126" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "729964155" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "988151305" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "320872435" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "719287167" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "152289486" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "740067975" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "728627816" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "385008978" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "553967635" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "71980713" + - span: + lo: 0 + hi: 13 + - Literal: + Group: + Single: + - "519444716" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "116499965" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "717422268" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "18966279" + - span: + lo: 0 + hi: 13 + - Literal: + Group: + Single: + - "22458638" + - span: + lo: 0 + hi: 13 + - Literal: + Group: + Single: + - "857282620" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "920675898" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "762235516" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "469018377" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "199986521" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "536679358" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "591399452" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "83083158" + - span: + lo: 0 + hi: 13 + - Literal: + Group: + Single: + - "599449051" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "445442318" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "585486590" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "209278800" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "873568117" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "664470940" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "465262783" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "605652874" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "376803940" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "965247040" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "598474509" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "845119918" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "648159133" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "669051032" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "800600261" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "434689764" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "520060080" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "804659385" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "537828058" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "716600292" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "387020273" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "199375617" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "680337189" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "818479931" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "893693281" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "87377802" + - span: + lo: 0 + hi: 13 + - Literal: + Group: + Single: + - "84699261" + - span: + lo: 0 + hi: 13 + - Literal: + Group: + Single: + - "292826090" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "569171405" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "387436237" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "150682190" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "888770419" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "824696431" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "765659803" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "270163693" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "427940240" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "504997332" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "337808338" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "907200008" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "757177889" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "696697188" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "41376051" + - span: + lo: 0 + hi: 13 + - Literal: + Group: + Single: + - "496293518" + - span: + lo: 0 + hi: 14 + - Literal: + Group: + Single: + - "251218820" + - span: + lo: 0 + hi: 14 diff --git a/tests/expectations/parser/expression/literal/int_parse/scalar.out b/tests/expectations/parser/expression/literal/int_parse/scalar.out new file mode 100644 index 0000000000..23e5fd754d --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/scalar.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + Scalar: + - "123" + - span: + lo: 0 + hi: 9 + - Literal: + Scalar: + - "123" + - span: + lo: 0 + hi: 9 + - Literal: + Scalar: + - "456" + - span: + lo: 0 + hi: 9 + - Literal: + Scalar: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 86 + - Literal: + Scalar: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 406 + - Literal: + Scalar: + - "340130024" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "158951116" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "155529659" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "642023166" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "228481736" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "469712960" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "929437719" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "721072814" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "363254789" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "906732565" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "288246391" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "724940549" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "487101620" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "261373583" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "891163927" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "743967544" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "8372586" + - span: + lo: 0 + hi: 13 + - Literal: + Scalar: + - "461793278" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "806307045" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "122764546" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "356336181" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "158370903" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "774460877" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "557174131" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "492401267" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "893445620" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "957757048" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "721540649" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "390746493" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "211251725" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "938266114" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "156985870" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "703831126" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "729964155" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "988151305" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "320872435" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "719287167" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "152289486" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "740067975" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "728627816" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "385008978" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "553967635" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "71980713" + - span: + lo: 0 + hi: 14 + - Literal: + Scalar: + - "519444716" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "116499965" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "717422268" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "18966279" + - span: + lo: 0 + hi: 14 + - Literal: + Scalar: + - "22458638" + - span: + lo: 0 + hi: 14 + - Literal: + Scalar: + - "857282620" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "920675898" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "762235516" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "469018377" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "199986521" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "536679358" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "591399452" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "83083158" + - span: + lo: 0 + hi: 14 + - Literal: + Scalar: + - "599449051" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "445442318" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "585486590" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "209278800" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "873568117" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "664470940" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "465262783" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "605652874" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "376803940" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "965247040" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "598474509" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "845119918" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "648159133" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "669051032" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "800600261" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "434689764" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "520060080" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "804659385" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "537828058" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "716600292" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "387020273" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "199375617" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "680337189" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "818479931" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "893693281" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "87377802" + - span: + lo: 0 + hi: 14 + - Literal: + Scalar: + - "84699261" + - span: + lo: 0 + hi: 14 + - Literal: + Scalar: + - "292826090" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "569171405" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "387436237" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "150682190" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "888770419" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "824696431" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "765659803" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "270163693" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "427940240" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "504997332" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "337808338" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "907200008" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "757177889" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "696697188" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "41376051" + - span: + lo: 0 + hi: 14 + - Literal: + Scalar: + - "496293518" + - span: + lo: 0 + hi: 15 + - Literal: + Scalar: + - "251218820" + - span: + lo: 0 + hi: 15 diff --git a/tests/expectations/parser/expression/literal/int_parse/u128.out b/tests/expectations/parser/expression/literal/int_parse/u128.out new file mode 100644 index 0000000000..b8cab02aa0 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/u128.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + U128: + - "123" + - span: + lo: 0 + hi: 7 + - Literal: + U128: + - "123" + - span: + lo: 0 + hi: 7 + - Literal: + U128: + - "456" + - span: + lo: 0 + hi: 7 + - Literal: + U128: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 84 + - Literal: + U128: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 404 + - Literal: + U128: + - "340130024" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "158951116" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "155529659" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "642023166" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "228481736" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "469712960" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "929437719" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "721072814" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "363254789" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "906732565" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "288246391" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "724940549" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "487101620" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "261373583" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "891163927" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "743967544" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "8372586" + - span: + lo: 0 + hi: 11 + - Literal: + U128: + - "461793278" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "806307045" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "122764546" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "356336181" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "158370903" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "774460877" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "557174131" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "492401267" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "893445620" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "957757048" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "721540649" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "390746493" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "211251725" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "938266114" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "156985870" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "703831126" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "729964155" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "988151305" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "320872435" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "719287167" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "152289486" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "740067975" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "728627816" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "385008978" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "553967635" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "71980713" + - span: + lo: 0 + hi: 12 + - Literal: + U128: + - "519444716" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "116499965" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "717422268" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "18966279" + - span: + lo: 0 + hi: 12 + - Literal: + U128: + - "22458638" + - span: + lo: 0 + hi: 12 + - Literal: + U128: + - "857282620" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "920675898" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "762235516" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "469018377" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "199986521" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "536679358" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "591399452" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "83083158" + - span: + lo: 0 + hi: 12 + - Literal: + U128: + - "599449051" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "445442318" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "585486590" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "209278800" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "873568117" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "664470940" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "465262783" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "605652874" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "376803940" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "965247040" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "598474509" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "845119918" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "648159133" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "669051032" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "800600261" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "434689764" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "520060080" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "804659385" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "537828058" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "716600292" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "387020273" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "199375617" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "680337189" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "818479931" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "893693281" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "87377802" + - span: + lo: 0 + hi: 12 + - Literal: + U128: + - "84699261" + - span: + lo: 0 + hi: 12 + - Literal: + U128: + - "292826090" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "569171405" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "387436237" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "150682190" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "888770419" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "824696431" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "765659803" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "270163693" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "427940240" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "504997332" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "337808338" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "907200008" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "757177889" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "696697188" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "41376051" + - span: + lo: 0 + hi: 12 + - Literal: + U128: + - "496293518" + - span: + lo: 0 + hi: 13 + - Literal: + U128: + - "251218820" + - span: + lo: 0 + hi: 13 diff --git a/tests/expectations/parser/expression/literal/int_parse/u16.out b/tests/expectations/parser/expression/literal/int_parse/u16.out new file mode 100644 index 0000000000..18a3d874ca --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/u16.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + U16: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + U16: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + U16: + - "456" + - span: + lo: 0 + hi: 6 + - Literal: + U16: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Literal: + U16: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Literal: + U16: + - "340130024" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "158951116" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "155529659" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "642023166" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "228481736" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "469712960" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "929437719" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "721072814" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "363254789" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "906732565" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "288246391" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "724940549" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "487101620" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "261373583" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "891163927" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "743967544" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "8372586" + - span: + lo: 0 + hi: 10 + - Literal: + U16: + - "461793278" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "806307045" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "122764546" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "356336181" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "158370903" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "774460877" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "557174131" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "492401267" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "893445620" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "957757048" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "721540649" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "390746493" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "211251725" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "938266114" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "156985870" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "703831126" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "729964155" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "988151305" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "320872435" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "719287167" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "152289486" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "740067975" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "728627816" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "385008978" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "553967635" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "71980713" + - span: + lo: 0 + hi: 11 + - Literal: + U16: + - "519444716" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "116499965" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "717422268" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "18966279" + - span: + lo: 0 + hi: 11 + - Literal: + U16: + - "22458638" + - span: + lo: 0 + hi: 11 + - Literal: + U16: + - "857282620" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "920675898" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "762235516" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "469018377" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "199986521" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "536679358" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "591399452" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "83083158" + - span: + lo: 0 + hi: 11 + - Literal: + U16: + - "599449051" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "445442318" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "585486590" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "209278800" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "873568117" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "664470940" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "465262783" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "605652874" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "376803940" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "965247040" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "598474509" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "845119918" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "648159133" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "669051032" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "800600261" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "434689764" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "520060080" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "804659385" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "537828058" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "716600292" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "387020273" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "199375617" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "680337189" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "818479931" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "893693281" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "87377802" + - span: + lo: 0 + hi: 11 + - Literal: + U16: + - "84699261" + - span: + lo: 0 + hi: 11 + - Literal: + U16: + - "292826090" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "569171405" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "387436237" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "150682190" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "888770419" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "824696431" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "765659803" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "270163693" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "427940240" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "504997332" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "337808338" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "907200008" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "757177889" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "696697188" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "41376051" + - span: + lo: 0 + hi: 11 + - Literal: + U16: + - "496293518" + - span: + lo: 0 + hi: 12 + - Literal: + U16: + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/u32.out b/tests/expectations/parser/expression/literal/int_parse/u32.out new file mode 100644 index 0000000000..3e75200db9 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/u32.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + U32: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + U32: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + U32: + - "456" + - span: + lo: 0 + hi: 6 + - Literal: + U32: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Literal: + U32: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Literal: + U32: + - "340130024" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "158951116" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "155529659" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "642023166" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "228481736" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "469712960" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "929437719" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "721072814" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "363254789" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "906732565" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "288246391" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "724940549" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "487101620" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "261373583" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "891163927" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "743967544" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "8372586" + - span: + lo: 0 + hi: 10 + - Literal: + U32: + - "461793278" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "806307045" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "122764546" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "356336181" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "158370903" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "774460877" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "557174131" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "492401267" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "893445620" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "957757048" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "721540649" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "390746493" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "211251725" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "938266114" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "156985870" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "703831126" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "729964155" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "988151305" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "320872435" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "719287167" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "152289486" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "740067975" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "728627816" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "385008978" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "553967635" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "71980713" + - span: + lo: 0 + hi: 11 + - Literal: + U32: + - "519444716" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "116499965" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "717422268" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "18966279" + - span: + lo: 0 + hi: 11 + - Literal: + U32: + - "22458638" + - span: + lo: 0 + hi: 11 + - Literal: + U32: + - "857282620" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "920675898" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "762235516" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "469018377" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "199986521" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "536679358" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "591399452" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "83083158" + - span: + lo: 0 + hi: 11 + - Literal: + U32: + - "599449051" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "445442318" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "585486590" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "209278800" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "873568117" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "664470940" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "465262783" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "605652874" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "376803940" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "965247040" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "598474509" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "845119918" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "648159133" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "669051032" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "800600261" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "434689764" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "520060080" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "804659385" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "537828058" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "716600292" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "387020273" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "199375617" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "680337189" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "818479931" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "893693281" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "87377802" + - span: + lo: 0 + hi: 11 + - Literal: + U32: + - "84699261" + - span: + lo: 0 + hi: 11 + - Literal: + U32: + - "292826090" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "569171405" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "387436237" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "150682190" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "888770419" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "824696431" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "765659803" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "270163693" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "427940240" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "504997332" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "337808338" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "907200008" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "757177889" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "696697188" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "41376051" + - span: + lo: 0 + hi: 11 + - Literal: + U32: + - "496293518" + - span: + lo: 0 + hi: 12 + - Literal: + U32: + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/u64.out b/tests/expectations/parser/expression/literal/int_parse/u64.out new file mode 100644 index 0000000000..722dd4bd20 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/u64.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + U64: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + U64: + - "123" + - span: + lo: 0 + hi: 6 + - Literal: + U64: + - "456" + - span: + lo: 0 + hi: 6 + - Literal: + U64: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Literal: + U64: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Literal: + U64: + - "340130024" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "158951116" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "155529659" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "642023166" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "228481736" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "469712960" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "929437719" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "721072814" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "363254789" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "906732565" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "288246391" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "724940549" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "487101620" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "261373583" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "891163927" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "743967544" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "8372586" + - span: + lo: 0 + hi: 10 + - Literal: + U64: + - "461793278" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "806307045" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "122764546" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "356336181" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "158370903" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "774460877" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "557174131" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "492401267" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "893445620" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "957757048" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "721540649" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "390746493" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "211251725" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "938266114" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "156985870" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "703831126" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "729964155" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "988151305" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "320872435" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "719287167" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "152289486" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "740067975" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "728627816" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "385008978" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "553967635" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "71980713" + - span: + lo: 0 + hi: 11 + - Literal: + U64: + - "519444716" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "116499965" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "717422268" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "18966279" + - span: + lo: 0 + hi: 11 + - Literal: + U64: + - "22458638" + - span: + lo: 0 + hi: 11 + - Literal: + U64: + - "857282620" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "920675898" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "762235516" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "469018377" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "199986521" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "536679358" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "591399452" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "83083158" + - span: + lo: 0 + hi: 11 + - Literal: + U64: + - "599449051" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "445442318" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "585486590" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "209278800" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "873568117" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "664470940" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "465262783" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "605652874" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "376803940" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "965247040" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "598474509" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "845119918" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "648159133" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "669051032" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "800600261" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "434689764" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "520060080" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "804659385" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "537828058" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "716600292" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "387020273" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "199375617" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "680337189" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "818479931" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "893693281" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "87377802" + - span: + lo: 0 + hi: 11 + - Literal: + U64: + - "84699261" + - span: + lo: 0 + hi: 11 + - Literal: + U64: + - "292826090" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "569171405" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "387436237" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "150682190" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "888770419" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "824696431" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "765659803" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "270163693" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "427940240" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "504997332" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "337808338" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "907200008" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "757177889" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "696697188" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "41376051" + - span: + lo: 0 + hi: 11 + - Literal: + U64: + - "496293518" + - span: + lo: 0 + hi: 12 + - Literal: + U64: + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/expression/literal/int_parse/u8.out b/tests/expectations/parser/expression/literal/int_parse/u8.out new file mode 100644 index 0000000000..710cf4c164 --- /dev/null +++ b/tests/expectations/parser/expression/literal/int_parse/u8.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Literal: + U8: + - "123" + - span: + lo: 0 + hi: 5 + - Literal: + U8: + - "123" + - span: + lo: 0 + hi: 5 + - Literal: + U8: + - "456" + - span: + lo: 0 + hi: 5 + - Literal: + U8: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 82 + - Literal: + U8: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 402 + - Literal: + U8: + - "340130024" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "158951116" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "155529659" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "642023166" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "228481736" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "469712960" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "929437719" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "721072814" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "363254789" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "906732565" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "288246391" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "724940549" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "487101620" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "261373583" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "891163927" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "743967544" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "8372586" + - span: + lo: 0 + hi: 9 + - Literal: + U8: + - "461793278" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "806307045" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "122764546" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "356336181" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "158370903" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "774460877" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "557174131" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "492401267" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "893445620" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "957757048" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "721540649" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "390746493" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "211251725" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "938266114" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "156985870" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "703831126" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "729964155" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "988151305" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "320872435" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "719287167" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "152289486" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "740067975" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "728627816" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "385008978" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "553967635" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "71980713" + - span: + lo: 0 + hi: 10 + - Literal: + U8: + - "519444716" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "116499965" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "717422268" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "18966279" + - span: + lo: 0 + hi: 10 + - Literal: + U8: + - "22458638" + - span: + lo: 0 + hi: 10 + - Literal: + U8: + - "857282620" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "920675898" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "762235516" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "469018377" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "199986521" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "536679358" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "591399452" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "83083158" + - span: + lo: 0 + hi: 10 + - Literal: + U8: + - "599449051" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "445442318" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "585486590" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "209278800" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "873568117" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "664470940" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "465262783" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "605652874" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "376803940" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "965247040" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "598474509" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "845119918" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "648159133" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "669051032" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "800600261" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "434689764" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "520060080" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "804659385" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "537828058" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "716600292" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "387020273" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "199375617" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "680337189" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "818479931" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "893693281" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "87377802" + - span: + lo: 0 + hi: 10 + - Literal: + U8: + - "84699261" + - span: + lo: 0 + hi: 10 + - Literal: + U8: + - "292826090" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "569171405" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "387436237" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "150682190" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "888770419" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "824696431" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "765659803" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "270163693" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "427940240" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "504997332" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "337808338" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "907200008" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "757177889" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "696697188" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "41376051" + - span: + lo: 0 + hi: 10 + - Literal: + U8: + - "496293518" + - span: + lo: 0 + hi: 11 + - Literal: + U8: + - "251218820" + - span: + lo: 0 + hi: 11 diff --git a/tests/expectations/parser/expression/literal/postfix_types.out b/tests/expectations/parser/expression/literal/postfix_types.out new file mode 100644 index 0000000000..00ff4531d4 --- /dev/null +++ b/tests/expectations/parser/expression/literal/postfix_types.out @@ -0,0 +1,62 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'field' @ 1:1-6" + - "'Field' @ 1:1-6" + - "'fielD' @ 1:1-6" + - "'FIELD' @ 1:1-6" + - "'group' @ 1:1-6" + - "'Group' @ 1:1-6" + - "'grouP' @ 1:1-6" + - "'GROUP' @ 1:1-6" + - "'u8' @ 1:1-3" + - "'u16' @ 1:1-4" + - "'u32' @ 1:1-4" + - "'u64' @ 1:1-4" + - "'u128' @ 1:1-5" + - "'i8' @ 1:1-3" + - "'i16' @ 1:1-4" + - "'i32' @ 1:1-4" + - "'i64' @ 1:1-4" + - "'i128' @ 1:1-5" + - "'U8' @ 1:1-3" + - "'U16' @ 1:1-4" + - "'U32' @ 1:1-4" + - "'U64' @ 1:1-4" + - "'U128' @ 1:1-5" + - "'U8' @ 1:1-3" + - "'U16' @ 1:1-4" + - "'U32' @ 1:1-4" + - "'U64' @ 1:1-4" + - "'U128' @ 1:1-5" + - "'u' @ 1:1-2" + - "'8' @ 1:1-2" + - "'u' @ 1:1-2" + - "'16' @ 1:1-3" + - "'u' @ 1:1-2" + - "'32' @ 1:1-3" + - "'u' @ 1:1-2" + - "'64' @ 1:1-3" + - "'u' @ 1:1-2" + - "'128' @ 1:1-4" + - "'i' @ 1:1-2" + - "'8' @ 1:1-2" + - "'i' @ 1:1-2" + - "'16' @ 1:1-3" + - "'i' @ 1:1-2" + - "'32' @ 1:1-3" + - "'i' @ 1:1-2" + - "'64' @ 1:1-3" + - "'i' @ 1:1-2" + - "'128' @ 1:1-4" + - "'U' @ 1:1-2,'8' @ 1:3-4" + - "'U' @ 1:1-2,'16' @ 1:3-5" + - "'U' @ 1:1-2,'32' @ 1:3-5" + - "'U' @ 1:1-2,'64' @ 1:3-5" + - "'U' @ 1:1-2,'128' @ 1:3-6" + - "'U' @ 1:1-2,'8' @ 1:3-4" + - "'U' @ 1:1-2,'16' @ 1:3-5" + - "'U' @ 1:1-2,'32' @ 1:3-5" + - "'U' @ 1:1-2,'64' @ 1:3-5" + - "'U' @ 1:1-2,'128' @ 1:3-6" diff --git a/tests/expectations/parser/expression/literal/string.out b/tests/expectations/parser/expression/literal/string.out new file mode 100644 index 0000000000..f2647db005 --- /dev/null +++ b/tests/expectations/parser/expression/literal/string.out @@ -0,0 +1,25 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'\"string\"' @ 1:1-9" + - "'\"another { } string\"' @ 1:1-21" + - "'\"{ ] [ ; a\"' @ 1:1-12" + - "'\"test 😒€\"' @ 1:1-10" + - "'\"😭😂😘\"' @ 1:1-6" + - "'\"✋🏿\"' @ 1:1-5" + - "'\"🦀\"' @ 1:1-4" + - "'\"￿\"' @ 1:1-4" + - "'\"���\"' @ 1:1-6" + - "'\"(>3<)三\"' @ 1:1-9" + - "'\"ヽ༼ ಠ益ಠ ༽ノ\"' @ 1:1-12" + - "'\"(╯°□°)╯︵ ┻━┻\"' @ 1:1-15" + - "'\"┬─┬ ノ( ゜-゜ノ)\"' @ 1:1-15" + - "'\"( ͡° ͜ʖ ͡°)\"' @ 1:1-14" + - "'\"b\"' @ 1:1-4" + - "'\"ᕙ(▀̿ĺ̯▀̿ ̿)ᕗ\"' @ 1:1-15" + - "'\"♥╣[-_-]╠♥\"' @ 1:1-12" + - "'\"b\"' @ 1:1-4" + - "'\"(⑅∫°ਊ°)∫\"' @ 1:1-11" + - "'\"b\"' @ 1:1-4" + - "'\"🦀°1\"' @ 1:1-6" diff --git a/tests/expectations/parser/expression/literal/string_fail.out b/tests/expectations/parser/expression/literal/string_fail.out new file mode 100644 index 0000000000..f118491be6 --- /dev/null +++ b/tests/expectations/parser/expression/literal/string_fail.out @@ -0,0 +1,8 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370014]: Expected a closed string but found `Hello world!`." + - "Error [EPAR0370014]: Expected a closed string but found `\\`." + - "Error [EPAR0370014]: Expected a closed string but found `⭇😍;`." + - "Error [EPAR0370021]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/expression/ternary.out b/tests/expectations/parser/expression/ternary.out new file mode 100644 index 0000000000..07651c1b8f --- /dev/null +++ b/tests/expectations/parser/expression/ternary.out @@ -0,0 +1,52 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + if_true: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + if_false: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + span: + lo: 0 + hi: 9 + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + if_true: + Ternary: + condition: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + if_true: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + if_false: + Identifier: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + span: + lo: 4 + hi: 13 + if_false: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + if_true: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + if_false: + Ternary: + condition: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + if_true: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + if_false: + Identifier: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + span: + lo: 8 + hi: 17 + span: + lo: 0 + hi: 17 diff --git a/tests/expectations/parser/expression/token_format.out b/tests/expectations/parser/expression/token_format.out new file mode 100644 index 0000000000..2320e8a368 --- /dev/null +++ b/tests/expectations/parser/expression/token_format.out @@ -0,0 +1,74 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `'h'`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `@test`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '&&'\n --> test:1:1\n |\n 1 | &&\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '||'\n --> test:1:1\n |\n 1 | ||\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '=='\n --> test:1:1\n |\n 1 | ==\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '!='\n --> test:1:1\n |\n 1 | !=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<'\n --> test:1:1\n |\n 1 | <\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<='\n --> test:1:1\n |\n 1 | <=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>'\n --> test:1:1\n |\n 1 | >\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>='\n --> test:1:1\n |\n 1 | >=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '+'\n --> test:1:1\n |\n 1 | +\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:1\n |\n 1 | -\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '*'\n --> test:1:1\n |\n 1 | *\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '**'\n --> test:1:1\n |\n 1 | **\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '/'\n --> test:1:1\n |\n 1 | /\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:1\n |\n 1 | =\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '+='\n --> test:1:1\n |\n 1 | +=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '-='\n --> test:1:1\n |\n 1 | -=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '*='\n --> test:1:1\n |\n 1 | *=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '/='\n --> test:1:1\n |\n 1 | /=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '**='\n --> test:1:1\n |\n 1 | **=\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:1\n |\n 1 | (\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ')'\n --> test:1:1\n |\n 1 | )\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:1\n |\n 1 | ]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '{'\n --> test:1:1\n |\n 1 | {\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '}'\n --> test:1:1\n |\n 1 | }\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:1\n |\n 1 | ,\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '.'\n --> test:1:1\n |\n 1 | .\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '..'\n --> test:1:1\n |\n 1 | ..\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '..'\n --> test:1:1\n |\n 1 | ...\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:1\n |\n 1 | ;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ':'\n --> test:1:1\n |\n 1 | :\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ''\n --> test:1:2\n |\n 1 | h::\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '?'\n --> test:1:1\n |\n 1 | ?\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '->'\n --> test:1:1\n |\n 1 | ->\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '_'\n --> test:1:1\n |\n 1 | _\n | ^" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'console'\n --> test:1:1\n |\n 1 | console\n | ^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'const'\n --> test:1:1\n |\n 1 | const\n | ^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'else'\n --> test:1:1\n |\n 1 | else\n | ^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'for'\n --> test:1:1\n |\n 1 | for\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'function'\n --> test:1:1\n |\n 1 | function\n | ^^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'in'\n --> test:1:1\n |\n 1 | in\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'let'\n --> test:1:1\n |\n 1 | let\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '&'\n --> test:1:1\n |\n 1 | &\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'return'\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" diff --git a/tests/expectations/parser/expression/unary/abs.out b/tests/expectations/parser/expression/unary/abs.out new file mode 100644 index 0000000000..5d95459b3f --- /dev/null +++ b/tests/expectations/parser/expression/unary/abs.out @@ -0,0 +1,146 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Abs + span: + lo: 0 + hi: 7 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Abs + span: + lo: 0 + hi: 7 + op: Abs + span: + lo: 0 + hi: 13 + op: Abs + span: + lo: 0 + hi: 19 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Abs + span: + lo: 1 + hi: 8 + op: Negate + span: + lo: 0 + hi: 8 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Abs + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Abs + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Abs + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Abs + span: + lo: 1 + hi: 16 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Abs + span: + lo: 1 + hi: 8 + op: Not + span: + lo: 0 + hi: 8 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Abs + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Abs + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Abs + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 1 + hi: 9 + op: Abs + span: + lo: 1 + hi: 16 diff --git a/tests/expectations/parser/expression/unary/abs_wrapped.out b/tests/expectations/parser/expression/unary/abs_wrapped.out new file mode 100644 index 0000000000..5433c93542 --- /dev/null +++ b/tests/expectations/parser/expression/unary/abs_wrapped.out @@ -0,0 +1,146 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: AbsWrapped + span: + lo: 0 + hi: 15 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: AbsWrapped + span: + lo: 0 + hi: 15 + op: AbsWrapped + span: + lo: 0 + hi: 29 + op: AbsWrapped + span: + lo: 0 + hi: 43 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: AbsWrapped + span: + lo: 1 + hi: 16 + op: Negate + span: + lo: 0 + hi: 16 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: AbsWrapped + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: AbsWrapped + span: + lo: 2 + hi: 17 + op: Negate + span: + lo: 0 + hi: 17 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: AbsWrapped + span: + lo: 2 + hi: 17 + op: Negate + span: + lo: 1 + hi: 17 + op: AbsWrapped + span: + lo: 1 + hi: 32 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: AbsWrapped + span: + lo: 1 + hi: 16 + op: Not + span: + lo: 0 + hi: 16 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: AbsWrapped + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: AbsWrapped + span: + lo: 2 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: AbsWrapped + span: + lo: 2 + hi: 17 + op: Not + span: + lo: 1 + hi: 17 + op: AbsWrapped + span: + lo: 1 + hi: 32 diff --git a/tests/expectations/parser/expression/unary/double.out b/tests/expectations/parser/expression/unary/double.out new file mode 100644 index 0000000000..f3dbdaaed1 --- /dev/null +++ b/tests/expectations/parser/expression/unary/double.out @@ -0,0 +1,146 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Double + span: + lo: 0 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Double + span: + lo: 0 + hi: 10 + op: Double + span: + lo: 0 + hi: 19 + op: Double + span: + lo: 0 + hi: 28 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Double + span: + lo: 1 + hi: 11 + op: Negate + span: + lo: 0 + hi: 11 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Double + span: + lo: 1 + hi: 13 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Double + span: + lo: 2 + hi: 12 + op: Negate + span: + lo: 0 + hi: 12 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Double + span: + lo: 2 + hi: 12 + op: Negate + span: + lo: 1 + hi: 12 + op: Double + span: + lo: 1 + hi: 22 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Double + span: + lo: 1 + hi: 11 + op: Not + span: + lo: 0 + hi: 11 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Double + span: + lo: 1 + hi: 13 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Double + span: + lo: 2 + hi: 12 + op: Not + span: + lo: 0 + hi: 12 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Double + span: + lo: 2 + hi: 12 + op: Not + span: + lo: 1 + hi: 12 + op: Double + span: + lo: 1 + hi: 22 diff --git a/tests/expectations/parser/expression/unary/inv.out b/tests/expectations/parser/expression/unary/inv.out new file mode 100644 index 0000000000..a42f31203b --- /dev/null +++ b/tests/expectations/parser/expression/unary/inv.out @@ -0,0 +1,146 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Inverse + span: + lo: 0 + hi: 7 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Inverse + span: + lo: 0 + hi: 7 + op: Inverse + span: + lo: 0 + hi: 13 + op: Inverse + span: + lo: 0 + hi: 19 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Inverse + span: + lo: 1 + hi: 8 + op: Negate + span: + lo: 0 + hi: 8 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Inverse + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Inverse + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Inverse + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Inverse + span: + lo: 1 + hi: 16 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Inverse + span: + lo: 1 + hi: 8 + op: Not + span: + lo: 0 + hi: 8 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Inverse + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Inverse + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Inverse + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 1 + hi: 9 + op: Inverse + span: + lo: 1 + hi: 16 diff --git a/tests/expectations/parser/expression/unary/neg.out b/tests/expectations/parser/expression/unary/neg.out new file mode 100644 index 0000000000..6bddc3c4e1 --- /dev/null +++ b/tests/expectations/parser/expression/unary/neg.out @@ -0,0 +1,204 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Negate + span: + lo: 0 + hi: 2 + - Unary: + receiver: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + arguments: [] + span: + lo: 1 + hi: 4 + op: Negate + span: + lo: 0 + hi: 4 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Negate + span: + lo: 0 + hi: 3 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Negate + span: + lo: 0 + hi: 3 + - Unary: + receiver: + Literal: + I8: + - "5" + - span: + lo: 1 + hi: 4 + op: Negate + span: + lo: 0 + hi: 4 + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Negate + span: + lo: 0 + hi: 7 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Negate + span: + lo: 0 + hi: 7 + op: Negate + span: + lo: 0 + hi: 13 + op: Negate + span: + lo: 0 + hi: 19 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Negate + span: + lo: 1 + hi: 8 + op: Negate + span: + lo: 0 + hi: 8 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Negate + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 1 + hi: 16 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Negate + span: + lo: 1 + hi: 8 + op: Not + span: + lo: 0 + hi: 8 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Negate + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 1 + hi: 9 + op: Negate + span: + lo: 1 + hi: 16 diff --git a/tests/expectations/parser/expression/unary/not.out b/tests/expectations/parser/expression/unary/not.out new file mode 100644 index 0000000000..ab180c58e4 --- /dev/null +++ b/tests/expectations/parser/expression/unary/not.out @@ -0,0 +1,191 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Not + span: + lo: 0 + hi: 2 + - Unary: + receiver: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + arguments: [] + span: + lo: 1 + hi: 4 + op: Not + span: + lo: 0 + hi: 4 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Not + span: + lo: 0 + hi: 3 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Not + span: + lo: 0 + hi: 7 + op: Not + span: + lo: 0 + hi: 13 + op: Not + span: + lo: 0 + hi: 19 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Not + span: + lo: 1 + hi: 8 + op: Negate + span: + lo: 0 + hi: 8 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Not + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 2 + hi: 9 + op: Negate + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 1 + hi: 16 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Not + span: + lo: 1 + hi: 8 + op: Not + span: + lo: 0 + hi: 8 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Not + span: + lo: 1 + hi: 10 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 0 + hi: 9 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 2 + hi: 9 + op: Not + span: + lo: 1 + hi: 9 + op: Not + span: + lo: 1 + hi: 16 diff --git a/tests/expectations/parser/expression/unary/sqrt.out b/tests/expectations/parser/expression/unary/sqrt.out new file mode 100644 index 0000000000..e719601954 --- /dev/null +++ b/tests/expectations/parser/expression/unary/sqrt.out @@ -0,0 +1,158 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: SquareRoot + span: + lo: 2 + hi: 17 + op: Negate + span: + lo: 1 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: SquareRoot + span: + lo: 0 + hi: 15 + op: SquareRoot + span: + lo: 0 + hi: 29 + op: SquareRoot + span: + lo: 0 + hi: 43 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: SquareRoot + span: + lo: 1 + hi: 16 + op: Negate + span: + lo: 0 + hi: 16 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: SquareRoot + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: SquareRoot + span: + lo: 2 + hi: 17 + op: Negate + span: + lo: 0 + hi: 17 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: SquareRoot + span: + lo: 2 + hi: 17 + op: Negate + span: + lo: 1 + hi: 17 + op: SquareRoot + span: + lo: 1 + hi: 32 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: SquareRoot + span: + lo: 1 + hi: 16 + op: Not + span: + lo: 0 + hi: 16 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: SquareRoot + span: + lo: 1 + hi: 18 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: SquareRoot + span: + lo: 2 + hi: 17 + op: Not + span: + lo: 0 + hi: 17 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: SquareRoot + span: + lo: 2 + hi: 17 + op: Not + span: + lo: 1 + hi: 17 + op: SquareRoot + span: + lo: 1 + hi: 32 diff --git a/tests/expectations/parser/expression/unary/square.out b/tests/expectations/parser/expression/unary/square.out new file mode 100644 index 0000000000..da10785118 --- /dev/null +++ b/tests/expectations/parser/expression/unary/square.out @@ -0,0 +1,158 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Square + span: + lo: 2 + hi: 12 + op: Negate + span: + lo: 1 + hi: 12 + op: Not + span: + lo: 0 + hi: 12 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + op: Square + span: + lo: 0 + hi: 10 + op: Square + span: + lo: 0 + hi: 19 + op: Square + span: + lo: 0 + hi: 28 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Square + span: + lo: 1 + hi: 11 + op: Negate + span: + lo: 0 + hi: 11 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Square + span: + lo: 1 + hi: 13 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Square + span: + lo: 2 + hi: 12 + op: Negate + span: + lo: 0 + hi: 12 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Square + span: + lo: 2 + hi: 12 + op: Negate + span: + lo: 1 + hi: 12 + op: Square + span: + lo: 1 + hi: 22 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Square + span: + lo: 1 + hi: 11 + op: Not + span: + lo: 0 + hi: 11 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Square + span: + lo: 1 + hi: 13 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Square + span: + lo: 2 + hi: 12 + op: Not + span: + lo: 0 + hi: 12 + - Unary: + receiver: + Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Square + span: + lo: 2 + hi: 12 + op: Not + span: + lo: 1 + hi: 12 + op: Square + span: + lo: 1 + hi: 22 diff --git a/tests/expectations/parser/functions/annotated_arg_not_ident.out b/tests/expectations/parser/functions/annotated_arg_not_ident.out new file mode 100644 index 0000000000..ef1ea8f721 --- /dev/null +++ b/tests/expectations/parser/functions/annotated_arg_not_ident.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `@foo(?,`.\n" diff --git a/tests/expectations/parser/functions/annotated_context_fail.out b/tests/expectations/parser/functions/annotated_context_fail.out new file mode 100644 index 0000000000..f3a6bba1a3 --- /dev/null +++ b/tests/expectations/parser/functions/annotated_context_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `@context`.\n" diff --git a/tests/expectations/parser/functions/bounded_recursion.out b/tests/expectations/parser/functions/bounded_recursion.out new file mode 100644 index 0000000000..a723c42bba --- /dev/null +++ b/tests/expectations/parser/functions/bounded_recursion.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:5:9\n |\n 5 | x(y+1u32);\n | ^^^^^^^^^^\nError [EPAR0370022]: Expression statements are not supported.\n --> test:10:5\n |\n 10 | x(1u32);\n | ^^^^^^^^" diff --git a/tests/expectations/parser/functions/const_input.out b/tests/expectations/parser/functions/const_input.out new file mode 100644 index 0000000000..eaf68aae4d --- /dev/null +++ b/tests/expectations/parser/functions/const_input.out @@ -0,0 +1,50 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + mode: Const + type_: U8 + span: + lo: 19 + hi: 20 + output: U8 + core_mapping: ~ + block: + statements: [] + span: + lo: 32 + hi: 34 + span: + lo: 2 + hi: 34 + "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}": + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + input: + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":56,\\\"hi\\\":57}\"}" + mode: Const + type_: U64 + span: + lo: 56 + hi: 57 + output: U8 + core_mapping: ~ + block: + statements: [] + span: + lo: 70 + hi: 72 + span: + lo: 36 + hi: 72 + circuits: {} diff --git a/tests/expectations/parser/functions/const_param.out b/tests/expectations/parser/functions/const_param.out new file mode 100644 index 0000000000..3f0c3fb156 --- /dev/null +++ b/tests/expectations/parser/functions/const_param.out @@ -0,0 +1,86 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + mode: Private + type_: U32 + span: + lo: 13 + hi: 14 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":30,\\\"hi\\\":31}\"}" + mode: Const + type_: I32 + span: + lo: 30 + hi: 31 + output: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 57 + hi: 60 + span: + lo: 50 + hi: 60 + span: + lo: 44 + hi: 63 + span: + lo: 2 + hi: 63 + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" + mode: Const + type_: U32 + span: + lo: 85 + hi: 86 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":93,\\\"hi\\\":94}\"}" + mode: Private + type_: I32 + span: + lo: 93 + hi: 94 + output: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 120 + hi: 123 + span: + lo: 113 + hi: 123 + span: + lo: 107 + hi: 126 + span: + lo: 65 + hi: 126 + circuits: {} diff --git a/tests/expectations/parser/functions/const_public_param_fail.out b/tests/expectations/parser/functions/const_public_param_fail.out new file mode 100644 index 0000000000..91bf7adfbf --- /dev/null +++ b/tests/expectations/parser/functions/const_public_param_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'public'\n --> test:3:26\n |\n 3 | function x(x: u32, const public y: i32) {\n | ^^^^^^" diff --git a/tests/expectations/parser/functions/empty2.out b/tests/expectations/parser/functions/empty2.out new file mode 100644 index 0000000000..34b29b06c1 --- /dev/null +++ b/tests/expectations/parser/functions/empty2.out @@ -0,0 +1,23 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: [] + output: U8 + core_mapping: ~ + block: + statements: [] + span: + lo: 21 + hi: 23 + span: + lo: 2 + hi: 23 + circuits: {} diff --git a/tests/expectations/parser/functions/escape_fail.out b/tests/expectations/parser/functions/escape_fail.out new file mode 100644 index 0000000000..ffd5855107 --- /dev/null +++ b/tests/expectations/parser/functions/escape_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n" diff --git a/tests/expectations/parser/functions/ident_token_fail.out b/tests/expectations/parser/functions/ident_token_fail.out new file mode 100644 index 0000000000..6ed7a2602a --- /dev/null +++ b/tests/expectations/parser/functions/ident_token_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected 'function', 'circuit', 'test' -- found '1'\n --> test:3:1\n |\n 3 | 1 main() {}\n | ^" diff --git a/tests/expectations/parser/functions/infinite_recursion.out b/tests/expectations/parser/functions/infinite_recursion.out new file mode 100644 index 0000000000..de9721cb10 --- /dev/null +++ b/tests/expectations/parser/functions/infinite_recursion.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:4:5\n |\n 4 | inf();\n | ^^^^^^\nError [EPAR0370022]: Expression statements are not supported.\n --> test:8:5\n |\n 8 | inf();\n | ^^^^^^" diff --git a/tests/expectations/parser/functions/mut_input_fail.out b/tests/expectations/parser/functions/mut_input_fail.out new file mode 100644 index 0000000000..6218eab0f5 --- /dev/null +++ b/tests/expectations/parser/functions/mut_input_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found 'a'\n --> test:3:16\n |\n 3 | function f(mut a: u8) {}\n | ^" diff --git a/tests/expectations/parser/functions/params.out b/tests/expectations/parser/functions/params.out new file mode 100644 index 0000000000..801ada80b2 --- /dev/null +++ b/tests/expectations/parser/functions/params.out @@ -0,0 +1,48 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + mode: Private + type_: U32 + span: + lo: 13 + hi: 14 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" + mode: Private + type_: I32 + span: + lo: 21 + hi: 22 + output: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 48 + hi: 51 + span: + lo: 41 + hi: 51 + span: + lo: 35 + hi: 54 + span: + lo: 2 + hi: 54 + circuits: {} diff --git a/tests/expectations/parser/functions/params_return.out b/tests/expectations/parser/functions/params_return.out new file mode 100644 index 0000000000..130109a949 --- /dev/null +++ b/tests/expectations/parser/functions/params_return.out @@ -0,0 +1,48 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + mode: Private + type_: U32 + span: + lo: 13 + hi: 14 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" + mode: Private + type_: I32 + span: + lo: 21 + hi: 22 + output: U32 + core_mapping: ~ + block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 49 + hi: 52 + span: + lo: 42 + hi: 52 + span: + lo: 36 + hi: 55 + span: + lo: 2 + hi: 55 + circuits: {} diff --git a/tests/expectations/parser/functions/public_const_param_fail.out b/tests/expectations/parser/functions/public_const_param_fail.out new file mode 100644 index 0000000000..2454b98a57 --- /dev/null +++ b/tests/expectations/parser/functions/public_const_param_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370020]: A parameter cannot be both public and const.\n --> test:3:20\n |\n 3 | function x(x: u32, public const y: i32) {\n | ^^^^^^^^^^^^" diff --git a/tests/expectations/parser/functions/public_param.out b/tests/expectations/parser/functions/public_param.out new file mode 100644 index 0000000000..bacf2c3c4e --- /dev/null +++ b/tests/expectations/parser/functions/public_param.out @@ -0,0 +1,86 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + mode: Private + type_: U32 + span: + lo: 13 + hi: 14 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" + mode: Public + type_: I32 + span: + lo: 28 + hi: 29 + output: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 55 + hi: 58 + span: + lo: 48 + hi: 58 + span: + lo: 42 + hi: 61 + span: + lo: 2 + hi: 61 + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":72,\\\"hi\\\":73}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":72,\\\"hi\\\":73}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":81,\\\"hi\\\":82}\"}" + mode: Public + type_: U32 + span: + lo: 81 + hi: 82 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":89,\\\"hi\\\":90}\"}" + mode: Private + type_: I32 + span: + lo: 89 + hi: 90 + output: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 116 + hi: 119 + span: + lo: 109 + hi: 119 + span: + lo: 103 + hi: 122 + span: + lo: 63 + hi: 122 + circuits: {} diff --git a/tests/expectations/parser/functions/return.out b/tests/expectations/parser/functions/return.out new file mode 100644 index 0000000000..a2de7e2d95 --- /dev/null +++ b/tests/expectations/parser/functions/return.out @@ -0,0 +1,34 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: [] + output: U32 + core_mapping: ~ + block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 35 + hi: 38 + span: + lo: 28 + hi: 38 + span: + lo: 22 + hi: 41 + span: + lo: 2 + hi: 41 + circuits: {} diff --git a/tests/expectations/parser/functions/test_keyword_fail.out b/tests/expectations/parser/functions/test_keyword_fail.out new file mode 100644 index 0000000000..9ce9f3faa9 --- /dev/null +++ b/tests/expectations/parser/functions/test_keyword_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370011]: \"test function...\" is deprecated. Did you mean @test annotation?\n --> test:3:1\n |\n 3 | test main() {}\n | ^^^^" diff --git a/tests/expectations/parser/inputs/input_const.out b/tests/expectations/parser/inputs/input_const.out new file mode 100644 index 0000000000..8532a7baf3 --- /dev/null +++ b/tests/expectations/parser/inputs/input_const.out @@ -0,0 +1,207 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Const + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + value: + Literal: + Boolean: + - true + - span: + lo: 26 + hi: 30 + span: + lo: 18 + hi: 22 + - mode: Const + type_: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" + value: + Literal: + U8: + - "2" + - span: + lo: 49 + hi: 52 + span: + lo: 41 + hi: 43 + - mode: Const + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":60,\\\"hi\\\":61}\"}" + value: + Literal: + Field: + - "0" + - span: + lo: 71 + hi: 77 + span: + lo: 63 + hi: 68 + - mode: Const + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" + value: + Literal: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 97 + hi: 98 + y: + Number: + - "1" + - span: + lo: 100 + hi: 101 + span: + lo: 96 + hi: 107 + span: + lo: 88 + hi: 93 + - mode: Const + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":115,\\\"hi\\\":116}\"}" + value: + Literal: + Address: + - aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx + - span: + lo: 128 + hi: 191 + span: + lo: 118 + hi: 125 + - mode: Const + type_: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":199,\\\"hi\\\":200}\"}" + value: + Unary: + receiver: + Literal: + I8: + - "2" + - span: + lo: 211 + hi: 214 + op: Negate + span: + lo: 210 + hi: 214 + span: + lo: 202 + hi: 204 + span: + lo: 3 + hi: 7 + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":229,\\\"hi\\\":231}\"}" + value: + Literal: + Boolean: + - true + - span: + lo: 241 + hi: 245 + span: + lo: 233 + hi: 237 + - mode: Private + type_: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":247,\\\"hi\\\":249}\"}" + value: + Literal: + U8: + - "2" + - span: + lo: 259 + hi: 262 + span: + lo: 251 + hi: 253 + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":264,\\\"hi\\\":266}\"}" + value: + Literal: + Field: + - "0" + - span: + lo: 276 + hi: 282 + span: + lo: 268 + hi: 273 + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":284,\\\"hi\\\":286}\"}" + value: + Literal: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 297 + hi: 298 + y: + Number: + - "1" + - span: + lo: 300 + hi: 301 + span: + lo: 296 + hi: 307 + span: + lo: 288 + hi: 293 + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":309,\\\"hi\\\":311}\"}" + value: + Literal: + Address: + - aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx + - span: + lo: 323 + hi: 386 + span: + lo: 313 + hi: 320 + - mode: Private + type_: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":388,\\\"hi\\\":390}\"}" + value: + Unary: + receiver: + Literal: + I8: + - "1" + - span: + lo: 398 + hi: 401 + op: Negate + span: + lo: 397 + hi: 401 + span: + lo: 392 + hi: 394 + span: + lo: 218 + hi: 227 diff --git a/tests/expectations/parser/inputs/input_constant.out b/tests/expectations/parser/inputs/input_constant.out new file mode 100644 index 0000000000..b1426e4dc4 --- /dev/null +++ b/tests/expectations/parser/inputs/input_constant.out @@ -0,0 +1,207 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Const + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + value: + Literal: + Boolean: + - true + - span: + lo: 29 + hi: 33 + span: + lo: 21 + hi: 25 + - mode: Const + type_: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" + value: + Literal: + U8: + - "2" + - span: + lo: 55 + hi: 58 + span: + lo: 47 + hi: 49 + - mode: Const + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":69,\\\"hi\\\":70}\"}" + value: + Literal: + Field: + - "0" + - span: + lo: 80 + hi: 86 + span: + lo: 72 + hi: 77 + - mode: Const + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":97,\\\"hi\\\":98}\"}" + value: + Literal: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 109 + hi: 110 + y: + Number: + - "1" + - span: + lo: 112 + hi: 113 + span: + lo: 108 + hi: 119 + span: + lo: 100 + hi: 105 + - mode: Const + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":130,\\\"hi\\\":131}\"}" + value: + Literal: + Address: + - aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx + - span: + lo: 143 + hi: 206 + span: + lo: 133 + hi: 140 + - mode: Const + type_: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":217,\\\"hi\\\":218}\"}" + value: + Unary: + receiver: + Literal: + I8: + - "2" + - span: + lo: 229 + hi: 232 + op: Negate + span: + lo: 228 + hi: 232 + span: + lo: 220 + hi: 222 + span: + lo: 3 + hi: 7 + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":247,\\\"hi\\\":249}\"}" + value: + Literal: + Boolean: + - true + - span: + lo: 259 + hi: 263 + span: + lo: 251 + hi: 255 + - mode: Private + type_: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":265,\\\"hi\\\":267}\"}" + value: + Literal: + U8: + - "2" + - span: + lo: 277 + hi: 280 + span: + lo: 269 + hi: 271 + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":282,\\\"hi\\\":284}\"}" + value: + Literal: + Field: + - "0" + - span: + lo: 294 + hi: 300 + span: + lo: 286 + hi: 291 + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":302,\\\"hi\\\":304}\"}" + value: + Literal: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 315 + hi: 316 + y: + Number: + - "1" + - span: + lo: 318 + hi: 319 + span: + lo: 314 + hi: 325 + span: + lo: 306 + hi: 311 + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":327,\\\"hi\\\":329}\"}" + value: + Literal: + Address: + - aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx + - span: + lo: 341 + hi: 404 + span: + lo: 331 + hi: 338 + - mode: Private + type_: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":406,\\\"hi\\\":408}\"}" + value: + Unary: + receiver: + Literal: + I8: + - "1" + - span: + lo: 416 + hi: 419 + op: Negate + span: + lo: 415 + hi: 419 + span: + lo: 410 + hi: 412 + span: + lo: 236 + hi: 245 diff --git a/tests/expectations/parser/inputs/input_constant_public_fail.out b/tests/expectations/parser/inputs/input_constant_public_fail.out new file mode 100644 index 0000000000..3a6bfe1661 --- /dev/null +++ b/tests/expectations/parser/inputs/input_constant_public_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Input +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'public'\n --> test:4:10\n |\n 4 | constant public a: bool = true; \n | ^^^^^^" diff --git a/tests/expectations/parser/inputs/input_fail.out b/tests/expectations/parser/inputs/input_fail.out new file mode 100644 index 0000000000..5f8bf95de3 --- /dev/null +++ b/tests/expectations/parser/inputs/input_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Input +expectation: Fail +outputs: + - "Error [EPAR0370000]: main\n --> test:3:1\n |\n 3 | main\n | ^^^^" diff --git a/tests/expectations/parser/inputs/input_public.out b/tests/expectations/parser/inputs/input_public.out new file mode 100644 index 0000000000..d139168289 --- /dev/null +++ b/tests/expectations/parser/inputs/input_public.out @@ -0,0 +1,207 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Public + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + value: + Literal: + Boolean: + - true + - span: + lo: 27 + hi: 31 + span: + lo: 19 + hi: 23 + - mode: Public + type_: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":57,\\\"hi\\\":58}\"}" + value: + Literal: + U8: + - "2" + - span: + lo: 68 + hi: 71 + span: + lo: 60 + hi: 62 + - mode: Public + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":100,\\\"hi\\\":101}\"}" + value: + Literal: + Field: + - "0" + - span: + lo: 111 + hi: 117 + span: + lo: 103 + hi: 108 + - mode: Public + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":146,\\\"hi\\\":147}\"}" + value: + Literal: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 158 + hi: 159 + y: + Number: + - "1" + - span: + lo: 161 + hi: 162 + span: + lo: 157 + hi: 168 + span: + lo: 149 + hi: 154 + - mode: Public + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":187,\\\"hi\\\":188}\"}" + value: + Literal: + Address: + - aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx + - span: + lo: 200 + hi: 263 + span: + lo: 190 + hi: 197 + - mode: Public + type_: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":272,\\\"hi\\\":273}\"}" + value: + Unary: + receiver: + Literal: + I8: + - "2" + - span: + lo: 284 + hi: 287 + op: Negate + span: + lo: 283 + hi: 287 + span: + lo: 275 + hi: 277 + span: + lo: 3 + hi: 7 + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":302,\\\"hi\\\":304}\"}" + value: + Literal: + Boolean: + - true + - span: + lo: 314 + hi: 318 + span: + lo: 306 + hi: 310 + - mode: Private + type_: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":337,\\\"hi\\\":339}\"}" + value: + Literal: + U8: + - "2" + - span: + lo: 349 + hi: 352 + span: + lo: 341 + hi: 343 + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":374,\\\"hi\\\":376}\"}" + value: + Literal: + Field: + - "0" + - span: + lo: 386 + hi: 392 + span: + lo: 378 + hi: 383 + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":414,\\\"hi\\\":416}\"}" + value: + Literal: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 427 + hi: 428 + y: + Number: + - "1" + - span: + lo: 430 + hi: 431 + span: + lo: 426 + hi: 437 + span: + lo: 418 + hi: 423 + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":449,\\\"hi\\\":451}\"}" + value: + Literal: + Address: + - aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx + - span: + lo: 463 + hi: 526 + span: + lo: 453 + hi: 460 + - mode: Private + type_: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":528,\\\"hi\\\":530}\"}" + value: + Unary: + receiver: + Literal: + I8: + - "1" + - span: + lo: 538 + hi: 541 + op: Negate + span: + lo: 537 + hi: 541 + span: + lo: 532 + hi: 534 + span: + lo: 291 + hi: 300 diff --git a/tests/expectations/parser/inputs/input_public_constant_fail.out b/tests/expectations/parser/inputs/input_public_constant_fail.out new file mode 100644 index 0000000000..0c14795cf5 --- /dev/null +++ b/tests/expectations/parser/inputs/input_public_constant_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Input +expectation: Fail +outputs: + - "Error [EPAR0370020]: A parameter cannot be both public and const.\n --> test:4:1\n |\n 4 | public constant a: bool = true;\n | ^^^^^^^^^^^^^^^" diff --git a/tests/expectations/parser/program/backslash_eof.out b/tests/expectations/parser/program/backslash_eof.out new file mode 100644 index 0000000000..ffd5855107 --- /dev/null +++ b/tests/expectations/parser/program/backslash_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `\\`.\n" diff --git a/tests/expectations/parser/program/bidi_comment_2_fail.out b/tests/expectations/parser/program/bidi_comment_2_fail.out new file mode 100644 index 0000000000..8ab69aa897 --- /dev/null +++ b/tests/expectations/parser/program/bidi_comment_2_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370021]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/program/bidi_comment_fail.out b/tests/expectations/parser/program/bidi_comment_fail.out new file mode 100644 index 0000000000..8ab69aa897 --- /dev/null +++ b/tests/expectations/parser/program/bidi_comment_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370021]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/program/dollar_eof.out b/tests/expectations/parser/program/dollar_eof.out new file mode 100644 index 0000000000..7c1ad0c68b --- /dev/null +++ b/tests/expectations/parser/program/dollar_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `$`.\n" diff --git a/tests/expectations/parser/program/escape_u8_eof.out b/tests/expectations/parser/program/escape_u8_eof.out new file mode 100644 index 0000000000..38a3131683 --- /dev/null +++ b/tests/expectations/parser/program/escape_u8_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `\\1u8`.\n" diff --git a/tests/expectations/parser/program/hex_eof.out b/tests/expectations/parser/program/hex_eof.out new file mode 100644 index 0000000000..e2e5c92722 --- /dev/null +++ b/tests/expectations/parser/program/hex_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/program/pipe_eof.out b/tests/expectations/parser/program/pipe_eof.out new file mode 100644 index 0000000000..cd3e0fe4fc --- /dev/null +++ b/tests/expectations/parser/program/pipe_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/parser/program/q_eof.out b/tests/expectations/parser/program/q_eof.out new file mode 100644 index 0000000000..2a1de6e129 --- /dev/null +++ b/tests/expectations/parser/program/q_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370014]: Expected a closed string but found ``." diff --git a/tests/expectations/parser/program/sq_eof.out b/tests/expectations/parser/program/sq_eof.out new file mode 100644 index 0000000000..6d71c1dc6b --- /dev/null +++ b/tests/expectations/parser/program/sq_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `'`.\n" diff --git a/tests/expectations/parser/program/tilde_eof.out b/tests/expectations/parser/program/tilde_eof.out new file mode 100644 index 0000000000..10c51ba0fe --- /dev/null +++ b/tests/expectations/parser/program/tilde_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `~`.\n" diff --git a/tests/expectations/parser/program/unclosed_unicode_eof_fail.out b/tests/expectations/parser/program/unclosed_unicode_eof_fail.out new file mode 100644 index 0000000000..15e4c10e35 --- /dev/null +++ b/tests/expectations/parser/program/unclosed_unicode_eof_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not lex the following content: `'\\u`.\n" diff --git a/tests/expectations/parser/serialize/one_plus_one.out b/tests/expectations/parser/serialize/one_plus_one.out new file mode 100644 index 0000000000..f5a47bf8b9 --- /dev/null +++ b/tests/expectations/parser/serialize/one_plus_one.out @@ -0,0 +1,27 @@ +--- +namespace: Serialize +expectation: Pass +outputs: + - name: "" + network: "" + expected_input: [] + imports: {} + functions: + "{\"name\":\"main\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":15}\"}": + identifier: "{\"name\":\"main\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":15}\"}" + input: [] + output: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Binary: + left: + Literal: + U8: "1" + right: + Literal: + U8: "1" + op: Add + circuits: {} diff --git a/tests/expectations/parser/serialize/parser_error.out b/tests/expectations/parser/serialize/parser_error.out new file mode 100644 index 0000000000..d37e0e45a0 --- /dev/null +++ b/tests/expectations/parser/serialize/parser_error.out @@ -0,0 +1,5 @@ +--- +namespace: Serialize +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected 'function', 'circuit', 'test' -- found 'invalid'\n --> test:3:1\n |\n 3 | invalid\n | ^^^^^^^" diff --git a/tests/expectations/parser/statement/assign.out b/tests/expectations/parser/statement/assign.out new file mode 100644 index 0000000000..a3e12f1b46 --- /dev/null +++ b/tests/expectations/parser/statement/assign.out @@ -0,0 +1,45 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":8}\"}" + span: + lo: 0 + hi: 8 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Add + span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + arguments: [] + span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 7 diff --git a/tests/expectations/parser/statement/block.out b/tests/expectations/parser/statement/block.out new file mode 100644 index 0000000000..cef6defe29 --- /dev/null +++ b/tests/expectations/parser/statement/block.out @@ -0,0 +1,84 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Block: + statements: [] + span: + lo: 0 + hi: 2 + - Block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 9 + hi: 12 + span: + lo: 2 + hi: 12 + span: + lo: 0 + hi: 15 + - Block: + statements: + - Block: + statements: [] + span: + lo: 1 + hi: 3 + span: + lo: 0 + hi: 4 + - Block: + statements: + - Block: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 11 + hi: 14 + span: + lo: 4 + hi: 14 + span: + lo: 2 + hi: 17 + span: + lo: 0 + hi: 19 + - Block: + statements: + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + then: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 16 + hi: 19 + span: + lo: 9 + hi: 19 + span: + lo: 7 + hi: 22 + otherwise: ~ + span: + lo: 2 + hi: 22 + span: + lo: 0 + hi: 24 diff --git a/tests/expectations/parser/statement/conditional.out b/tests/expectations/parser/statement/conditional.out new file mode 100644 index 0000000000..bd6e2b982d --- /dev/null +++ b/tests/expectations/parser/statement/conditional.out @@ -0,0 +1,143 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + then: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 14 + hi: 17 + span: + lo: 7 + hi: 17 + span: + lo: 5 + hi: 20 + otherwise: ~ + span: + lo: 0 + hi: 20 + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + then: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 16 + hi: 19 + span: + lo: 9 + hi: 19 + span: + lo: 7 + hi: 22 + otherwise: ~ + span: + lo: 0 + hi: 22 + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + then: + statements: [] + span: + lo: 7 + hi: 9 + otherwise: + Block: + statements: [] + span: + lo: 15 + hi: 17 + span: + lo: 0 + hi: 17 + - Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + op: Add + span: + lo: 3 + hi: 6 + then: + statements: [] + span: + lo: 7 + hi: 9 + otherwise: + Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + right: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Add + span: + lo: 18 + hi: 21 + then: + statements: [] + span: + lo: 22 + hi: 24 + otherwise: + Block: + statements: [] + span: + lo: 30 + hi: 32 + span: + lo: 15 + hi: 32 + span: + lo: 0 + hi: 32 + - Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + op: Add + span: + lo: 3 + hi: 6 + then: + statements: + - Return: + expression: + Literal: + U8: + - "0" + - span: + lo: 16 + hi: 19 + span: + lo: 9 + hi: 19 + span: + lo: 7 + hi: 22 + otherwise: ~ + span: + lo: 0 + hi: 22 diff --git a/tests/expectations/parser/statement/conditional_fail.out b/tests/expectations/parser/statement/conditional_fail.out new file mode 100644 index 0000000000..6282f02aa2 --- /dev/null +++ b/tests/expectations/parser/statement/conditional_fail.out @@ -0,0 +1,5 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:23\n |\n 1 | if true {} else let x = 2;\n | ^" diff --git a/tests/expectations/parser/statement/console.out b/tests/expectations/parser/statement/console.out new file mode 100644 index 0000000000..b50fd15ea8 --- /dev/null +++ b/tests/expectations/parser/statement/console.out @@ -0,0 +1,83 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Console: + function: + Assert: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Console: + function: + Error: + string: "{}" + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + span: + lo: 13 + hi: 22 + span: + lo: 0 + hi: 22 + - Console: + function: + Error: + string: "{}{}" + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":22,\\\"hi\\\":23}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":25,\\\"hi\\\":26}\"}" + span: + lo: 13 + hi: 27 + span: + lo: 0 + hi: 27 + - Console: + function: + Error: + string: x + parameters: [] + span: + lo: 13 + hi: 18 + span: + lo: 0 + hi: 18 + - Console: + function: + Log: + string: "{}" + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + span: + lo: 11 + hi: 20 + span: + lo: 0 + hi: 20 + - Console: + function: + Log: + string: "{}{}" + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" + span: + lo: 11 + hi: 25 + span: + lo: 0 + hi: 25 + - Console: + function: + Log: + string: x + parameters: [] + span: + lo: 11 + hi: 16 + span: + lo: 0 + hi: 16 diff --git a/tests/expectations/parser/statement/console_fail.out b/tests/expectations/parser/statement/console_fail.out new file mode 100644 index 0000000000..782ac5f37a --- /dev/null +++ b/tests/expectations/parser/statement/console_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370021]: Unicode bidi override code point encountered." + - "Error [EPAR0370009]: unexpected string: expected 'formatted static_string', found '1'\n --> test:1:13\n |\n 1 | console.log(1);\n | ^" + - "Error [EPAR0370007]: unexpected identifier: expected 'assert', 'error', 'log' -- found 'test'\n --> test:1:9\n |\n 1 | console.test();\n | ^^^^" diff --git a/tests/expectations/parser/statement/definition.out b/tests/expectations/parser/statement/definition.out new file mode 100644 index 0000000000..8d87c528ca --- /dev/null +++ b/tests/expectations/parser/statement/definition.out @@ -0,0 +1,200 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U16 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: Add + span: + lo: 13 + hi: 16 + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + arguments: [] + span: + lo: 12 + hi: 15 + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: String + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":20}\"}" + span: + lo: 0 + hi: 20 + - Definition: + declaration_type: Const + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + type_: I8 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":18}\"}" + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Const + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + type_: I16 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Add + span: + lo: 15 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Const + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + type_: I8 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + arguments: [] + span: + lo: 14 + hi: 17 + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Const + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + type_: String + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":22}\"}" + span: + lo: 0 + hi: 22 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U32 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U32 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: Add + span: + lo: 13 + hi: 16 + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U32 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + arguments: [] + span: + lo: 13 + hi: 16 + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Const + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + type_: U32 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":19}\"}" + span: + lo: 0 + hi: 19 + - Definition: + declaration_type: Const + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + type_: U32 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Add + span: + lo: 15 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Const + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + type_: U32 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + arguments: [] + span: + lo: 15 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: Address + value: + Literal: + Address: + - aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx + - span: + lo: 17 + hi: 80 + span: + lo: 0 + hi: 80 diff --git a/tests/expectations/parser/statement/definition_fail.out b/tests/expectations/parser/statement/definition_fail.out new file mode 100644 index 0000000000..eb2aacecf5 --- /dev/null +++ b/tests/expectations/parser/statement/definition_fail.out @@ -0,0 +1,47 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = expr;\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = ();\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = x+y;\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = (x,y);\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x = x();\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = expr;\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = ();\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = x+y;\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = (x,y);\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x = x();\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = expr;\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = ();\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = x+y;\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = (x,y);\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = x();\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = expr;\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = ();\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = x+y;\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = (x,y);\n | ^" + - "Error [EPAR0370005]: expected : -- found 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = x();\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x,y,,) = ();\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (,x,y) = ();\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x,,y) = ();\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8; (2,,)] = [[0,0], [0,0]];\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'const'\n --> test:1:8\n |\n 1 | let x: const = expr;\n | ^^^^^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found 'let'\n --> test:1:10\n |\n 1 | const x: let = expr;\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ''\n --> test:1:1\n |\n 1 | let\n | ^^^" + - "Error [EPAR0370005]: expected : -- found ''\n --> test:1:5\n |\n 1 | let x\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found ''\n --> test:1:6\n |\n 1 | let x:\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = (a, y]);\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:5\n |\n 1 | let = 1u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ';'\n --> test:1:4\n |\n 1 | let;\n | ^" + - "Error [EPAR0370005]: expected : -- found '1'\n --> test:1:7\n |\n 1 | let x 1u8;\n | ^" + - "Error [EPAR0370005]: expected = -- found ';'\n --> test:1:10\n |\n 1 | let x: u8;\n | ^" + - "Error [EPAR0370005]: expected = -- found ''\n --> test:1:8\n |\n 1 | let x: u8\n | ^^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '='\n --> test:1:8\n |\n 1 | let x: = 1;\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8] = 1;\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8;\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- found '['\n --> test:1:8\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:15\n |\n 1 | let dbg: u8 = ];\n | ^" + - "Error [EPAR0370017]: Could not lex the following content: `🦀:`.\n" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x) = ...;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:5\n |\n 1 | let (x,) = ...;\n | ^" diff --git a/tests/expectations/parser/statement/expression.out b/tests/expectations/parser/statement/expression.out new file mode 100644 index 0000000000..51d6760b69 --- /dev/null +++ b/tests/expectations/parser/statement/expression.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | expr;\n | ^^^^^" + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x+y;\n | ^^^^" + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x();\n | ^^^^" diff --git a/tests/expectations/parser/statement/expression_fail.out b/tests/expectations/parser/statement/expression_fail.out new file mode 100644 index 0000000000..bf934dda75 --- /dev/null +++ b/tests/expectations/parser/statement/expression_fail.out @@ -0,0 +1,10 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:2\n |\n 1 | (];\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [);\n | ^" + - "Error [EPAR0370017]: Could not lex the following content: `\\y`.\n" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:6\n |\n 1 | (x,y|;\n | ^" + - "Error [EPAR0370005]: expected ; -- found '['\n --> test:1:2\n |\n 1 | x[};\n | ^" + - "Error [EPAR0370005]: expected ) -- found ']'\n --> test:1:6\n |\n 1 | (x, y];\n | ^" diff --git a/tests/expectations/parser/statement/hex_int_fail.out b/tests/expectations/parser/statement/hex_int_fail.out new file mode 100644 index 0000000000..e5abf3d258 --- /dev/null +++ b/tests/expectations/parser/statement/hex_int_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370019]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/statement/iteration.out b/tests/expectations/parser/statement/iteration.out new file mode 100644 index 0000000000..404942821b --- /dev/null +++ b/tests/expectations/parser/statement/iteration.out @@ -0,0 +1,136 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + start: + Literal: + U8: + - "0" + - span: + lo: 13 + hi: 16 + stop: + Literal: + U8: + - "7" + - span: + lo: 18 + hi: 21 + inclusive: false + block: + statements: [] + span: + lo: 22 + hi: 24 + span: + lo: 0 + hi: 24 + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: I64 + start: + Literal: + I64: + - "0" + - span: + lo: 14 + hi: 18 + stop: + Literal: + I64: + - "7" + - span: + lo: 20 + hi: 24 + inclusive: false + block: + statements: + - Return: + expression: + Literal: + U8: + - "1" + - span: + lo: 34 + hi: 37 + span: + lo: 27 + hi: 37 + span: + lo: 25 + hi: 40 + span: + lo: 0 + hi: 40 + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: Field + start: + Literal: + Field: + - "0" + - span: + lo: 16 + hi: 22 + stop: + Literal: + U8: + - "99" + - span: + lo: 24 + hi: 28 + inclusive: false + block: + statements: + - Return: + expression: + Literal: + U8: + - "1" + - span: + lo: 38 + hi: 41 + span: + lo: 31 + hi: 41 + span: + lo: 29 + hi: 44 + span: + lo: 0 + hi: 44 + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: Boolean + start: + Literal: + U8: + - "0" + - span: + lo: 15 + hi: 18 + stop: + Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":24}\"}" + inclusive: false + block: + statements: + - Return: + expression: + Literal: + U8: + - "1" + - span: + lo: 34 + hi: 37 + span: + lo: 27 + hi: 37 + span: + lo: 25 + hi: 40 + span: + lo: 0 + hi: 40 diff --git a/tests/expectations/parser/statement/let_mut_recover.out b/tests/expectations/parser/statement/let_mut_recover.out new file mode 100644 index 0000000000..f3ab17869e --- /dev/null +++ b/tests/expectations/parser/statement/let_mut_recover.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- found '{'\n --> test:3:16\n |\n 3 | function foo() {\n | ^" diff --git a/tests/expectations/parser/statement/return.out b/tests/expectations/parser/statement/return.out new file mode 100644 index 0000000000..9b608bd054 --- /dev/null +++ b/tests/expectations/parser/statement/return.out @@ -0,0 +1,21 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Return: + expression: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":11}\"}" + span: + lo: 0 + hi: 11 + - Return: + expression: + Literal: + U8: + - "5" + - span: + lo: 7 + hi: 10 + span: + lo: 0 + hi: 10 diff --git a/tests/expectations/parser/statement/return_fail.out b/tests/expectations/parser/statement/return_fail.out new file mode 100644 index 0000000000..09afea018d --- /dev/null +++ b/tests/expectations/parser/statement/return_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" + - "Error [EPAR0370018]: Could not parse the implicit value: 5.\n --> test:1:8\n |\n 1 | return 5\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:2:1\n |\n 2 | if x {}\n | ^^" diff --git a/tests/expectations/parser/unreachable/define.out b/tests/expectations/parser/unreachable/define.out new file mode 100644 index 0000000000..67b881be2c --- /dev/null +++ b/tests/expectations/parser/unreachable/define.out @@ -0,0 +1,49 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:1\n |\n 1 | ; x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '.'\n --> test:1:1\n |\n 1 | . x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'import'\n --> test:1:1\n |\n 1 | import x = 10u8;\n | ^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ','\n --> test:1:1\n |\n 1 | , x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '['\n --> test:1:1\n |\n 1 | [ x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ']'\n --> test:1:1\n |\n 1 | ] x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ''\n --> test:1:11\n |\n 1 | { x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '}'\n --> test:1:1\n |\n 1 | } x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ) -- found '='\n --> test:1:5\n |\n 1 | ( x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ')'\n --> test:1:1\n |\n 1 | ) x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ':'\n --> test:1:1\n |\n 1 | : x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '::'\n --> test:1:1\n |\n 1 | :: x = 10u8;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '?'\n --> test:1:1\n |\n 1 | ? x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '_'\n --> test:1:1\n |\n 1 | _ x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:1\n |\n 1 | = x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '=='\n --> test:1:1\n |\n 1 | == x = 10u8;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '!='\n --> test:1:1\n |\n 1 | != x = 10u8;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>'\n --> test:1:1\n |\n 1 | > x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>='\n --> test:1:1\n |\n 1 | >= x = 10u8;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<'\n --> test:1:1\n |\n 1 | < x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '<='\n --> test:1:1\n |\n 1 | <= x = 10u8;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '>'\n --> test:1:1\n |\n 1 | > x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '..'\n --> test:1:1\n |\n 1 | .. x = 10u8;\n | ^^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:4\n |\n 1 | as x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected . -- found 'x'\n --> test:1:9\n |\n 1 | console x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | for x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected { -- found '='\n --> test:1:6\n |\n 1 | if x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'else'\n --> test:1:1\n |\n 1 | else x = 10u8;\n | ^^^^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:4\n |\n 1 | i8 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | i16 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | i32 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | i64 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | i128 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:4\n |\n 1 | u8 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | u16 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | u32 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:5\n |\n 1 | u64 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | u128 x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '&'\n --> test:1:1\n |\n 1 | & x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found '='\n --> test:1:10\n |\n 1 | return x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | self x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | Self x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:6\n |\n 1 | true x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- found 'x'\n --> test:1:7\n |\n 1 | false x = 10u8;\n | ^" + - "Error [EPAR0370018]: Could not parse the implicit value: 0.\n --> test:1:1\n |\n 1 | 0 x = 10u8;\n | ^" diff --git a/tests/expectations/parser/unreachable/eat_ident.out b/tests/expectations/parser/unreachable/eat_ident.out new file mode 100644 index 0000000000..39f564c282 --- /dev/null +++ b/tests/expectations/parser/unreachable/eat_ident.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ';'\n --> test:3:9\n |\n 3 | circuit ;\n | ^" diff --git a/tests/expectations/parser/unreachable/eat_int.out b/tests/expectations/parser/unreachable/eat_int.out new file mode 100644 index 0000000000..600a89e081 --- /dev/null +++ b/tests/expectations/parser/unreachable/eat_int.out @@ -0,0 +1,56 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '-'\n --> test:1:3\n |\n 1 | x.-12\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_;\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_.\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_import\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_,\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_*\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_+\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_-\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_/\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_[\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_]\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_{\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_}\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_(\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_)\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_:\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_::\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_?\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0__\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_=\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_==\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_!\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_!=\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_>\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_>=\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_<\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_<=\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_>\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_..\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_as\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_console\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_const\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_let\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_for\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_if\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_else\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i8\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i16\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i32\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i64\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_i128\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u8\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u16\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u32\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u64\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_u128\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_&\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_return\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_self\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_Self\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_true\n | ^" + - "Error [EPAR0370005]: expected ; -- found '_'\n --> test:1:4\n |\n 1 | x.0_false\n | ^" diff --git a/tests/expectations/parser/unreachable/equality_and_order_expression.out b/tests/expectations/parser/unreachable/equality_and_order_expression.out new file mode 100644 index 0000000000..6fa21e2342 --- /dev/null +++ b/tests/expectations/parser/unreachable/equality_and_order_expression.out @@ -0,0 +1,56 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ; {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 . {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 import {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 , {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 * {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 + {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 - {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 / {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 [ {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ] {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 { {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 } {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ( {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ) {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 : {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 :: {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ? {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 _ {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 = {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 == {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 ! {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 != {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 > {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 >= {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 < {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 <= {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 > {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 .. {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 as {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 console {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 const {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 let {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 for {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 if {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 else {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i8 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i16 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i32 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i64 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 i128 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u8 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u16 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u32 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u64 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 u128 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 & {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 return {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 self {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 Self {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 true {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 false {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found 'if'\n --> test:1:1\n |\n 1 | if 10 0 {}\n | ^^" diff --git a/tests/expectations/parser/unreachable/expect_ident.out b/tests/expectations/parser/unreachable/expect_ident.out new file mode 100644 index 0000000000..af9d367a5a --- /dev/null +++ b/tests/expectations/parser/unreachable/expect_ident.out @@ -0,0 +1,56 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ';'\n --> test:1:4\n |\n 1 | x::;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '.'\n --> test:1:4\n |\n 1 | x::.\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'import'\n --> test:1:4\n |\n 1 | x::import\n | ^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ','\n --> test:1:4\n |\n 1 | x::,\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '*'\n --> test:1:4\n |\n 1 | x::*\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '+'\n --> test:1:4\n |\n 1 | x::+\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '-'\n --> test:1:4\n |\n 1 | x::-\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '/'\n --> test:1:4\n |\n 1 | x::/\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '['\n --> test:1:4\n |\n 1 | x::[\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ']'\n --> test:1:4\n |\n 1 | x::]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '{'\n --> test:1:4\n |\n 1 | x::{\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '}'\n --> test:1:4\n |\n 1 | x::}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '('\n --> test:1:4\n |\n 1 | x::(\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ')'\n --> test:1:4\n |\n 1 | x::)\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found ':'\n --> test:1:4\n |\n 1 | x:::\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '::'\n --> test:1:4\n |\n 1 | x::::\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '?'\n --> test:1:4\n |\n 1 | x::?\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '_'\n --> test:1:4\n |\n 1 | x::_\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:4\n |\n 1 | x::=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '=='\n --> test:1:4\n |\n 1 | x::==\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '!'\n --> test:1:4\n |\n 1 | x::!\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '!='\n --> test:1:4\n |\n 1 | x::!=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '>'\n --> test:1:4\n |\n 1 | x::>\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '>='\n --> test:1:4\n |\n 1 | x::>=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '<'\n --> test:1:4\n |\n 1 | x::<\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '<='\n --> test:1:4\n |\n 1 | x::<=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '>'\n --> test:1:4\n |\n 1 | x::>\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '..'\n --> test:1:4\n |\n 1 | x::..\n | ^^" + - "Error [EPAR0370005]: expected ; -- found ''\n --> test:1:4\n |\n 1 | x::as\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'console'\n --> test:1:4\n |\n 1 | x::console\n | ^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'const'\n --> test:1:4\n |\n 1 | x::const\n | ^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'let'\n --> test:1:4\n |\n 1 | x::let\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'for'\n --> test:1:4\n |\n 1 | x::for\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'if'\n --> test:1:4\n |\n 1 | x::if\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'else'\n --> test:1:4\n |\n 1 | x::else\n | ^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i8'\n --> test:1:4\n |\n 1 | x::i8\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i16'\n --> test:1:4\n |\n 1 | x::i16\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i32'\n --> test:1:4\n |\n 1 | x::i32\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i64'\n --> test:1:4\n |\n 1 | x::i64\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'i128'\n --> test:1:4\n |\n 1 | x::i128\n | ^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u8'\n --> test:1:4\n |\n 1 | x::u8\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u16'\n --> test:1:4\n |\n 1 | x::u16\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u32'\n --> test:1:4\n |\n 1 | x::u32\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u64'\n --> test:1:4\n |\n 1 | x::u64\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'u128'\n --> test:1:4\n |\n 1 | x::u128\n | ^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '&'\n --> test:1:4\n |\n 1 | x::&\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'return'\n --> test:1:4\n |\n 1 | x::return\n | ^^^^^^" + - "Error [EPAR0370005]: expected ; -- found ''\n --> test:1:4\n |\n 1 | x::self\n | ^^^^" + - "Error [EPAR0370005]: expected ; -- found ''\n --> test:1:4\n |\n 1 | x::Self\n | ^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'true'\n --> test:1:4\n |\n 1 | x::true\n | ^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'false'\n --> test:1:4\n |\n 1 | x::false\n | ^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '0'\n --> test:1:4\n |\n 1 | x::0\n | ^" diff --git a/tests/expectations/parser/unreachable/math_op_fail.out b/tests/expectations/parser/unreachable/math_op_fail.out new file mode 100644 index 0000000000..cf3f11861f --- /dev/null +++ b/tests/expectations/parser/unreachable/math_op_fail.out @@ -0,0 +1,63 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ; b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a import b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a , b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a [ b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ] b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a { b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a } b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ( b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ) b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a : b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ? b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a _ b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a = b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a ! b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a .. b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a console b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a const b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a let b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a for b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a if b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a else b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i8 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i16 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i32 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i64 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a i128 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u8 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u16 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u32 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u64 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a u128 b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a & b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a return b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a self b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a Self b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a true b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a false b;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a 0 b;\n | ^" + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x;=b;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:3\n |\n 1 | x.=b;\n | ^" + - "Error [EPAR0370005]: expected ; -- found ','\n --> test:1:2\n |\n 1 | x,=b; // 43\n | ^" + - "Error [EPAR0370005]: expected ; -- found '['\n --> test:1:2\n |\n 1 | x[=b;\n | ^" + - "Error [EPAR0370005]: expected ; -- found ']'\n --> test:1:2\n |\n 1 | x]=b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '='\n --> test:1:3\n |\n 1 | x{=b;\n | ^" + - "Error [EPAR0370005]: expected ; -- found '}'\n --> test:1:2\n |\n 1 | x}=b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ';'\n --> test:1:4\n |\n 1 | x=(;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ')'\n --> test:1:3\n |\n 1 | x=);\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found ':'\n --> test:1:3\n |\n 1 | x=:;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '::'\n --> test:1:3\n |\n 1 | x=::;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:3\n |\n 1 | x?=b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:4\n |\n 1 | x!==b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:4\n |\n 1 | x>==b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> test:1:4\n |\n 1 | x<==b;\n | ^" + - "Error [EPAR0370005]: expected ; -- found '..'\n --> test:1:2\n |\n 1 | x..=b;\n | ^^" + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x==b;\n | ^^^^^" + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x!=b;\n | ^^^^^" + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x<=b;\n | ^^^^^" + - "Error [EPAR0370022]: Expression statements are not supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" diff --git a/tests/expectations/parser/unreachable/math_op_pass.out b/tests/expectations/parser/unreachable/math_op_pass.out new file mode 100644 index 0000000000..01b3561a4c --- /dev/null +++ b/tests/expectations/parser/unreachable/math_op_pass.out @@ -0,0 +1,312 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Eq + span: + lo: 12 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Neq + span: + lo: 12 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Gt + span: + lo: 12 + hi: 17 + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Gte + span: + lo: 12 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Lt + span: + lo: 12 + hi: 17 + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Lte + span: + lo: 12 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Gt + span: + lo: 12 + hi: 17 + span: + lo: 0 + hi: 17 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"x_\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + span: + lo: 0 + hi: 4 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xconsole\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":8}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + span: + lo: 0 + hi: 10 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xconst\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + span: + lo: 0 + hi: 8 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xlet\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xfor\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xif\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 0 + hi: 5 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xelse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xi8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 0 + hi: 5 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xi16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xi32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xi64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xi128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xu8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 0 + hi: 5 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xu16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xu64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xu128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xreturn\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":7}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + span: + lo: 0 + hi: 9 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xtrue\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"xfalse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + span: + lo: 0 + hi: 8 + - Assign: + operation: Assign + place: + Identifier: "{\"name\":\"x0\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + span: + lo: 0 + hi: 4 diff --git a/tests/expectations/parser/unreachable/postfix_fail.out b/tests/expectations/parser/unreachable/postfix_fail.out new file mode 100644 index 0000000000..1391c02928 --- /dev/null +++ b/tests/expectations/parser/unreachable/postfix_fail.out @@ -0,0 +1,24 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a;;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a.;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a,;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a[;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a];\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a{;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a};\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a);\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a:;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a?;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a=;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a==;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a!;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a!=;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a>;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a>=;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a<;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a<=;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a>;\n | ^" + - "Error [EPAR0370005]: expected : -- found '='\n --> test:1:7\n |\n 1 | let x = a..;\n | ^" diff --git a/tests/expectations/parser/unreachable/postfix_pass.out b/tests/expectations/parser/unreachable/postfix_pass.out new file mode 100644 index 0000000000..74b006212c --- /dev/null +++ b/tests/expectations/parser/unreachable/postfix_pass.out @@ -0,0 +1,229 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"aimport\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":19}\"}" + span: + lo: 0 + hi: 19 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"a_\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":14}\"}" + span: + lo: 0 + hi: 14 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"aas\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"aconsole\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":20}\"}" + span: + lo: 0 + hi: 20 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"aconst\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":18}\"}" + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"alet\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"afor\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"aif\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"aelse\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"ai8\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"ai16\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"ai32\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"ai64\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"ai128\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"au8\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"au16\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"au32\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"au64\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"au128\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"areturn\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":19}\"}" + span: + lo: 0 + hi: 19 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"aself\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"aSelf\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"atrue\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"afalse\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":18}\"}" + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_name: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: U8 + value: + Identifier: "{\"name\":\"a0\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":14}\"}" + span: + lo: 0 + hi: 14 diff --git a/tests/parser/inputs/input_const.leo b/tests/parser/inputs/input_const.leo index 27f23568a7..83b67aa808 100644 --- a/tests/parser/inputs/input_const.leo +++ b/tests/parser/inputs/input_const.leo @@ -8,7 +8,7 @@ const a: bool = true; const b: u8 = 2u8; const c: field = 0field; const d: group = (0, 1)group; -const e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8; +const e: address = aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx; const f: i8 = -2i8; [registers] @@ -16,5 +16,5 @@ r0: bool = true; r1: u8 = 2u8; r2: field = 0field; r3: group = (0, 1)group; -r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8; +r4: address = aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx; r4: i8 = -1i8; diff --git a/tests/parser/inputs/input_constant.leo b/tests/parser/inputs/input_constant.leo index 6255d4e022..52fafe0066 100644 --- a/tests/parser/inputs/input_constant.leo +++ b/tests/parser/inputs/input_constant.leo @@ -8,7 +8,7 @@ constant a: bool = true; constant b: u8 = 2u8; constant c: field = 0field; constant d: group = (0, 1)group; -constant e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8; +constant e: address = aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx; constant f: i8 = -2i8; [registers] @@ -16,5 +16,5 @@ r0: bool = true; r1: u8 = 2u8; r2: field = 0field; r3: group = (0, 1)group; -r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8; +r4: address = aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx; r4: i8 = -1i8; diff --git a/tests/parser/inputs/input_public.leo b/tests/parser/inputs/input_public.leo index a7859356cf..6a0113ecca 100644 --- a/tests/parser/inputs/input_public.leo +++ b/tests/parser/inputs/input_public.leo @@ -8,7 +8,7 @@ public a: bool = true; public b: u8 = 2u8; public c: field = 0field; public d: group = (0, 1)group; -public e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8; +public e: address = aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx; public f: i8 = -2i8; [registers] @@ -16,5 +16,5 @@ r0: bool = true; r1: u8 = 2u8; r2: field = 0field; r3: group = (0, 1)group; -r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8; +r4: address = aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx; r4: i8 = -1i8; diff --git a/tests/parser/statement/definition.leo b/tests/parser/statement/definition.leo index a9b2624515..a8c81de7d4 100644 --- a/tests/parser/statement/definition.leo +++ b/tests/parser/statement/definition.leo @@ -34,4 +34,4 @@ const x: u32 = x+y; const x: u32 = x(); -let x: address = aleo15u4r0gzjtqzepkgurgn7p3u5kkhs9p74rx6aun3uh2s5std6759svgmg53; +let x: address = aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx; From 8fb2e60cb455d6416d8f85ac873ba62af92f37fe Mon Sep 17 00:00:00 2001 From: collin <16715212+collinc97@users.noreply.github.com> Date: Wed, 3 Aug 2022 14:52:05 -0700 Subject: [PATCH 3/5] cargo fmt + clippy --- compiler/ast/src/expressions/circuit_init.rs | 14 +++++--------- compiler/ast/src/input/input_ast.rs | 4 +--- compiler/compiler/src/test.rs | 2 +- compiler/parser/src/parser/expression.rs | 2 +- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/compiler/ast/src/expressions/circuit_init.rs b/compiler/ast/src/expressions/circuit_init.rs index e201c398a0..9ab6548926 100644 --- a/compiler/ast/src/expressions/circuit_init.rs +++ b/compiler/ast/src/expressions/circuit_init.rs @@ -14,8 +14,8 @@ // You should have received a copy of the GNU General Public License // along with the Leo library. If not, see . -use leo_span::sym; use super::*; +use leo_span::sym; /// An initializer for a single field / variable of a circuit initializer expression. /// That is, in `Foo { bar: 42, baz }`, this is either `bar: 42`, or `baz`. @@ -55,14 +55,9 @@ pub struct CircuitExpression { impl CircuitExpression { /// Returns true if the record has all required fields and visibility. pub fn check_record(&self) -> bool { - let has_member = |symbol| self - .members - .iter() - .any(|variable| variable.identifier.name == symbol); + let has_member = |symbol| self.members.iter().any(|variable| variable.identifier.name == symbol); - has_member(sym::owner) - && has_member(sym::gates) - && has_member(sym::_nonce) + has_member(sym::owner) && has_member(sym::gates) && has_member(sym::_nonce) } /// Returns the circuit as a record interface with visibility. @@ -80,7 +75,8 @@ impl CircuitExpression { } }) .collect::>() - .join(", ")) + .join(", ") + ) } } diff --git a/compiler/ast/src/input/input_ast.rs b/compiler/ast/src/input/input_ast.rs index 6eea381613..c1f99dba43 100644 --- a/compiler/ast/src/input/input_ast.rs +++ b/compiler/ast/src/input/input_ast.rs @@ -59,9 +59,7 @@ impl InputAst { false => definition.value.to_string(), true => match &definition.value { // Print out the record interface with visibility. - Expression::Circuit(circuit_expression) => { - circuit_expression.to_record_string() - } + Expression::Circuit(circuit_expression) => circuit_expression.to_record_string(), _ => panic!("Input error: Expected a circuit expression."), }, }, diff --git a/compiler/compiler/src/test.rs b/compiler/compiler/src/test.rs index 91786d42e7..a9eb96184d 100644 --- a/compiler/compiler/src/test.rs +++ b/compiler/compiler/src/test.rs @@ -264,7 +264,7 @@ fn run_test(test: Test, handler: &Handler, err_buf: &BufferEmitter) -> Result::open(&directory).map_err(LeoError::Anyhow))?; // Get the program process and check all instructions. - // handler.extend_if_error(package.get_process().map_err(LeoError::Anyhow))?; + handler.extend_if_error(package.get_process().map_err(LeoError::Anyhow))?; } let initial_ast = hash_file("/tmp/output/initial_ast.json"); diff --git a/compiler/parser/src/parser/expression.rs b/compiler/parser/src/parser/expression.rs index fc7c965eba..1170a91f9e 100644 --- a/compiler/parser/src/parser/expression.rs +++ b/compiler/parser/src/parser/expression.rs @@ -17,8 +17,8 @@ use super::*; use leo_errors::{ParserError, Result}; -use snarkvm_console::{account::Address, network::Testnet3}; use leo_span::Symbol; +use snarkvm_console::{account::Address, network::Testnet3}; const INT_TYPES: &[Token] = &[ Token::I8, From 24c152be6ec95997f9e7c8deb2efdbb7be846db7 Mon Sep 17 00:00:00 2001 From: collin <16715212+collinc97@users.noreply.github.com> Date: Wed, 3 Aug 2022 16:01:34 -0700 Subject: [PATCH 4/5] update test infra --- compiler/compiler/src/test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/compiler/src/test.rs b/compiler/compiler/src/test.rs index a9eb96184d..2059e563b6 100644 --- a/compiler/compiler/src/test.rs +++ b/compiler/compiler/src/test.rs @@ -261,10 +261,10 @@ fn run_test(test: Test, handler: &Handler, err_buf: &BufferEmitter) -> Result::open(&directory).map_err(LeoError::Anyhow))?; + let _package = handler.extend_if_error(Package::::open(&directory).map_err(LeoError::Anyhow))?; // Get the program process and check all instructions. - handler.extend_if_error(package.get_process().map_err(LeoError::Anyhow))?; + // handler.extend_if_error(package.get_process().map_err(LeoError::Anyhow))?; } let initial_ast = hash_file("/tmp/output/initial_ast.json"); From 81de7d25d8db43b3fe24136c0c4daeaa595a0426 Mon Sep 17 00:00:00 2001 From: Collin Chin <16715212+collinc97@users.noreply.github.com> Date: Thu, 4 Aug 2022 09:38:14 -0700 Subject: [PATCH 5/5] Update compiler/compiler/src/test.rs --- compiler/compiler/src/test.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/compiler/compiler/src/test.rs b/compiler/compiler/src/test.rs index d019f0397b..8475f5f46e 100644 --- a/compiler/compiler/src/test.rs +++ b/compiler/compiler/src/test.rs @@ -203,7 +203,6 @@ fn compile_and_process<'a>(parsed: &'a mut Compiler<'a>, handler: &Handler) -> R } fn run_test(test: Test, handler: &Handler, err_buf: &BufferEmitter) -> Result { - println!("here"); // Check for CWD option: // ``` cwd: import ``` // When set, uses different working directory for current file.