From 1a569eb65599651c50bb5c706b8d216af89d03c8 Mon Sep 17 00:00:00 2001 From: collin <16715212+collinc97@users.noreply.github.com> Date: Tue, 10 May 2022 11:59:34 -0700 Subject: [PATCH] regen tests --- .../compiler/compiler/address/branch.leo.out | 8 + .../compiler/compiler/address/equal.leo.out | 9 + .../compiler/compiler/address/ternary.leo.out | 9 + .../compiler/compiler/boolean/and.leo.out | 11 + .../compiler/boolean/conditional.leo.out | 11 + .../compiler/compiler/boolean/equal.leo.out | 11 + .../compiler/boolean/not_equal.leo.out | 11 + .../compiler/compiler/boolean/or.leo.out | 11 + .../compiler/char/invalid_char.leo.out | 5 + .../compiler/compiler/char/neq.leo.out | 22 + .../compiler/compiler/char/out.leo.out | 22 + .../compiler/compiler/console/assert.leo.out | 8 + .../console/conditional_assert.leo.out | 9 + .../compiler/compiler/console/error.leo.out | 8 + .../compiler/compiler/console/log.leo.out | 8 + .../compiler/console/log_conditional.leo.out | 9 + .../compiler/console/log_fail.leo.out | 5 + .../compiler/console/log_input.leo.out | 8 + .../compiler/console/log_parameter.leo.out | 8 + .../console/log_parameter_many.leo.out | 8 + .../console/log_parameter_unkown_fail.leo.out | 5 + .../compiler/definition/out_of_order.leo.out | 8 + .../compiler/compiler/field/add.leo.out | 8 + .../compiler/compiler/field/div.leo.out | 8 + .../compiler/compiler/field/eq.leo.out | 8 + .../compiler/compiler/field/field.leo.out | 8 + .../compiler/compiler/field/mul.leo.out | 8 + .../compiler/compiler/field/negate.leo.out | 8 + .../field/no_space_between_literal.leo.out | 5 + .../compiler/field/pow_signed.leo.out | 8 + .../compiler/field/pow_unsigned.leo.out | 8 + .../function/conditional_return.leo.out | 8 + .../duplicate_definition_fail.leo.out | 5 + .../function/duplicate_parameter_fail.leo.out | 5 + .../compiler/function/iteration.leo.out | 8 + .../function/iteration_repeated.leo.out | 8 + .../compiler/function/repeated.leo.out | 8 + .../compiler/compiler/function/return.leo.out | 8 + .../compiler/function/scope_fail.leo.out | 5 + .../shadow_function_with_input_fail.leo.out | 5 + .../function/shadow_parameter_fail.leo.out | 5 + .../compiler/function/undefined_fail.leo.out | 5 + .../compiler/compiler/group/add.leo.out | 8 + .../compiler/compiler/group/assert_eq.leo.out | 8 + .../compiler/group/both_sign_high.leo.out | 8 + .../compiler/group/both_sign_inferred.leo.out | 8 + .../compiler/group/both_sign_low.leo.out | 8 + .../compiler/compiler/group/eq.leo.out | 8 + .../compiler/compiler/group/input.leo.out | 8 + .../compiler/group/mult_by_group_fail.leo.out | 5 + .../compiler/group/mult_by_scalar.leo.out | 8 + .../compiler/compiler/group/negate.leo.out | 8 + .../group/no_space_between_literal.leo.out | 5 + .../compiler/compiler/group/one.leo.out | 8 + .../compiler/compiler/group/point.leo.out | 8 + .../compiler/group/point_input.leo.out | 8 + .../group/positive_and_negative.leo.out | 8 + .../compiler/compiler/group/sub.leo.out | 8 + .../compiler/compiler/group/ternary.leo.out | 8 + .../compiler/group/x_sign_high.leo.out | 8 + .../compiler/group/x_sign_inferred.leo.out | 8 + .../compiler/group/x_sign_low.leo.out | 8 + .../compiler/group/y_sign_high.leo.out | 8 + .../compiler/group/y_sign_inferred.leo.out | 8 + .../compiler/group/y_sign_low.leo.out | 8 + .../compiler/compiler/group/zero.leo.out | 8 + .../input_files/program_input/main.leo.out | 8 + .../program_input/main_field.leo.out | 8 + .../program_input/main_group.leo.out | 8 + .../program_input_constants/main.leo.out | 8 + .../main_field.leo.out | 8 + .../main_group.leo.out | 8 + .../main_multiple.leo.out | 8 + .../compiler/integers/i128/add.leo.out | 8 + .../integers/i128/console_assert.leo.out | 8 + .../compiler/integers/i128/div.leo.out | 8 + .../compiler/integers/i128/eq.leo.out | 8 + .../compiler/integers/i128/ge.leo.out | 9 + .../compiler/integers/i128/gt.leo.out | 9 + .../compiler/integers/i128/le.leo.out | 9 + .../compiler/integers/i128/lt.leo.out | 9 + .../compiler/integers/i128/max.leo.out | 8 + .../compiler/integers/i128/max_fail.leo.out | 5 + .../compiler/integers/i128/min.leo.out | 8 + .../compiler/integers/i128/min_fail.leo.out | 5 + .../compiler/integers/i128/mul.leo.out | 8 + .../compiler/integers/i128/ne.leo.out | 9 + .../compiler/integers/i128/negate.leo.out | 9 + .../compiler/integers/i128/negate_min.leo.out | 8 + .../integers/i128/negate_zero.leo.out | 8 + .../i128/no_space_between_literal.leo.out | 5 + .../compiler/integers/i128/sub.leo.out | 8 + .../compiler/integers/i128/ternary.leo.out | 9 + .../compiler/integers/i16/add.leo.out | 8 + .../integers/i16/console_assert.leo.out | 8 + .../compiler/integers/i16/div.leo.out | 8 + .../compiler/compiler/integers/i16/eq.leo.out | 8 + .../compiler/compiler/integers/i16/ge.leo.out | 9 + .../compiler/compiler/integers/i16/gt.leo.out | 9 + .../compiler/compiler/integers/i16/le.leo.out | 9 + .../compiler/compiler/integers/i16/lt.leo.out | 9 + .../compiler/integers/i16/max.leo.out | 8 + .../compiler/integers/i16/max_fail.leo.out | 5 + .../compiler/integers/i16/min.leo.out | 8 + .../compiler/integers/i16/min_fail.leo.out | 5 + .../compiler/integers/i16/mul.leo.out | 8 + .../compiler/compiler/integers/i16/ne.leo.out | 9 + .../compiler/integers/i16/negate.leo.out | 9 + .../integers/i16/negate_min_fail.leo.out | 8 + .../compiler/integers/i16/negate_zero.leo.out | 8 + .../i16/no_space_between_literal.leo.out | 5 + .../compiler/integers/i16/pow_fail.leo.out | 5 + .../compiler/integers/i16/sub.leo.out | 8 + .../compiler/integers/i16/ternary.leo.out | 9 + .../compiler/integers/i32/add.leo.out | 8 + .../integers/i32/console_assert.leo.out | 8 + .../compiler/integers/i32/div.leo.out | 8 + .../compiler/compiler/integers/i32/eq.leo.out | 8 + .../compiler/compiler/integers/i32/ge.leo.out | 9 + .../compiler/compiler/integers/i32/gt.leo.out | 9 + .../compiler/compiler/integers/i32/le.leo.out | 9 + .../compiler/compiler/integers/i32/lt.leo.out | 9 + .../compiler/integers/i32/max.leo.out | 8 + .../compiler/integers/i32/max_fail.leo.out | 5 + .../compiler/integers/i32/min.leo.out | 8 + .../compiler/integers/i32/min_fail.leo.out | 5 + .../compiler/integers/i32/mul.leo.out | 8 + .../compiler/compiler/integers/i32/ne.leo.out | 9 + .../compiler/integers/i32/negate.leo.out | 9 + .../compiler/integers/i32/negate_min.leo.out | 8 + .../compiler/integers/i32/negate_zero.leo.out | 8 + .../i32/no_space_between_literal.leo.out | 5 + .../compiler/integers/i32/sub.leo.out | 8 + .../compiler/integers/i32/ternary.leo.out | 9 + .../compiler/integers/i64/add.leo.out | 8 + .../integers/i64/console_assert.leo.out | 8 + .../compiler/integers/i64/div.leo.out | 8 + .../compiler/compiler/integers/i64/eq.leo.out | 8 + .../compiler/compiler/integers/i64/ge.leo.out | 9 + .../compiler/compiler/integers/i64/gt.leo.out | 9 + .../compiler/compiler/integers/i64/le.leo.out | 9 + .../compiler/compiler/integers/i64/lt.leo.out | 9 + .../compiler/integers/i64/max.leo.out | 8 + .../compiler/integers/i64/max_fail.leo.out | 5 + .../compiler/integers/i64/min.leo.out | 8 + .../compiler/integers/i64/min_fail.leo.out | 5 + .../compiler/integers/i64/mul.leo.out | 8 + .../compiler/compiler/integers/i64/ne.leo.out | 9 + .../compiler/integers/i64/negate.leo.out | 9 + .../compiler/integers/i64/negate_min.leo.out | 8 + .../compiler/integers/i64/negate_zero.leo.out | 8 + .../i64/no_space_between_literal.leo.out | 5 + .../compiler/integers/i64/sub.leo.out | 8 + .../compiler/integers/i64/ternary.leo.out | 9 + .../compiler/compiler/integers/i8/add.leo.out | 8 + .../integers/i8/console_assert.leo.out | 8 + .../compiler/compiler/integers/i8/div.leo.out | 8 + .../compiler/compiler/integers/i8/eq.leo.out | 8 + .../compiler/compiler/integers/i8/ge.leo.out | 9 + .../compiler/compiler/integers/i8/gt.leo.out | 9 + .../compiler/compiler/integers/i8/le.leo.out | 9 + .../compiler/compiler/integers/i8/lt.leo.out | 9 + .../compiler/compiler/integers/i8/max.leo.out | 8 + .../compiler/integers/i8/max_fail.leo.out | 5 + .../compiler/compiler/integers/i8/min.leo.out | 8 + .../compiler/integers/i8/min_fail.leo.out | 5 + .../compiler/compiler/integers/i8/mul.leo.out | 8 + .../compiler/compiler/integers/i8/ne.leo.out | 9 + .../compiler/integers/i8/negate.leo.out | 9 + .../compiler/integers/i8/negate_min.leo.out | 8 + .../compiler/integers/i8/negate_zero.leo.out | 8 + .../i8/no_space_between_literal.leo.out | 5 + .../compiler/integers/i8/pow_fail.leo.out | 5 + .../compiler/compiler/integers/i8/sub.leo.out | 8 + .../compiler/integers/i8/ternary.leo.out | 9 + .../compiler/integers/u128/add.leo.out | 8 + .../integers/u128/console_assert.leo.out | 8 + .../compiler/integers/u128/div.leo.out | 8 + .../compiler/integers/u128/eq.leo.out | 8 + .../compiler/integers/u128/ge.leo.out | 9 + .../compiler/integers/u128/gt.leo.out | 9 + .../compiler/integers/u128/le.leo.out | 9 + .../compiler/integers/u128/lt.leo.out | 9 + .../compiler/integers/u128/max.leo.out | 8 + .../compiler/integers/u128/max_fail.leo.out | 5 + .../compiler/integers/u128/min.leo.out | 8 + .../compiler/integers/u128/min_fail.leo.out | 5 + .../compiler/integers/u128/mul.leo.out | 8 + .../compiler/integers/u128/ne.leo.out | 9 + .../u128/no_space_between_literal.leo.out | 5 + .../compiler/integers/u128/sub.leo.out | 8 + .../compiler/integers/u128/ternary.leo.out | 9 + .../compiler/integers/u16/add.leo.out | 8 + .../integers/u16/console_assert.leo.out | 8 + .../compiler/integers/u16/div.leo.out | 8 + .../compiler/compiler/integers/u16/eq.leo.out | 8 + .../compiler/compiler/integers/u16/ge.leo.out | 9 + .../compiler/compiler/integers/u16/gt.leo.out | 9 + .../compiler/compiler/integers/u16/le.leo.out | 9 + .../compiler/compiler/integers/u16/lt.leo.out | 9 + .../compiler/integers/u16/max.leo.out | 8 + .../compiler/integers/u16/max_fail.leo.out | 5 + .../compiler/integers/u16/min.leo.out | 8 + .../compiler/integers/u16/min_fail.leo.out | 5 + .../compiler/integers/u16/mul.leo.out | 8 + .../compiler/compiler/integers/u16/ne.leo.out | 9 + .../u16/no_space_between_literal.leo.out | 5 + .../compiler/integers/u16/pow.leo.out | 8 + .../compiler/integers/u16/sub.leo.out | 8 + .../compiler/integers/u16/ternary.leo.out | 9 + .../compiler/integers/u32/add.leo.out | 8 + .../integers/u32/console_assert.leo.out | 8 + .../compiler/integers/u32/div.leo.out | 8 + .../compiler/compiler/integers/u32/eq.leo.out | 8 + .../compiler/compiler/integers/u32/ge.leo.out | 9 + .../compiler/compiler/integers/u32/gt.leo.out | 9 + .../compiler/compiler/integers/u32/le.leo.out | 9 + .../compiler/compiler/integers/u32/lt.leo.out | 9 + .../compiler/integers/u32/max.leo.out | 8 + .../compiler/integers/u32/max_fail.leo.out | 5 + .../compiler/integers/u32/min.leo.out | 8 + .../compiler/integers/u32/min_fail.leo.out | 5 + .../compiler/integers/u32/mul.leo.out | 8 + .../compiler/compiler/integers/u32/ne.leo.out | 9 + .../u32/no_space_between_literal.leo.out | 5 + .../compiler/integers/u32/sub.leo.out | 8 + .../compiler/integers/u32/ternary.leo.out | 9 + .../compiler/integers/u64/add.leo.out | 8 + .../integers/u64/console_assert.leo.out | 8 + .../compiler/integers/u64/div.leo.out | 8 + .../compiler/compiler/integers/u64/eq.leo.out | 8 + .../compiler/compiler/integers/u64/ge.leo.out | 9 + .../compiler/compiler/integers/u64/gt.leo.out | 9 + .../compiler/compiler/integers/u64/le.leo.out | 9 + .../compiler/compiler/integers/u64/lt.leo.out | 9 + .../compiler/integers/u64/max.leo.out | 8 + .../compiler/integers/u64/max_fail.leo.out | 5 + .../compiler/integers/u64/min.leo.out | 8 + .../compiler/integers/u64/min_fail.leo.out | 5 + .../compiler/integers/u64/mul.leo.out | 8 + .../compiler/compiler/integers/u64/ne.leo.out | 9 + .../u64/no_space_between_literal.leo.out | 5 + .../compiler/integers/u64/sub.leo.out | 8 + .../compiler/integers/u64/ternary.leo.out | 9 + .../compiler/compiler/integers/u8/add.leo.out | 8 + .../integers/u8/console_assert.leo.out | 8 + .../compiler/compiler/integers/u8/div.leo.out | 8 + .../compiler/compiler/integers/u8/eq.leo.out | 8 + .../compiler/compiler/integers/u8/ge.leo.out | 9 + .../compiler/compiler/integers/u8/gt.leo.out | 9 + .../compiler/compiler/integers/u8/le.leo.out | 9 + .../compiler/compiler/integers/u8/lt.leo.out | 9 + .../compiler/compiler/integers/u8/max.leo.out | 8 + .../compiler/integers/u8/max_fail.leo.out | 5 + .../compiler/compiler/integers/u8/min.leo.out | 8 + .../compiler/integers/u8/min_fail.leo.out | 5 + .../compiler/compiler/integers/u8/mul.leo.out | 8 + .../compiler/compiler/integers/u8/ne.leo.out | 9 + .../u8/no_space_between_literal.leo.out | 5 + .../compiler/compiler/integers/u8/pow.leo.out | 8 + .../compiler/compiler/integers/u8/sub.leo.out | 8 + .../compiler/integers/u8/ternary.leo.out | 9 + .../compiler/mutability/cond_mut.leo.out | 8 + .../mutability/function_input_mut.leo.out | 8 + .../mutability/let_mut_nested.leo.out | 8 + .../compiler/statements/all_loops.leo.out | 8 + .../statements/assign_ternary.leo.out | 5 + .../compiler/statements/block.leo.out | 8 + .../compiler/statements/chain.leo.out | 10 + .../statements/duplicate_variable.leo.out | 5 + .../compiler/statements/for_loop.leo.out | 8 + .../statements/iteration_basic.leo.out | 8 + .../statements/iteration_variable.leo.out | 8 + .../statements/multiple_returns.leo.out | 9 + .../compiler/statements/mutate.leo.out | 9 + .../ternary_explicit_and_implicit.leo.out | 8 + .../parser/expression/access/call.leo.out | 65 + .../parser/expression/array_init_fail.leo.out | 8 + .../expression/array_inline_fail.leo.out | 9 + .../parser/expression/binary/add.leo.out | 378 ++++++ .../parser/expression/binary/and.leo.out | 118 ++ .../parser/expression/binary/div.leo.out | 202 +++ .../parser/expression/binary/eq.leo.out | 312 +++++ .../parser/expression/binary/eq_fail.leo.out | 5 + .../parser/expression/binary/exp.leo.out | 125 ++ .../parser/expression/binary/gt.leo.out | 378 ++++++ .../parser/expression/binary/gte.leo.out | 378 ++++++ .../parser/expression/binary/lt.leo.out | 378 ++++++ .../parser/expression/binary/lte.leo.out | 378 ++++++ .../parser/expression/binary/mul.leo.out | 323 +++++ .../parser/expression/binary/ne.leo.out | 312 +++++ .../parser/expression/binary/ne_fail.leo.out | 5 + .../parser/expression/binary/or.leo.out | 378 ++++++ .../parser/expression/binary/sub.leo.out | 202 +++ .../expression/circuit_init_fail.leo.out | 16 + .../parser/parser/expression/ident.leo.out | 23 + .../parser/expression/literal/address.leo.out | 10 + .../expression/literal/address_fail.leo.out | 14 + .../expression/literal/address_parse.leo.out | 14 + .../parser/expression/literal/bool.leo.out | 12 + .../expression/literal/bool_parse.leo.out | 24 + .../parser/expression/literal/char.leo.out | 57 + .../expression/literal/char_fail.leo.out | 51 + .../expression/literal/char_parse.leo.out | 55 + .../parser/expression/literal/comment.leo.out | 7 + .../expression/literal/comment_fail.leo.out | 15 + .../literal/formatted_string.leo.out | 24 + .../parser/expression/literal/group.leo.out | 714 ++++++++++ .../expression/literal/group_fail.leo.out | 16 + .../parser/expression/literal/int.leo.out | 111 ++ .../expression/literal/int_fail.leo.out | 7 + .../literal/int_parse/field.leo.out | 1055 +++++++++++++++ .../expression/literal/int_parse/i128.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/i16.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/i32.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/i64.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/i8.leo.out | 1159 +++++++++++++++++ .../literal/int_parse/mono_group.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/u128.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/u16.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/u32.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/u64.leo.out | 1159 +++++++++++++++++ .../expression/literal/int_parse/u8.leo.out | 1159 +++++++++++++++++ .../expression/literal/postfix_types.leo.out | 62 + .../parser/expression/literal/string.leo.out | 34 + .../expression/literal/string_fail.leo.out | 18 + .../parser/parser/expression/ternary.leo.out | 72 + .../parser/expression/token_format.leo.out | 76 ++ .../parser/expression/unary/negate.leo.out | 99 ++ .../parser/expression/unary/not.leo.out | 78 ++ .../functions/annotated_arg_not_ident.leo.out | 5 + .../functions/annotated_context_fail.leo.out | 5 + .../functions/bounded_recursion.leo.out | 199 +++ .../parser/functions/const_input.leo.out | 75 ++ .../functions/const_input_kw_fail.leo.out | 5 + .../parser/functions/const_param.leo.out | 139 ++ .../functions/const_public_param_fail.leo.out | 5 + .../parser/parser/functions/empty2.leo.out | 29 + .../parser/functions/escape_fail.leo.out | 5 + .../parser/functions/ident_token_fail.leo.out | 5 + .../functions/infinite_recursion.leo.out | 111 ++ .../parser/functions/mut_input_fail.leo.out | 5 + .../parser/parser/functions/params.leo.out | 73 ++ .../parser/functions/params_return.leo.out | 73 ++ .../functions/public_const_param_fail.leo.out | 5 + .../parser/functions/public_param.leo.out | 139 ++ .../parser/parser/functions/return.leo.out | 49 + .../functions/test_keyword_fail.leo.out | 5 + .../parser/parser/inputs/input_const.leo.out | 343 +++++ .../parser/inputs/input_constant.leo.out | 343 +++++ .../inputs/input_constant_public_fail.leo.out | 5 + .../parser/parser/inputs/input_fail.leo.out | 5 + .../parser/parser/inputs/input_public.leo.out | 343 +++++ .../inputs/input_public_constant_fail.leo.out | 5 + .../parser/program/backslash_eof.leo.out | 5 + .../program/bidi_comment_2_fail.leo.out | 5 + .../parser/program/bidi_comment_fail.leo.out | 5 + .../parser/parser/program/dollar_eof.leo.out | 5 + .../parser/program/escape_u8_eof.leo.out | 5 + .../parser/parser/program/hex_eof.leo.out | 5 + .../parser/parser/program/pipe_eof.leo.out | 5 + .../parser/parser/program/q_eof.leo.out | 5 + .../parser/parser/program/sq_eof.leo.out | 5 + .../parser/parser/program/tilde_eof.leo.out | 5 + .../program/unclosed_unicode_eof_fail.leo.out | 5 + .../parser/serialize/one_plus_one.leo.out | 29 + .../parser/serialize/parser_error.leo.out | 5 + .../parser/parser/statement/assign.leo.out | 89 ++ .../parser/statement/assign_fail.leo.out | 18 + .../parser/parser/statement/block.leo.out | 147 +++ .../parser/statement/conditional.leo.out | 248 ++++ .../parser/statement/conditional_fail.leo.out | 5 + .../parser/parser/statement/console.leo.out | 149 +++ .../parser/statement/console_fail.leo.out | 7 + .../parser/statement/definition.leo.out | 399 ++++++ .../parser/statement/definition_fail.leo.out | 48 + .../parser/statement/expression.leo.out | 56 + .../parser/statement/expression_fail.leo.out | 10 + .../parser/statement/hex_int_fail.leo.out | 7 + .../parser/parser/statement/iteration.leo.out | 231 ++++ .../parser/statement/let_mut_recover.leo.out | 5 + .../parser/parser/statement/return.leo.out | 34 + .../parser/statement/return_fail.leo.out | 7 + .../parser/parser/unreachable/define.leo.out | 50 + .../parser/unreachable/eat_ident.leo.out | 5 + .../parser/parser/unreachable/eat_int.leo.out | 56 + .../equality_and_order_expression.leo.out | 56 + .../parser/unreachable/expect_ident.leo.out | 56 + .../parser/unreachable/math_op_fail.leo.out | 59 + .../parser/unreachable/math_op_pass.leo.out | 800 ++++++++++++ .../parser/unreachable/postfix_fail.leo.out | 24 + .../parser/unreachable/postfix_pass.leo.out | 598 +++++++++ tests/parser/functions/const_function.leo | 8 - .../parser/functions/const_function_fail.leo | 6 - 394 files changed, 26782 insertions(+), 14 deletions(-) create mode 100644 tests/expectations/compiler/compiler/address/branch.leo.out create mode 100644 tests/expectations/compiler/compiler/address/equal.leo.out create mode 100644 tests/expectations/compiler/compiler/address/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/boolean/and.leo.out create mode 100644 tests/expectations/compiler/compiler/boolean/conditional.leo.out create mode 100644 tests/expectations/compiler/compiler/boolean/equal.leo.out create mode 100644 tests/expectations/compiler/compiler/boolean/not_equal.leo.out create mode 100644 tests/expectations/compiler/compiler/boolean/or.leo.out create mode 100644 tests/expectations/compiler/compiler/char/invalid_char.leo.out create mode 100644 tests/expectations/compiler/compiler/char/neq.leo.out create mode 100644 tests/expectations/compiler/compiler/char/out.leo.out create mode 100644 tests/expectations/compiler/compiler/console/assert.leo.out create mode 100644 tests/expectations/compiler/compiler/console/conditional_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/console/error.leo.out create mode 100644 tests/expectations/compiler/compiler/console/log.leo.out create mode 100644 tests/expectations/compiler/compiler/console/log_conditional.leo.out create mode 100644 tests/expectations/compiler/compiler/console/log_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/console/log_input.leo.out create mode 100644 tests/expectations/compiler/compiler/console/log_parameter.leo.out create mode 100644 tests/expectations/compiler/compiler/console/log_parameter_many.leo.out create mode 100644 tests/expectations/compiler/compiler/console/log_parameter_unkown_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/definition/out_of_order.leo.out create mode 100644 tests/expectations/compiler/compiler/field/add.leo.out create mode 100644 tests/expectations/compiler/compiler/field/div.leo.out create mode 100644 tests/expectations/compiler/compiler/field/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/field/field.leo.out create mode 100644 tests/expectations/compiler/compiler/field/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/field/negate.leo.out create mode 100644 tests/expectations/compiler/compiler/field/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/field/pow_signed.leo.out create mode 100644 tests/expectations/compiler/compiler/field/pow_unsigned.leo.out create mode 100644 tests/expectations/compiler/compiler/function/conditional_return.leo.out create mode 100644 tests/expectations/compiler/compiler/function/duplicate_definition_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/function/duplicate_parameter_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/function/iteration.leo.out create mode 100644 tests/expectations/compiler/compiler/function/iteration_repeated.leo.out create mode 100644 tests/expectations/compiler/compiler/function/repeated.leo.out create mode 100644 tests/expectations/compiler/compiler/function/return.leo.out create mode 100644 tests/expectations/compiler/compiler/function/scope_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/function/shadow_function_with_input_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/function/shadow_parameter_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/function/undefined_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/group/add.leo.out create mode 100644 tests/expectations/compiler/compiler/group/assert_eq.leo.out create mode 100644 tests/expectations/compiler/compiler/group/both_sign_high.leo.out create mode 100644 tests/expectations/compiler/compiler/group/both_sign_inferred.leo.out create mode 100644 tests/expectations/compiler/compiler/group/both_sign_low.leo.out create mode 100644 tests/expectations/compiler/compiler/group/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/group/input.leo.out create mode 100644 tests/expectations/compiler/compiler/group/mult_by_group_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/group/mult_by_scalar.leo.out create mode 100644 tests/expectations/compiler/compiler/group/negate.leo.out create mode 100644 tests/expectations/compiler/compiler/group/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/group/one.leo.out create mode 100644 tests/expectations/compiler/compiler/group/point.leo.out create mode 100644 tests/expectations/compiler/compiler/group/point_input.leo.out create mode 100644 tests/expectations/compiler/compiler/group/positive_and_negative.leo.out create mode 100644 tests/expectations/compiler/compiler/group/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/group/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/group/x_sign_high.leo.out create mode 100644 tests/expectations/compiler/compiler/group/x_sign_inferred.leo.out create mode 100644 tests/expectations/compiler/compiler/group/x_sign_low.leo.out create mode 100644 tests/expectations/compiler/compiler/group/y_sign_high.leo.out create mode 100644 tests/expectations/compiler/compiler/group/y_sign_inferred.leo.out create mode 100644 tests/expectations/compiler/compiler/group/y_sign_low.leo.out create mode 100644 tests/expectations/compiler/compiler/group/zero.leo.out create mode 100644 tests/expectations/compiler/compiler/input_files/program_input/main.leo.out create mode 100644 tests/expectations/compiler/compiler/input_files/program_input/main_field.leo.out create mode 100644 tests/expectations/compiler/compiler/input_files/program_input/main_group.leo.out create mode 100644 tests/expectations/compiler/compiler/input_files/program_input_constants/main.leo.out create mode 100644 tests/expectations/compiler/compiler/input_files/program_input_constants/main_field.leo.out create mode 100644 tests/expectations/compiler/compiler/input_files/program_input_constants/main_group.leo.out create mode 100644 tests/expectations/compiler/compiler/input_files/program_input_constants/main_multiple.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/negate.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/negate_min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/negate_zero.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i128/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/negate.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/negate_min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/negate_zero.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/pow_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i16/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/negate.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/negate_min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/negate_zero.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i32/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/negate.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/negate_min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/negate_zero.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i64/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/negate.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/negate_min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/negate_zero.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/pow_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/i8/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u128/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/pow.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u16/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u32/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u64/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/add.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/console_assert.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/div.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/eq.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/ge.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/gt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/le.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/lt.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/max.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/max_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/min.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/min_fail.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/mul.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/ne.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/no_space_between_literal.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/pow.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/sub.leo.out create mode 100644 tests/expectations/compiler/compiler/integers/u8/ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/mutability/cond_mut.leo.out create mode 100644 tests/expectations/compiler/compiler/mutability/function_input_mut.leo.out create mode 100644 tests/expectations/compiler/compiler/mutability/let_mut_nested.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/all_loops.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/assign_ternary.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/block.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/chain.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/duplicate_variable.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/for_loop.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/iteration_basic.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/iteration_variable.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/multiple_returns.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/mutate.leo.out create mode 100644 tests/expectations/compiler/compiler/statements/ternary_explicit_and_implicit.leo.out create mode 100644 tests/expectations/parser/parser/expression/access/call.leo.out create mode 100644 tests/expectations/parser/parser/expression/array_init_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/array_inline_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/add.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/and.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/div.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/eq.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/eq_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/exp.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/gt.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/gte.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/lt.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/lte.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/mul.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/ne.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/ne_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/or.leo.out create mode 100644 tests/expectations/parser/parser/expression/binary/sub.leo.out create mode 100644 tests/expectations/parser/parser/expression/circuit_init_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/ident.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/address.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/address_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/address_parse.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/bool.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/bool_parse.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/char.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/char_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/char_parse.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/comment.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/comment_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/formatted_string.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/group.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/group_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/field.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/i128.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/i16.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/i32.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/i64.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/i8.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/mono_group.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/u128.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/u16.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/u32.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/u64.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/int_parse/u8.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/postfix_types.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/string.leo.out create mode 100644 tests/expectations/parser/parser/expression/literal/string_fail.leo.out create mode 100644 tests/expectations/parser/parser/expression/ternary.leo.out create mode 100644 tests/expectations/parser/parser/expression/token_format.leo.out create mode 100644 tests/expectations/parser/parser/expression/unary/negate.leo.out create mode 100644 tests/expectations/parser/parser/expression/unary/not.leo.out create mode 100644 tests/expectations/parser/parser/functions/annotated_arg_not_ident.leo.out create mode 100644 tests/expectations/parser/parser/functions/annotated_context_fail.leo.out create mode 100644 tests/expectations/parser/parser/functions/bounded_recursion.leo.out create mode 100644 tests/expectations/parser/parser/functions/const_input.leo.out create mode 100644 tests/expectations/parser/parser/functions/const_input_kw_fail.leo.out create mode 100644 tests/expectations/parser/parser/functions/const_param.leo.out create mode 100644 tests/expectations/parser/parser/functions/const_public_param_fail.leo.out create mode 100644 tests/expectations/parser/parser/functions/empty2.leo.out create mode 100644 tests/expectations/parser/parser/functions/escape_fail.leo.out create mode 100644 tests/expectations/parser/parser/functions/ident_token_fail.leo.out create mode 100644 tests/expectations/parser/parser/functions/infinite_recursion.leo.out create mode 100644 tests/expectations/parser/parser/functions/mut_input_fail.leo.out create mode 100644 tests/expectations/parser/parser/functions/params.leo.out create mode 100644 tests/expectations/parser/parser/functions/params_return.leo.out create mode 100644 tests/expectations/parser/parser/functions/public_const_param_fail.leo.out create mode 100644 tests/expectations/parser/parser/functions/public_param.leo.out create mode 100644 tests/expectations/parser/parser/functions/return.leo.out create mode 100644 tests/expectations/parser/parser/functions/test_keyword_fail.leo.out create mode 100644 tests/expectations/parser/parser/inputs/input_const.leo.out create mode 100644 tests/expectations/parser/parser/inputs/input_constant.leo.out create mode 100644 tests/expectations/parser/parser/inputs/input_constant_public_fail.leo.out create mode 100644 tests/expectations/parser/parser/inputs/input_fail.leo.out create mode 100644 tests/expectations/parser/parser/inputs/input_public.leo.out create mode 100644 tests/expectations/parser/parser/inputs/input_public_constant_fail.leo.out create mode 100644 tests/expectations/parser/parser/program/backslash_eof.leo.out create mode 100644 tests/expectations/parser/parser/program/bidi_comment_2_fail.leo.out create mode 100644 tests/expectations/parser/parser/program/bidi_comment_fail.leo.out create mode 100644 tests/expectations/parser/parser/program/dollar_eof.leo.out create mode 100644 tests/expectations/parser/parser/program/escape_u8_eof.leo.out create mode 100644 tests/expectations/parser/parser/program/hex_eof.leo.out create mode 100644 tests/expectations/parser/parser/program/pipe_eof.leo.out create mode 100644 tests/expectations/parser/parser/program/q_eof.leo.out create mode 100644 tests/expectations/parser/parser/program/sq_eof.leo.out create mode 100644 tests/expectations/parser/parser/program/tilde_eof.leo.out create mode 100644 tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.leo.out create mode 100644 tests/expectations/parser/parser/serialize/one_plus_one.leo.out create mode 100644 tests/expectations/parser/parser/serialize/parser_error.leo.out create mode 100644 tests/expectations/parser/parser/statement/assign.leo.out create mode 100644 tests/expectations/parser/parser/statement/assign_fail.leo.out create mode 100644 tests/expectations/parser/parser/statement/block.leo.out create mode 100644 tests/expectations/parser/parser/statement/conditional.leo.out create mode 100644 tests/expectations/parser/parser/statement/conditional_fail.leo.out create mode 100644 tests/expectations/parser/parser/statement/console.leo.out create mode 100644 tests/expectations/parser/parser/statement/console_fail.leo.out create mode 100644 tests/expectations/parser/parser/statement/definition.leo.out create mode 100644 tests/expectations/parser/parser/statement/definition_fail.leo.out create mode 100644 tests/expectations/parser/parser/statement/expression.leo.out create mode 100644 tests/expectations/parser/parser/statement/expression_fail.leo.out create mode 100644 tests/expectations/parser/parser/statement/hex_int_fail.leo.out create mode 100644 tests/expectations/parser/parser/statement/iteration.leo.out create mode 100644 tests/expectations/parser/parser/statement/let_mut_recover.leo.out create mode 100644 tests/expectations/parser/parser/statement/return.leo.out create mode 100644 tests/expectations/parser/parser/statement/return_fail.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/define.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/eat_ident.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/eat_int.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/equality_and_order_expression.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/expect_ident.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/math_op_fail.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/math_op_pass.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/postfix_fail.leo.out create mode 100644 tests/expectations/parser/parser/unreachable/postfix_pass.leo.out delete mode 100644 tests/parser/functions/const_function.leo delete mode 100644 tests/parser/functions/const_function_fail.leo diff --git a/tests/expectations/compiler/compiler/address/branch.leo.out b/tests/expectations/compiler/compiler/address/branch.leo.out new file mode 100644 index 0000000000..a8fa137b42 --- /dev/null +++ b/tests/expectations/compiler/compiler/address/branch.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bbe973798ab14152165455260924a0de60131d31da32d2e223228954365dc609 + initial_ast: fa5f2ab70ae04bbd7684fc630de6cd5d6d85e791ccf9f06e65b7ae6a03e2ec48 + symbol_table: 9d42b1d8f167826635e5169bc3a50c14f722fba8e5ce2480fbde3b8cf2e75237 diff --git a/tests/expectations/compiler/compiler/address/equal.leo.out b/tests/expectations/compiler/compiler/address/equal.leo.out new file mode 100644 index 0000000000..075795fcab --- /dev/null +++ b/tests/expectations/compiler/compiler/address/equal.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 98da6a76f2370e9311042851dde02ebaa4e64528d9461a5e722858f394d25f93 + - initial_input_ast: 85307a4f16278d38b746d321756e41c3cf48bbb2dc5bad2f0e9a7b8c4dd2541e + initial_ast: 998b6e02af1be3c649cecd0129810b237f33289b801d24a90c38260561cc0318 + symbol_table: 7ec407fabcae0eeef889009b8ba99beac3d18b2d79cc49e7760261d80bd59728 diff --git a/tests/expectations/compiler/compiler/address/ternary.leo.out b/tests/expectations/compiler/compiler/address/ternary.leo.out new file mode 100644 index 0000000000..27ca307b7c --- /dev/null +++ b/tests/expectations/compiler/compiler/address/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 98da6a76f2370e9311042851dde02ebaa4e64528d9461a5e722858f394d25f93 + - initial_input_ast: 85307a4f16278d38b746d321756e41c3cf48bbb2dc5bad2f0e9a7b8c4dd2541e + initial_ast: c1865cfe898ea72b3f411b63364f3643ad452860c6d1db92e843f2c61094eec9 + symbol_table: 5a12f141aef86a7a00b86650e23cfd9af657d6f418df7b1ee9eab06714305d31 diff --git a/tests/expectations/compiler/compiler/boolean/and.leo.out b/tests/expectations/compiler/compiler/boolean/and.leo.out new file mode 100644 index 0000000000..3a2a390d85 --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/and.leo.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 51b03881ad0ef3af7d105c163071fb69fb38048bea44c4bc380fd17367ce94e0 + - initial_input_ast: 59b58754cc7667404c6bba5d90a9e53b7f9f36b6d7c9783e5b88d12728127e66 + - initial_input_ast: 55ff7a9a3f210ea871c438a89f07da6c54ca1b8129e7344593017d22305297b4 + - initial_input_ast: c89564770d1984e4e8c0c17c6c50b66b4a5d4ade85899562f506afc22e50496d + initial_ast: 30050aaa080b73f03ccc9a5fda9bdb9fcba0aea90171b8cdf39c50c5eb8ac7ab + symbol_table: f36863240edb9fb5fb852c212a9ae1db491ee8243d0469fc155592964595e7d0 diff --git a/tests/expectations/compiler/compiler/boolean/conditional.leo.out b/tests/expectations/compiler/compiler/boolean/conditional.leo.out new file mode 100644 index 0000000000..3078da4956 --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/conditional.leo.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 51b03881ad0ef3af7d105c163071fb69fb38048bea44c4bc380fd17367ce94e0 + - initial_input_ast: 59b58754cc7667404c6bba5d90a9e53b7f9f36b6d7c9783e5b88d12728127e66 + - initial_input_ast: 55ff7a9a3f210ea871c438a89f07da6c54ca1b8129e7344593017d22305297b4 + - initial_input_ast: c89564770d1984e4e8c0c17c6c50b66b4a5d4ade85899562f506afc22e50496d + initial_ast: 73e2d3f95cac34a231f20df1de3c53fd08ae3d9e604ee28557c1098299e8170c + symbol_table: 4fd4e476609947028fbffe357ffb9d962e96c30a9abe3677d75675ae37b12587 diff --git a/tests/expectations/compiler/compiler/boolean/equal.leo.out b/tests/expectations/compiler/compiler/boolean/equal.leo.out new file mode 100644 index 0000000000..095b7a4f0f --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/equal.leo.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 51b03881ad0ef3af7d105c163071fb69fb38048bea44c4bc380fd17367ce94e0 + - initial_input_ast: 59b58754cc7667404c6bba5d90a9e53b7f9f36b6d7c9783e5b88d12728127e66 + - initial_input_ast: 55ff7a9a3f210ea871c438a89f07da6c54ca1b8129e7344593017d22305297b4 + - initial_input_ast: c89564770d1984e4e8c0c17c6c50b66b4a5d4ade85899562f506afc22e50496d + initial_ast: 3c8d1d820525dc4e77214dfa0628a8fb73890ee1b90cfd443a4a736e6506bbad + symbol_table: c8dd46774e298ef70fc87f89ecb8b5f23f63b1f2401f337fc97ad83b54e85871 diff --git a/tests/expectations/compiler/compiler/boolean/not_equal.leo.out b/tests/expectations/compiler/compiler/boolean/not_equal.leo.out new file mode 100644 index 0000000000..51fb1b1d9a --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/not_equal.leo.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 51b03881ad0ef3af7d105c163071fb69fb38048bea44c4bc380fd17367ce94e0 + - initial_input_ast: 59b58754cc7667404c6bba5d90a9e53b7f9f36b6d7c9783e5b88d12728127e66 + - initial_input_ast: 55ff7a9a3f210ea871c438a89f07da6c54ca1b8129e7344593017d22305297b4 + - initial_input_ast: c89564770d1984e4e8c0c17c6c50b66b4a5d4ade85899562f506afc22e50496d + initial_ast: f94ce8212b4164b85de34920f7da472033fbafe03e8e1d00a0ec7f9bae692b6c + symbol_table: 8ed9a73e996562abfe75837cfbf2103a4d9213291298206f4f63a7dac808cbc1 diff --git a/tests/expectations/compiler/compiler/boolean/or.leo.out b/tests/expectations/compiler/compiler/boolean/or.leo.out new file mode 100644 index 0000000000..f8f140ac59 --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/or.leo.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 51b03881ad0ef3af7d105c163071fb69fb38048bea44c4bc380fd17367ce94e0 + - initial_input_ast: 59b58754cc7667404c6bba5d90a9e53b7f9f36b6d7c9783e5b88d12728127e66 + - initial_input_ast: 55ff7a9a3f210ea871c438a89f07da6c54ca1b8129e7344593017d22305297b4 + - initial_input_ast: c89564770d1984e4e8c0c17c6c50b66b4a5d4ade85899562f506afc22e50496d + initial_ast: ceac1c88ce7915eb171fef59cf7788b1d83cb53d313e0325b4b6e7ca7c0b0eea + symbol_table: 91630eda77eaf1e355744e663ceba26a0c3f860d3f69e8e46b03f5464d16950f diff --git a/tests/expectations/compiler/compiler/char/invalid_char.leo.out b/tests/expectations/compiler/compiler/char/invalid_char.leo.out new file mode 100644 index 0000000000..1f6e688849 --- /dev/null +++ b/tests/expectations/compiler/compiler/char/invalid_char.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370026]: Expected a closed char but found `'`." diff --git a/tests/expectations/compiler/compiler/char/neq.leo.out b/tests/expectations/compiler/compiler/char/neq.leo.out new file mode 100644 index 0000000000..37030dd649 --- /dev/null +++ b/tests/expectations/compiler/compiler/char/neq.leo.out @@ -0,0 +1,22 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cd2c41435af95147ff1dcd94031e443b93b15ac7b4f65331ef734759006f3c03 + - initial_input_ast: 5e4fd7cfc681e863ed393f7746308d7b962e2b5f9dcd21aa09a26526ce2ea8e3 + - initial_input_ast: 8fcda0e92250e9897bdb8cfb9b1e3046f94f6f6206ecb958d9758e64e5615889 + - initial_input_ast: 41fef97affd26b29428302f519a5e7a7d61158923e6576618c42607f0c16ff4f + - initial_input_ast: 30c56d9a2e096215900942f18b63cf5a96fb9c0b7cf4fea11dafeeabb02a5233 + - initial_input_ast: 076d0f1b70534c15108ea0dc9e74860030d6701ce1ce38b4a3a41e5ba9fe0121 + - initial_input_ast: d3bff6374e68b63bf35fe089bbff0abb31958571b99b9e0251d82895fdc27edd + - initial_input_ast: 9455652735eb74bd67423f9ed2c7d76b1b27e47f62b5331843f8f4975a03cc9a + - initial_input_ast: 3f69c5fdd03605808dfb6ae116cdf860525b494d5d7cac39b667931c282e8c3e + - initial_input_ast: bdc202a836d17bcb974e33b5b938148c0c9b57fd8b779e813c26d8feac915547 + - initial_input_ast: 6e12715d32233251ea63ae7457c7c1d20e82995cf3df02a1adb943ee358a2643 + - initial_input_ast: 6383f20ea72b337521956a9d86608fc1861f8a5e709bb29e88f2022e893d4e59 + - initial_input_ast: e4ba1106bf3425f620578111bd3c63c0178dbc087ab4c90e873c5b9cc790f6bc + - initial_input_ast: 4c7f9b03dd308ff3981127c4c12adcb883fd8b3ce1dbd744cd935750961fc1c4 + - initial_input_ast: 2a5e92af845c8a56375cbc6123e92aa87cf4523e059c02dfcde326970d88f5c2 + initial_ast: 9733a36e7d3465c6217ecf2139c2e4154790e39f006f1e3318a981265d24ad23 + symbol_table: cf3569155d9961e6cab441ea9a60f5c92d2b18e6cd2ecaa64b1529d1774d3585 diff --git a/tests/expectations/compiler/compiler/char/out.leo.out b/tests/expectations/compiler/compiler/char/out.leo.out new file mode 100644 index 0000000000..89eedc779d --- /dev/null +++ b/tests/expectations/compiler/compiler/char/out.leo.out @@ -0,0 +1,22 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cd2c41435af95147ff1dcd94031e443b93b15ac7b4f65331ef734759006f3c03 + - initial_input_ast: 5e4fd7cfc681e863ed393f7746308d7b962e2b5f9dcd21aa09a26526ce2ea8e3 + - initial_input_ast: 8fcda0e92250e9897bdb8cfb9b1e3046f94f6f6206ecb958d9758e64e5615889 + - initial_input_ast: 41fef97affd26b29428302f519a5e7a7d61158923e6576618c42607f0c16ff4f + - initial_input_ast: 30c56d9a2e096215900942f18b63cf5a96fb9c0b7cf4fea11dafeeabb02a5233 + - initial_input_ast: 076d0f1b70534c15108ea0dc9e74860030d6701ce1ce38b4a3a41e5ba9fe0121 + - initial_input_ast: d3bff6374e68b63bf35fe089bbff0abb31958571b99b9e0251d82895fdc27edd + - initial_input_ast: 9455652735eb74bd67423f9ed2c7d76b1b27e47f62b5331843f8f4975a03cc9a + - initial_input_ast: 3f69c5fdd03605808dfb6ae116cdf860525b494d5d7cac39b667931c282e8c3e + - initial_input_ast: bdc202a836d17bcb974e33b5b938148c0c9b57fd8b779e813c26d8feac915547 + - initial_input_ast: 6e12715d32233251ea63ae7457c7c1d20e82995cf3df02a1adb943ee358a2643 + - initial_input_ast: 6383f20ea72b337521956a9d86608fc1861f8a5e709bb29e88f2022e893d4e59 + - initial_input_ast: e4ba1106bf3425f620578111bd3c63c0178dbc087ab4c90e873c5b9cc790f6bc + - initial_input_ast: 4c7f9b03dd308ff3981127c4c12adcb883fd8b3ce1dbd744cd935750961fc1c4 + - initial_input_ast: 2a5e92af845c8a56375cbc6123e92aa87cf4523e059c02dfcde326970d88f5c2 + initial_ast: 890e5d07cf4b2967be0e2f9c82268619015dc3cea62cc1520f406107cdd056e5 + symbol_table: 1cad55eef598e4d05af7c5f88119636a2e6d23d81213bbaad908d66a32906780 diff --git a/tests/expectations/compiler/compiler/console/assert.leo.out b/tests/expectations/compiler/compiler/console/assert.leo.out new file mode 100644 index 0000000000..5a4087ee5b --- /dev/null +++ b/tests/expectations/compiler/compiler/console/assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 204a90b23ba88927aabdc72aed02effa556d73742caf7d370527f79f0b30f621 + initial_ast: 10539810602f7b65e0ac424d7e92b4565c965fdbe139b267f5fd4aae4c67d470 + symbol_table: f8c971e501487f7a368a50fd1941c3fb70684b041478fe615a91f088796e301b diff --git a/tests/expectations/compiler/compiler/console/conditional_assert.leo.out b/tests/expectations/compiler/compiler/console/conditional_assert.leo.out new file mode 100644 index 0000000000..1996ea3f70 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/conditional_assert.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 204a90b23ba88927aabdc72aed02effa556d73742caf7d370527f79f0b30f621 + - initial_input_ast: cbc36a842b21e80aee167b65bd1a59861d59a43e27915b785410f032ae19a570 + initial_ast: 1e37339f631e947b4f85cf4f43ba4c1a26439ab565dc559f27c4923afc3ef34a + symbol_table: f4e056be00b25dfd854a5be8197aeb205436bb0ee11cfe06701531ea086e038c diff --git a/tests/expectations/compiler/compiler/console/error.leo.out b/tests/expectations/compiler/compiler/console/error.leo.out new file mode 100644 index 0000000000..5246ca94f5 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/error.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 38e6b369397fcf11fa921808be61baf33a705d4509bc15a46ec69e1a0aaa5031 + initial_ast: 379919a368ef91f880f8209c68891ac5b5071c3d7f64ae15b39eaab52972d6a9 + symbol_table: d46f6eb98259f34d32a60788aa178efa34166bcc6ba1058e2ff5f8327a129b9c diff --git a/tests/expectations/compiler/compiler/console/log.leo.out b/tests/expectations/compiler/compiler/console/log.leo.out new file mode 100644 index 0000000000..bfc714d28d --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 38e6b369397fcf11fa921808be61baf33a705d4509bc15a46ec69e1a0aaa5031 + initial_ast: c573c8914fc34302d6ea0ad1727f61b02c540f2f9dce82fd492407002516a367 + symbol_table: 559484bc163178bf54b169f5dd573167771566aa993055b6a28f0c1a759339bc diff --git a/tests/expectations/compiler/compiler/console/log_conditional.leo.out b/tests/expectations/compiler/compiler/console/log_conditional.leo.out new file mode 100644 index 0000000000..3bf860dc62 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_conditional.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b9ca1f9e4746ba9f99375205e309b977a522109054d058039197767b39fa6833 + - initial_input_ast: 398a847f3f6c8826a10942c856b67d9acf37a51bf4ec9109be549b24b2dfff94 + initial_ast: 29f607e8e1badfbb612a8acb20123882205c86c7290a24dca70df39f8261cc0b + symbol_table: 560afbb790df70bfc770d5c2f966428a37baf94a5c0f5312ad445456d33a2cd9 diff --git a/tests/expectations/compiler/compiler/console/log_fail.leo.out b/tests/expectations/compiler/compiler/console/log_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/console/log_input.leo.out b/tests/expectations/compiler/compiler/console/log_input.leo.out new file mode 100644 index 0000000000..7f7a2c9cc2 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_input.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 38e6b369397fcf11fa921808be61baf33a705d4509bc15a46ec69e1a0aaa5031 + initial_ast: a5cf98065c1f1a668d898974ab67cd148e43409c0455d95f77e030cb5c905e0c + symbol_table: 720c2aafae77c261ed1640d4080f9a73657638baa30e54a5e10e2323b6f6eca0 diff --git a/tests/expectations/compiler/compiler/console/log_parameter.leo.out b/tests/expectations/compiler/compiler/console/log_parameter.leo.out new file mode 100644 index 0000000000..ef0a0b55a2 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_parameter.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 38e6b369397fcf11fa921808be61baf33a705d4509bc15a46ec69e1a0aaa5031 + initial_ast: 1b5cb8e6d851548c2413ef9d0e90bc46b70ee109655c5396522ae06a73832015 + symbol_table: e5159343ab03573032873783b28058a482dd401d534a0d3af03790a5286ba470 diff --git a/tests/expectations/compiler/compiler/console/log_parameter_many.leo.out b/tests/expectations/compiler/compiler/console/log_parameter_many.leo.out new file mode 100644 index 0000000000..634260b8f8 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_parameter_many.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 38e6b369397fcf11fa921808be61baf33a705d4509bc15a46ec69e1a0aaa5031 + initial_ast: 620af027368aff6683ef9951f714867e1c53d335621b549978177c0951a67ecb + symbol_table: 757bb967973b87466c01be1a9dc78d30701964e0d234e0e65d1bbcbd3072370f diff --git a/tests/expectations/compiler/compiler/console/log_parameter_unkown_fail.leo.out b/tests/expectations/compiler/compiler/console/log_parameter_unkown_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_parameter_unkown_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/definition/out_of_order.leo.out b/tests/expectations/compiler/compiler/definition/out_of_order.leo.out new file mode 100644 index 0000000000..79e703b8d3 --- /dev/null +++ b/tests/expectations/compiler/compiler/definition/out_of_order.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: ea05e8a68b86c5cd7189870b309bb5a4107dd6f84c9ccd359aacbfee82045242 + symbol_table: 66779461e33acc9c5c732509637db91bd72aff3e9dae6aee0c137d0537446878 diff --git a/tests/expectations/compiler/compiler/field/add.leo.out b/tests/expectations/compiler/compiler/field/add.leo.out new file mode 100644 index 0000000000..2d6ee96e68 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: e0c7874ac5b43acb60bfb111cfafba0b5151b202f86c459913a9d4dd8ca151b0 + symbol_table: d666098c1c0d7c670730cfa6548d47fa89d9a1dd33642f8021b0622f9abc0e5e diff --git a/tests/expectations/compiler/compiler/field/div.leo.out b/tests/expectations/compiler/compiler/field/div.leo.out new file mode 100644 index 0000000000..16f07d5ad5 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: 149443378c6b75f71b33ad90306cf4b01616284ddfa2136fc19fe41e23c73178 + symbol_table: 38cbfecf35fb5189618a9767d3245d02e133d59ce2a0fc0f3aba37a8fa14fe8e diff --git a/tests/expectations/compiler/compiler/field/eq.leo.out b/tests/expectations/compiler/compiler/field/eq.leo.out new file mode 100644 index 0000000000..c9e60b3af4 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: 51eba8b00503b23218feec128cda498464acd2a9459fc717795d4137495a9820 + symbol_table: 0879cd6e4cc609ecdbdfc87ff0f08b4f3ae54367e0a1c02116304eb1411d2c23 diff --git a/tests/expectations/compiler/compiler/field/field.leo.out b/tests/expectations/compiler/compiler/field/field.leo.out new file mode 100644 index 0000000000..d37a0ba27c --- /dev/null +++ b/tests/expectations/compiler/compiler/field/field.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: d8d9ee6d763397372e62451e15980cde07796859d8ce319e4de5955d310f0cf6 + symbol_table: 879c99134415a9bae5a26b0d2dccfab01b9374218b810853c86bcf36a76d979c diff --git a/tests/expectations/compiler/compiler/field/mul.leo.out b/tests/expectations/compiler/compiler/field/mul.leo.out new file mode 100644 index 0000000000..e92558481d --- /dev/null +++ b/tests/expectations/compiler/compiler/field/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: d95922ca56dfdffdea1e8c9668d67b17755ca66ff1c5387f034ecfb2ba961df6 + symbol_table: 47782aad84b54a835bead341b6113b471712ddd6d19005040d16c5d199a0920a diff --git a/tests/expectations/compiler/compiler/field/negate.leo.out b/tests/expectations/compiler/compiler/field/negate.leo.out new file mode 100644 index 0000000000..7d7a8f1fb7 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/negate.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: 31535a250bbc7eaedc9a40720b2668544615862297f229f633f51b3311d0ac0e + symbol_table: e20aa1c0f5d1b64b310c0e6d6bb306713f8696f092d080eab4031eacc0dcb798 diff --git a/tests/expectations/compiler/compiler/field/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/field/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/field/pow_signed.leo.out b/tests/expectations/compiler/compiler/field/pow_signed.leo.out new file mode 100644 index 0000000000..85b3044426 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/pow_signed.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: 7b7c0226a27a7655fd6e4780fdfcf5d2bc923d2aa48585954b47b8cd852bc998 + symbol_table: c04c06d2f689387637bac27fff30cdaa87ec9b49fc03e1fe56b1e04029b6f925 diff --git a/tests/expectations/compiler/compiler/field/pow_unsigned.leo.out b/tests/expectations/compiler/compiler/field/pow_unsigned.leo.out new file mode 100644 index 0000000000..93ef5b3e39 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/pow_unsigned.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a50bcc0c4416f93de77861848ac00cd1b40e17f4c023ab3faea0fc0c332f148 + initial_ast: 586028215ccf26abab187d6bff25c5dd332f1397be5474c468ca1411abec89a0 + symbol_table: 5527b2434b61b94d365ba1e8bd1c2173b9feef5aa21c99440920259fb7df2052 diff --git a/tests/expectations/compiler/compiler/function/conditional_return.leo.out b/tests/expectations/compiler/compiler/function/conditional_return.leo.out new file mode 100644 index 0000000000..678d598820 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/conditional_return.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 26679d48a4f878012c9f9cacccf9d2d1ef568126030a21abf74a5a4d8e5116d4 + initial_ast: cc14440f67a0aecc81bc6e1aac0b5571fa1b9937af6ff3dde20addfce27be9e4 + symbol_table: 577abb859b2f33b9e81c5e94c82b559601f44025143fa7a6757561b47e78efa5 diff --git a/tests/expectations/compiler/compiler/function/duplicate_definition_fail.leo.out b/tests/expectations/compiler/compiler/function/duplicate_definition_fail.leo.out new file mode 100644 index 0000000000..3a6791e0f2 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/duplicate_definition_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372014]: function `main` shadowed\n --> compiler-test:3:1\n |\n 3 | function main(y: bool) -> bool {\n 4 | ...\n 5 | ...\n 6 | }\n | ^\nError [EAST0372014]: function `main` shadowed\n --> compiler-test:3:1\n |\n 3 | function main(y: bool) -> bool {\n 4 | ...\n 5 | ...\n 6 | }\n | ^" diff --git a/tests/expectations/compiler/compiler/function/duplicate_parameter_fail.leo.out b/tests/expectations/compiler/compiler/function/duplicate_parameter_fail.leo.out new file mode 100644 index 0000000000..65d6ec0b7b --- /dev/null +++ b/tests/expectations/compiler/compiler/function/duplicate_parameter_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372015]: variable `a` shadowed\n --> compiler-test:3:15\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^\nError [EAST0372015]: variable `a` shadowed\n --> compiler-test:3:15\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^" diff --git a/tests/expectations/compiler/compiler/function/iteration.leo.out b/tests/expectations/compiler/compiler/function/iteration.leo.out new file mode 100644 index 0000000000..c1793df982 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/iteration.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e518f4721bb7a7b6c63e380710a5a8cf4e489ccf66461bf9a68dc4b369e16445 + initial_ast: d350d059ac4c8b9d1ed1ea39e7345770d9587f8c77ca9f9a5debb1d6ef41038c + symbol_table: 6754c028b1d3793f022a7da93be8510a6844da8a2e45f5dcaa9566252e418ee2 diff --git a/tests/expectations/compiler/compiler/function/iteration_repeated.leo.out b/tests/expectations/compiler/compiler/function/iteration_repeated.leo.out new file mode 100644 index 0000000000..25572a0e79 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/iteration_repeated.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e518f4721bb7a7b6c63e380710a5a8cf4e489ccf66461bf9a68dc4b369e16445 + initial_ast: 58d1ae0bbcc2c4cf4fa16dc074a64a7a0c4bedef9b0a4230968211edf9b81b26 + symbol_table: c45d23aa877641cbf1853709cc103d389f3e3105b5c873f8bb90c3a0c48bd2ff diff --git a/tests/expectations/compiler/compiler/function/repeated.leo.out b/tests/expectations/compiler/compiler/function/repeated.leo.out new file mode 100644 index 0000000000..1e93f22696 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/repeated.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e518f4721bb7a7b6c63e380710a5a8cf4e489ccf66461bf9a68dc4b369e16445 + initial_ast: 0bc692fc558896d4c90a4826d54ed1c6d41ce578ee930c3546d1d9d4169b4844 + symbol_table: 7c82d098d4b483b968c5b928f68a4a6f040bf961bbf5192bf323ddabbe592da8 diff --git a/tests/expectations/compiler/compiler/function/return.leo.out b/tests/expectations/compiler/compiler/function/return.leo.out new file mode 100644 index 0000000000..3ffc6c77e2 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/return.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e518f4721bb7a7b6c63e380710a5a8cf4e489ccf66461bf9a68dc4b369e16445 + initial_ast: 8e4af69e677c1eb3afc851864e57fc88768d97bbfbd96b1680b263ba3a24ed98 + symbol_table: 8bddbedba52c66dc7a86530a2df470eb3222992c10b75842431a82afc7e936d4 diff --git a/tests/expectations/compiler/compiler/function/scope_fail.leo.out b/tests/expectations/compiler/compiler/function/scope_fail.leo.out new file mode 100644 index 0000000000..cf561c6ce6 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/scope_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- got '='\n --> compiler-test:9:20\n |\n 9 | const myGlobal = 42field;\n | ^" diff --git a/tests/expectations/compiler/compiler/function/shadow_function_with_input_fail.leo.out b/tests/expectations/compiler/compiler/function/shadow_function_with_input_fail.leo.out new file mode 100644 index 0000000000..3276ba7de3 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/shadow_function_with_input_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372014]: function `hi` shadowed\n --> compiler-test:3:1\n |\n 3 | function hi() -> u8 {\n 4 | ...\n 5 | }\n | ^\nError [EAST0372014]: function `hi` shadowed\n --> compiler-test:3:1\n |\n 3 | function hi() -> u8 {\n 4 | ...\n 5 | }\n | ^" diff --git a/tests/expectations/compiler/compiler/function/shadow_parameter_fail.leo.out b/tests/expectations/compiler/compiler/function/shadow_parameter_fail.leo.out new file mode 100644 index 0000000000..ed9c2b60bd --- /dev/null +++ b/tests/expectations/compiler/compiler/function/shadow_parameter_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- got '='\n --> compiler-test:4:14\n |\n 4 | const hi = 2u8;\n | ^" diff --git a/tests/expectations/compiler/compiler/function/undefined_fail.leo.out b/tests/expectations/compiler/compiler/function/undefined_fail.leo.out new file mode 100644 index 0000000000..1d76cbecb4 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/undefined_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Unknown function `my_function`\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^\nError [ETYC0372003]: Unknown function `my_function`\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^" diff --git a/tests/expectations/compiler/compiler/group/add.leo.out b/tests/expectations/compiler/compiler/group/add.leo.out new file mode 100644 index 0000000000..d8aa929f0a --- /dev/null +++ b/tests/expectations/compiler/compiler/group/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ee823464d3be14662261697b47c73a67a47c47558987333869ea6e72d6e34ebf + initial_ast: 9be3781304a8515dd1a5e35ce3a23574d3b73d5403a46dbd33bb698c7f5f235a + symbol_table: b10964224747af7f8ba12f1b3c0dfa228842b3e08b9b82d785b71def31387144 diff --git a/tests/expectations/compiler/compiler/group/assert_eq.leo.out b/tests/expectations/compiler/compiler/group/assert_eq.leo.out new file mode 100644 index 0000000000..1acc9c89fb --- /dev/null +++ b/tests/expectations/compiler/compiler/group/assert_eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ecd9a5086d5d85f1794e023ff6c06e68cc0b4ae67e3f9abc88cd1354ed8fdfad + initial_ast: bd47ab2f7c4c1013c5d401a6e1d6af4f28117203c9decaf9864cb0cc7806efaf + symbol_table: 584d3ba9f7908f1b2e0c918710e78d0a483c12aa3f4644edada2eac31ac689ca diff --git a/tests/expectations/compiler/compiler/group/both_sign_high.leo.out b/tests/expectations/compiler/compiler/group/both_sign_high.leo.out new file mode 100644 index 0000000000..eae982cd61 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/both_sign_high.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 640119c4e45f3df44391fe0e08e45a44dfac3a996610e10590666400ceebaff8 + symbol_table: 9a61702119ebc681917d7cb7e40ecafa00354849326bf1182635f27a28da35e9 diff --git a/tests/expectations/compiler/compiler/group/both_sign_inferred.leo.out b/tests/expectations/compiler/compiler/group/both_sign_inferred.leo.out new file mode 100644 index 0000000000..4494b71773 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/both_sign_inferred.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: d1df1007245f08ea1398244ba810f689c018c288a85307aabb1632a6a8044de4 + symbol_table: e4a96223c049893c904a90f24d069592b33fc137de0f4816cf92089e63663693 diff --git a/tests/expectations/compiler/compiler/group/both_sign_low.leo.out b/tests/expectations/compiler/compiler/group/both_sign_low.leo.out new file mode 100644 index 0000000000..5c3931dd53 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/both_sign_low.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 36e2dac16d3b386145e585988c6dbd41890556deaa10e6776d0bb2e5de8654e3 + symbol_table: 1817d91b99941ddc2590c6a2777ad8f7d4ba26a8b2a3baa3932f1a08eb540206 diff --git a/tests/expectations/compiler/compiler/group/eq.leo.out b/tests/expectations/compiler/compiler/group/eq.leo.out new file mode 100644 index 0000000000..1acc9c89fb --- /dev/null +++ b/tests/expectations/compiler/compiler/group/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ecd9a5086d5d85f1794e023ff6c06e68cc0b4ae67e3f9abc88cd1354ed8fdfad + initial_ast: bd47ab2f7c4c1013c5d401a6e1d6af4f28117203c9decaf9864cb0cc7806efaf + symbol_table: 584d3ba9f7908f1b2e0c918710e78d0a483c12aa3f4644edada2eac31ac689ca diff --git a/tests/expectations/compiler/compiler/group/input.leo.out b/tests/expectations/compiler/compiler/group/input.leo.out new file mode 100644 index 0000000000..8237b1c509 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/input.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5cce2653606494bd949a7631bb7fe6ab255fbcb1618e5e099875e4f1e9c082aa + initial_ast: bd47ab2f7c4c1013c5d401a6e1d6af4f28117203c9decaf9864cb0cc7806efaf + symbol_table: 584d3ba9f7908f1b2e0c918710e78d0a483c12aa3f4644edada2eac31ac689ca diff --git a/tests/expectations/compiler/compiler/group/mult_by_group_fail.leo.out b/tests/expectations/compiler/compiler/group/mult_by_group_fail.leo.out new file mode 100644 index 0000000000..569024160b --- /dev/null +++ b/tests/expectations/compiler/compiler/group/mult_by_group_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `i8,i16,i32,i64,i128,u8,u16,u32,u64,u128,`, but got `group`\n --> compiler-test:4:12\n |\n 4 | return (_, _)group * a;\n | ^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8,i16,i32,i64,i128,u8,u16,u32,u64,u128,`, but got `group`\n --> compiler-test:4:12\n |\n 4 | return (_, _)group * a;\n | ^^^^^^^^^^^^^^^" diff --git a/tests/expectations/compiler/compiler/group/mult_by_scalar.leo.out b/tests/expectations/compiler/compiler/group/mult_by_scalar.leo.out new file mode 100644 index 0000000000..9606b0e494 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/mult_by_scalar.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e765a6e8209951902a890e711b0ebb6b22dfd84149ae1a69bce43530008c17c3 + initial_ast: 3294e6793786a931be07b6b76eaef2c70ae3fb6e93e0d4eee531d97f69d66158 + symbol_table: 8e39b2bdad6276a42437b673faa0d1dd4f762a9778de1a1e2c8f8edbe5002be4 diff --git a/tests/expectations/compiler/compiler/group/negate.leo.out b/tests/expectations/compiler/compiler/group/negate.leo.out new file mode 100644 index 0000000000..e0daa9d7f6 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/negate.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ecd9a5086d5d85f1794e023ff6c06e68cc0b4ae67e3f9abc88cd1354ed8fdfad + initial_ast: 3d34068de05401d87f683cae8d8fd4bfd70a036c11504ec8cd870f152f73d590 + symbol_table: efa845f46b76b7927005e6e7b8ba6353db6f3a783ec1a8b74993ccc97738eadc diff --git a/tests/expectations/compiler/compiler/group/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/group/no_space_between_literal.leo.out new file mode 100644 index 0000000000..4a09044a4a --- /dev/null +++ b/tests/expectations/compiler/compiler/group/no_space_between_literal.leo.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:24\n |\n 4 | const g: group = (0,1) group;\n | ^" diff --git a/tests/expectations/compiler/compiler/group/one.leo.out b/tests/expectations/compiler/compiler/group/one.leo.out new file mode 100644 index 0000000000..e9dfccfb6b --- /dev/null +++ b/tests/expectations/compiler/compiler/group/one.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: fcd535c8ebb98650da052ad840712e95af09550a9a00dda1788c2873fa50494f + symbol_table: 1459210791fd0aae2827b2b7c3fd438e7a8315b290e23cbfe365b4214d5cd284 diff --git a/tests/expectations/compiler/compiler/group/point.leo.out b/tests/expectations/compiler/compiler/group/point.leo.out new file mode 100644 index 0000000000..7cf2fd33de --- /dev/null +++ b/tests/expectations/compiler/compiler/group/point.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: d4c0ad5e399b065700d6c8c18c07527ccee14e318b7bb583f7db4709daa53cb7 + symbol_table: ac8c4425959cf548f2f0edc8aa637b1d827394f11fe2c10ecef366a803fe30a2 diff --git a/tests/expectations/compiler/compiler/group/point_input.leo.out b/tests/expectations/compiler/compiler/group/point_input.leo.out new file mode 100644 index 0000000000..94bfa2dfda --- /dev/null +++ b/tests/expectations/compiler/compiler/group/point_input.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e03c4a2ba40d2e844353081fc62efae967d074fb34a08bd30c99dff1387bd3fd + initial_ast: d6bd8a2fd0cd668196c62c8677e2ab436c232904fb2aa2c2991ffe2c22cae3ca + symbol_table: 0db35c4a8548b1c37607ad3a7d67be41b7949f6219107f4d5ef8442a75dd2a7a diff --git a/tests/expectations/compiler/compiler/group/positive_and_negative.leo.out b/tests/expectations/compiler/compiler/group/positive_and_negative.leo.out new file mode 100644 index 0000000000..666c39f52b --- /dev/null +++ b/tests/expectations/compiler/compiler/group/positive_and_negative.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 990e4e100ad723d6442328b57d7d77dad65bcc5ecd722b0cdc96239903751656 + symbol_table: 877713c611c84057862de19fa49429efb7c57a29ed3ef686b59c1ab3696c4117 diff --git a/tests/expectations/compiler/compiler/group/sub.leo.out b/tests/expectations/compiler/compiler/group/sub.leo.out new file mode 100644 index 0000000000..5bda4981d5 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ee823464d3be14662261697b47c73a67a47c47558987333869ea6e72d6e34ebf + initial_ast: 9e93c5e9559bc6597db2a9aa67a287f040d0aba86ca612073f6effc030dfedb6 + symbol_table: 8d7179908ac5272f4892b2e374ad5c5401332d4d12d7d0505ba1e51a98ef0d6d diff --git a/tests/expectations/compiler/compiler/group/ternary.leo.out b/tests/expectations/compiler/compiler/group/ternary.leo.out new file mode 100644 index 0000000000..f4ef580e5c --- /dev/null +++ b/tests/expectations/compiler/compiler/group/ternary.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e03c4a2ba40d2e844353081fc62efae967d074fb34a08bd30c99dff1387bd3fd + initial_ast: 98ea1b0f102523381afe48d75b4d340ac9020147d1ee0281200611c85cd354b2 + symbol_table: 5e96e4138e5643222224de143ab32b6716c4dbaf965318b48eaf9e4ba63f8586 diff --git a/tests/expectations/compiler/compiler/group/x_sign_high.leo.out b/tests/expectations/compiler/compiler/group/x_sign_high.leo.out new file mode 100644 index 0000000000..93bf7ffd58 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/x_sign_high.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: ac3df9e6585030525d6a239804547b3bddbfa868a718bed7346809d6c237323f + symbol_table: 2d0db26fa84f8daad71afd4420718043de1c97757ae4fe4fa78e9874891d1d80 diff --git a/tests/expectations/compiler/compiler/group/x_sign_inferred.leo.out b/tests/expectations/compiler/compiler/group/x_sign_inferred.leo.out new file mode 100644 index 0000000000..a52a3efd39 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/x_sign_inferred.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: bc5d6bd28dc6b91827d8a47119e0a967641b48fc846195a2640a239ad3d3b999 + symbol_table: c20979f64468655131a488980c1de31384fd7ff35561ed569c3db6f2d0bc19cc diff --git a/tests/expectations/compiler/compiler/group/x_sign_low.leo.out b/tests/expectations/compiler/compiler/group/x_sign_low.leo.out new file mode 100644 index 0000000000..2c69011ed2 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/x_sign_low.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: dad8ac7c90d3f7c819b89bbd605e9d75511a986b131aceae7c49679f1abf52c4 + symbol_table: f450d14b0bb862b0bec4a5f8d41eb92f7cf951dee469505fb20dbfa25972eb7b diff --git a/tests/expectations/compiler/compiler/group/y_sign_high.leo.out b/tests/expectations/compiler/compiler/group/y_sign_high.leo.out new file mode 100644 index 0000000000..bf3eacef63 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/y_sign_high.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: ea56c82e2bb78e844189f3edfe72d4146e0668a8799ab1fe81b40af70cfce0a8 + symbol_table: 52760622da95d189f6e707df97fc6bba4216fa59022a4ae79d840b9c05fdf5b1 diff --git a/tests/expectations/compiler/compiler/group/y_sign_inferred.leo.out b/tests/expectations/compiler/compiler/group/y_sign_inferred.leo.out new file mode 100644 index 0000000000..b92042e6e2 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/y_sign_inferred.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: c7ea9a8601a4823e6ffae4c4d0850ef35b7d7780f02e3beb3dda32e460c3a4d0 + symbol_table: d3bf69e78619e63bc1c56c1efe49712b226f5d477e1c42491d0b31e24d5a98a7 diff --git a/tests/expectations/compiler/compiler/group/y_sign_low.leo.out b/tests/expectations/compiler/compiler/group/y_sign_low.leo.out new file mode 100644 index 0000000000..cf8ff68e43 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/y_sign_low.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 44b026a078f6f146b69faa0c3ef8bccc58155f4e0dd881eb49e37e9065d41dcf + symbol_table: 026430e928e2236167d6587cb1885784f30bbc916f75d3a0f42fa7a3f2c6978b diff --git a/tests/expectations/compiler/compiler/group/zero.leo.out b/tests/expectations/compiler/compiler/group/zero.leo.out new file mode 100644 index 0000000000..e36f55156c --- /dev/null +++ b/tests/expectations/compiler/compiler/group/zero.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 641d4cd14081d30f12865f50c6c1ab1acfaeece382f03d9bb82c73efa1518766 + symbol_table: b181fa2d3c50419dbdaadbe2e91aa4a3e17baa614b0635f9ce6fa7367ead48eb diff --git a/tests/expectations/compiler/compiler/input_files/program_input/main.leo.out b/tests/expectations/compiler/compiler/input_files/program_input/main.leo.out new file mode 100644 index 0000000000..e75d1f7efd --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input/main.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: dcc83a9319d9784c4bed7596d95f4bb19e2f5db1122e17bfa37e3458ed69c4fd + initial_ast: 9884537ac9d91278f53bca357c89bcb9fcd3e73bb94d9db8eeae8af373e47764 + symbol_table: 00f652a7b8e969478d433c749951ee63b97343691ff9ade7e1e9288757814ef6 diff --git a/tests/expectations/compiler/compiler/input_files/program_input/main_field.leo.out b/tests/expectations/compiler/compiler/input_files/program_input/main_field.leo.out new file mode 100644 index 0000000000..884a728afd --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input/main_field.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0c1be8e106149f3dbe5d151e6372f7d6acf3d0986643537ed9610c2f89eb9ed4 + initial_ast: 3d7e874a9a015c0ce76f63ee8dfaa0b7d090919baca39e58cf545f0c81a4475e + symbol_table: a3dad989c81fa120b3092919ca6bd0cc90221424459f5691b7f172e5564ba1ae diff --git a/tests/expectations/compiler/compiler/input_files/program_input/main_group.leo.out b/tests/expectations/compiler/compiler/input_files/program_input/main_group.leo.out new file mode 100644 index 0000000000..0af1412d06 --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input/main_group.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 723e9ab87822d7d8d793ca1611eabcebc684097a64f37a4cd246ff9e506a4865 + initial_ast: 859a9100240b8dee329a930cae6345f5439da844613f48b19e342b007cb9e03a + symbol_table: 3b68eff86b45e4f940b0a1031e19a64178b0bf802acb59f3b743e664f3010876 diff --git a/tests/expectations/compiler/compiler/input_files/program_input_constants/main.leo.out b/tests/expectations/compiler/compiler/input_files/program_input_constants/main.leo.out new file mode 100644 index 0000000000..892e5ae848 --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input_constants/main.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ce38ef1ec7bdaaf35b68d011803255589ed870002583000a76f137d7682bc3d6 + initial_ast: 10403bb15edbbbd8cf3f22b812c04f723609c8ea33be44b4943c1f392e4e3c2e + symbol_table: 031a91bf50d051b6ffb92f6853fa4bece1f5f8f0aa145a28abed6bd1d4cf7bdd diff --git a/tests/expectations/compiler/compiler/input_files/program_input_constants/main_field.leo.out b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_field.leo.out new file mode 100644 index 0000000000..57ac5d3bba --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_field.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3273de56f5b29e324e4f4ef3cc7c0c8d468962214728d611aeb4b788fd73aefb + initial_ast: 42c8a84d865a9a964326fb4833c82c633adf3e85bc98b7a9995b3544b17683d1 + symbol_table: ec750d5d5f4a1e5b31a63e0bc8e12944eef200f2d71efcdb0fd85811ac6e2d31 diff --git a/tests/expectations/compiler/compiler/input_files/program_input_constants/main_group.leo.out b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_group.leo.out new file mode 100644 index 0000000000..1bdd228b21 --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_group.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: eebcd00b27aba004420d4f00da025325da9ff86d29162e54401fa55b5758ae39 + initial_ast: 94bd517ef2de4cf61c4e3283b072c8efdd9c824dd00479e59dae1e19aa1133b5 + symbol_table: 14140f05d5fb8a85352940a67860fd36ed597f93ac882fdb76ef3d1ed89b5031 diff --git a/tests/expectations/compiler/compiler/input_files/program_input_constants/main_multiple.leo.out b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_multiple.leo.out new file mode 100644 index 0000000000..71ed5e57ff --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_multiple.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 81306ba48e4ea08106311612bfd5c1bce79242ca08695fda8584780329266063 + initial_ast: 4a249f544fc369103704f26be6d6d8b6642b9f76be6f89c43439c9219ad1dd3f + symbol_table: 9674d1e094af108a21c9a8f2e9c5b911f76504d728866f9b57b6e38318c52741 diff --git a/tests/expectations/compiler/compiler/integers/i128/add.leo.out b/tests/expectations/compiler/compiler/integers/i128/add.leo.out new file mode 100644 index 0000000000..ee8c6948df --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0eb1ad9d13a2a11ba96f8ae311f1f91922abd5316ec123f92be78864c33464b4 + initial_ast: e57eedde564d152e87415ebe4d0034b72ed2c094853c2df80d782e43e7dd85f7 + symbol_table: 26e29ab43161625435a7de57fba18feffa2ca86b908d3720a652c8fabc1a6adf diff --git a/tests/expectations/compiler/compiler/integers/i128/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/i128/console_assert.leo.out new file mode 100644 index 0000000000..e6a8a4bfe6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b35d182059f5f8aea05705b54c7446011ee78919bbda9f163927613f924f100 + initial_ast: 24b3e77bc04174e1bbf31ec0909da2e4bd16b0b7f23ca7259cb08c8ea8d3951c + symbol_table: 6f25f2987af24695b2fb70fb856a108c3d185a98289e796f5af4cb60c0de946a diff --git a/tests/expectations/compiler/compiler/integers/i128/div.leo.out b/tests/expectations/compiler/compiler/integers/i128/div.leo.out new file mode 100644 index 0000000000..fa08ae0059 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a8d3b28b557b2c19b8bb0083c015f5f217971e856d0a5c2462e956bf55b68126 + initial_ast: 26e7559cdaef975b7b805f7cff6a7aaabcae77753c4c9613a746f1c490bc89e4 + symbol_table: 13298cf22dc30ccc0e18f787e657068fd0531e71e9b29155541503bf7209801b diff --git a/tests/expectations/compiler/compiler/integers/i128/eq.leo.out b/tests/expectations/compiler/compiler/integers/i128/eq.leo.out new file mode 100644 index 0000000000..d88448b015 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b35d182059f5f8aea05705b54c7446011ee78919bbda9f163927613f924f100 + initial_ast: ce9145527b105baf75ed6b5be8dcdd3161aadc05d312bf05306de5d4990c56bc + symbol_table: e354ff29052ba6cf646dc2a940fb2489c740245554aa81f4a9b71c314f431618 diff --git a/tests/expectations/compiler/compiler/integers/i128/ge.leo.out b/tests/expectations/compiler/compiler/integers/i128/ge.leo.out new file mode 100644 index 0000000000..86fe5d2f10 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b35d182059f5f8aea05705b54c7446011ee78919bbda9f163927613f924f100 + - initial_input_ast: 9dd6bd7a655947faefb64c288a9e9411b81148989543a4766fbad39a957dc8eb + initial_ast: 2ce3977afce2bb7a1c362793d8651945754d20d73a8d499be086aa1116ae347c + symbol_table: a0b9f85aee4a145dd4f5a8f6488b4d50a627e317601a523b63b13cc969325401 diff --git a/tests/expectations/compiler/compiler/integers/i128/gt.leo.out b/tests/expectations/compiler/compiler/integers/i128/gt.leo.out new file mode 100644 index 0000000000..8d7346d754 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b35d182059f5f8aea05705b54c7446011ee78919bbda9f163927613f924f100 + - initial_input_ast: cc80ffa5e25d4c0dcaf6154575b54f85ff5c2f86f50830a966e51bdd8f2274d0 + initial_ast: 61cc3ea902ea0f09089df912d1e5f195f53e37673e17f25faae0dff5dd90ed09 + symbol_table: 96ff00c92d164363ceb1fee06485b451062e76798f4381afa4141d60b2e88c96 diff --git a/tests/expectations/compiler/compiler/integers/i128/le.leo.out b/tests/expectations/compiler/compiler/integers/i128/le.leo.out new file mode 100644 index 0000000000..b97247d9b7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b35d182059f5f8aea05705b54c7446011ee78919bbda9f163927613f924f100 + - initial_input_ast: 2bc5e353d29b75113a1b8976eddb617e0476110a0396b0dfc2dd48481803017c + initial_ast: ef3fba23ee70ce1bc7b3b5f75d32c61402b69f6ab95e8e315d56948037a1089a + symbol_table: 4beca34f91e3bb4fbb997a1851b3fefb933c47d1e24f6a2e6258d4075c01918a diff --git a/tests/expectations/compiler/compiler/integers/i128/lt.leo.out b/tests/expectations/compiler/compiler/integers/i128/lt.leo.out new file mode 100644 index 0000000000..e1acc02134 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b35d182059f5f8aea05705b54c7446011ee78919bbda9f163927613f924f100 + - initial_input_ast: 5c8741c117817e7996c0add338f5d29437be59d7b7e3f7a68a2e575871c57824 + initial_ast: aee5bb2b3a8c8c28bb69cda45ef7fac4ac3b7e2474ce82464eba446a7db6e0c6 + symbol_table: ad21c0cb65fd2f4f2360ed81da1bf608b83a0865801d2b569035eb1e36a7676a diff --git a/tests/expectations/compiler/compiler/integers/i128/max.leo.out b/tests/expectations/compiler/compiler/integers/i128/max.leo.out new file mode 100644 index 0000000000..ad225de7c7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 68e5c01d40ca62a3206904b472ec80d1209b8744d441e281c978d7216e3cebd8 + symbol_table: b9f23cb88072c4321465b95ec69bba96f8fb225616244266e05a9e6eeb99da5b diff --git a/tests/expectations/compiler/compiler/integers/i128/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/i128/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i128/min.leo.out b/tests/expectations/compiler/compiler/integers/i128/min.leo.out new file mode 100644 index 0000000000..55160d7940 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 663e59cc593d0eeac44f2497c059d9f6d8fb879939b2557cc45f908840550e48 + symbol_table: 6b54f07ea0046f948e794781960eb3df9271e7e2d10be3e278e2b02d4d810da7 diff --git a/tests/expectations/compiler/compiler/integers/i128/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/i128/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i128/mul.leo.out b/tests/expectations/compiler/compiler/integers/i128/mul.leo.out new file mode 100644 index 0000000000..df5e22d048 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a0f0026c304d73c93060f61ad3a55094eb1fafaf8663a0e1972275be45d759e6 + initial_ast: b5ed54eaddf90307658356a3722c6c11abb79e7f7f59e850fd7b34733db7432d + symbol_table: c0c0cbcbbb0b8aa5351b8c74dec4bc556103902ca0f1ebcee2067768c553fd83 diff --git a/tests/expectations/compiler/compiler/integers/i128/ne.leo.out b/tests/expectations/compiler/compiler/integers/i128/ne.leo.out new file mode 100644 index 0000000000..a40358e95b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b35d182059f5f8aea05705b54c7446011ee78919bbda9f163927613f924f100 + - initial_input_ast: b75ce6366bf607ddeebbfb8a7d491528a89ed4f3d5c4e57fb1480cfec43930e5 + initial_ast: b82476f35c3cb4385d9381a54ca19c42a3a9f648a40c94aba96d45f720224300 + symbol_table: ee72f930a06f9409bfa70e2c08cb9453f255bd8ecf13470383dd7592fada8a93 diff --git a/tests/expectations/compiler/compiler/integers/i128/negate.leo.out b/tests/expectations/compiler/compiler/integers/i128/negate.leo.out new file mode 100644 index 0000000000..fc18a298a3 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/negate.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5204f7264d13dc737097c1b0a1c707e19767854e922ba5571e902d23eb6847f4 + - initial_input_ast: 6c496394ee585ef0d7dc4bb8e1ef5a05656999502f8f466747e4044c439c3aed + initial_ast: 2ae2d8df3abe76076d795a88793186dc18776f7208e6443177da1b5b4c086aaa + symbol_table: dbad7f718a950b554310d0eec61a2a595d5232be21ff783f0c8bd647d6275dcb diff --git a/tests/expectations/compiler/compiler/integers/i128/negate_min.leo.out b/tests/expectations/compiler/compiler/integers/i128/negate_min.leo.out new file mode 100644 index 0000000000..13b25d1133 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/negate_min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 1944c18852cf66a6e30adb6f92012fbf0b13b2f28d02672b6c7dbbb0b2f0b950 + symbol_table: 49a0f7957853abe54b078bb95a1091e5262b58ecc5ff8b8e546ff1fe82547e1f diff --git a/tests/expectations/compiler/compiler/integers/i128/negate_zero.leo.out b/tests/expectations/compiler/compiler/integers/i128/negate_zero.leo.out new file mode 100644 index 0000000000..f83bba0a3e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/negate_zero.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 47786a6bfb6598f7e0847dfca1f2014ba4ead1d3f677f5a9da0ceace3fbcecf4 + symbol_table: 7e7d4d32ae1e112e3ca3a14420225132520abf3f8dc327879b7f8f23f85a8b0d diff --git a/tests/expectations/compiler/compiler/integers/i128/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/i128/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i128/sub.leo.out b/tests/expectations/compiler/compiler/integers/i128/sub.leo.out new file mode 100644 index 0000000000..e2c881120f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a3dbcd20f9c1d5bce5a3667831f3cf05667a4b0253bdda31d99d47951ad98259 + initial_ast: 8189cf6052fd9388350277deb7b988205f8250e9174900d5d77e567c05f5e76b + symbol_table: e071ae07079f92ae418d648b75b982c8294698178699e138c3abfe2341d5b3fc diff --git a/tests/expectations/compiler/compiler/integers/i128/ternary.leo.out b/tests/expectations/compiler/compiler/integers/i128/ternary.leo.out new file mode 100644 index 0000000000..fe0fefbe1d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 40139f0e5c57dd40f292eb3eb9857b869d131d69050280f412c8bacf3c2be0a5 + - initial_input_ast: 83772cf3d3bec2e16e513bf37ebc6df2558ecefe79f9b00232cba49bfee7a866 + initial_ast: 682689aedac278bb189d2925ffe7e4c2ff5a9df382820d3bf189e65335fd83f6 + symbol_table: 940d5266f13724648ceb54c883bd73b737d83b14d2925fed8b0fcdaa6d77294b diff --git a/tests/expectations/compiler/compiler/integers/i16/add.leo.out b/tests/expectations/compiler/compiler/integers/i16/add.leo.out new file mode 100644 index 0000000000..d33202bf3a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 52a0e922c0ada1f3302f3d4d7feb758ff3937a8615a2fd23325cffcb0c50cf45 + initial_ast: 09474258703fb94fef7eb4c8dc0001872bd598a616802639c3ea21fff9e63af8 + symbol_table: c0f4ce3ef2a4953e653c50d9adbccfc069c2047c6adda1830646d92934d66726 diff --git a/tests/expectations/compiler/compiler/integers/i16/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/i16/console_assert.leo.out new file mode 100644 index 0000000000..959135312b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b12ba1759e7600fe50376c2dc04f2cc908cae643be6693583c167493b8b5064e + initial_ast: e34b90def31e29b13527a23faa6799d987dae3b6e6c72ea439786120e30da427 + symbol_table: 4ba20f16852ff2fe7616b71c2d07aeadaed53777e2f304ded7c449948fe2f853 diff --git a/tests/expectations/compiler/compiler/integers/i16/div.leo.out b/tests/expectations/compiler/compiler/integers/i16/div.leo.out new file mode 100644 index 0000000000..fc257dc6fb --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d60a59011ffd9b722482df1f60fecf4035905e7991faf3509dc956204e26dbdb + initial_ast: 159eb8ee20ea48c33283f7bbccab7689ee51fe7973f1ea6511e02452dc53f287 + symbol_table: 0e193ca48f95a41e91fe8b791ba0bcee677e3fb5edf1af8659aaa4f16607c122 diff --git a/tests/expectations/compiler/compiler/integers/i16/eq.leo.out b/tests/expectations/compiler/compiler/integers/i16/eq.leo.out new file mode 100644 index 0000000000..ebe14313c0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b12ba1759e7600fe50376c2dc04f2cc908cae643be6693583c167493b8b5064e + initial_ast: 14f3d2c3a06044f14bf15fb1d1445c8e83abb2640315595811e96559311370d8 + symbol_table: 8f43f463b85046218c11afbd5aa39021ba131f2b7474f2f9e1743e5b4b617d49 diff --git a/tests/expectations/compiler/compiler/integers/i16/ge.leo.out b/tests/expectations/compiler/compiler/integers/i16/ge.leo.out new file mode 100644 index 0000000000..da5643d8fe --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b12ba1759e7600fe50376c2dc04f2cc908cae643be6693583c167493b8b5064e + - initial_input_ast: 0ed5ac4e8e800b411f402e7957dbdfa4f421798943462089d15eaabc08c9cbf9 + initial_ast: 3816584b18492351dedca9ea4970ae1a194c6df5802683deaa7e05878f4c78ef + symbol_table: 23916724e149d291045330b89d96b60889a0fc778c31ae92c3a39b8ac7453285 diff --git a/tests/expectations/compiler/compiler/integers/i16/gt.leo.out b/tests/expectations/compiler/compiler/integers/i16/gt.leo.out new file mode 100644 index 0000000000..0d9cdbb101 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b12ba1759e7600fe50376c2dc04f2cc908cae643be6693583c167493b8b5064e + - initial_input_ast: 60eab1c75b42a247473a1589e677e7270c77e15fc60b3a3081a267b27b550f9f + initial_ast: 1b1c22e46a098708bdc44082f29b03722b923346cf91253c40fbcb6036b60345 + symbol_table: 78d0d78e216325ced3f912e92935818dc7e24065690b5d9d560b7997ca29eacd diff --git a/tests/expectations/compiler/compiler/integers/i16/le.leo.out b/tests/expectations/compiler/compiler/integers/i16/le.leo.out new file mode 100644 index 0000000000..3b7e6c375e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b12ba1759e7600fe50376c2dc04f2cc908cae643be6693583c167493b8b5064e + - initial_input_ast: 61e14cdfb7cfc0eda6361c3dfe1c8b0435e69fe5dec14fd78d57631fb155ad3a + initial_ast: 00b1c33db54d406008f248e5b2a5580a5f9d0b65d05d90bc560421fbbed025ab + symbol_table: bf2a96b0ab9d2587f3b5bd9b6a4b33d2839e61219f68828a79fb40788190ca1a diff --git a/tests/expectations/compiler/compiler/integers/i16/lt.leo.out b/tests/expectations/compiler/compiler/integers/i16/lt.leo.out new file mode 100644 index 0000000000..2eaaf2cb4f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b12ba1759e7600fe50376c2dc04f2cc908cae643be6693583c167493b8b5064e + - initial_input_ast: c56154a57fdc267eda5faf0b93fe3a124c52f9dbd9f1a46063018300138c474f + initial_ast: baf572befe4afa6fa0cff0a944a69d61b28c0c4dd4f24fb9d88f85dada1e306d + symbol_table: 7b9a0a38448dc4a3bc8670c59d350d3ef11176a8965827ff5e7cac73afe4b7ad diff --git a/tests/expectations/compiler/compiler/integers/i16/max.leo.out b/tests/expectations/compiler/compiler/integers/i16/max.leo.out new file mode 100644 index 0000000000..3e4ced07a8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: c36a9c8998a60ab0613b286be0b6f7b567188a98a4c9271356fc22675fb0177c + symbol_table: bff54d1345b964af7d0d8caa2e69b103810988c8acdd599f7843498255b52d69 diff --git a/tests/expectations/compiler/compiler/integers/i16/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/i16/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i16/min.leo.out b/tests/expectations/compiler/compiler/integers/i16/min.leo.out new file mode 100644 index 0000000000..22860542f8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 6ba1365fb0c43cf8dda656e1648bf65420be8f84ae397fb21d45cb770a7a97bf + symbol_table: 9f669ef27076d235af9438e4a4732be0d93854a67b7e3df0e3a99f62bc9db684 diff --git a/tests/expectations/compiler/compiler/integers/i16/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/i16/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i16/mul.leo.out b/tests/expectations/compiler/compiler/integers/i16/mul.leo.out new file mode 100644 index 0000000000..1c926e6299 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 80f618589bf50616df17ffbcc676f151b17416a702f14774d3441e457a4157b5 + initial_ast: c713b1dbdd370474ea5c2cb553eb80f1776b2fd2c343c215f86dc1d94b68a20e + symbol_table: 6ef3c6f53b59ccfacd7d3590250bf4f383dead38eb6403e278dced621c9a924c diff --git a/tests/expectations/compiler/compiler/integers/i16/ne.leo.out b/tests/expectations/compiler/compiler/integers/i16/ne.leo.out new file mode 100644 index 0000000000..76aae6c353 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b12ba1759e7600fe50376c2dc04f2cc908cae643be6693583c167493b8b5064e + - initial_input_ast: 4ac2084a873258d0f5b18c4936ddd323509944d808e66efe91c44593d2c2bbe1 + initial_ast: 6d2447bbc531fc7a2391bc460c6a7db4876d61a8fb49680fdb86bac5ca6a848f + symbol_table: d06cab633083be51c77f53df2cfe0bce8137fcb17aac03346d885adc9c4b9be3 diff --git a/tests/expectations/compiler/compiler/integers/i16/negate.leo.out b/tests/expectations/compiler/compiler/integers/i16/negate.leo.out new file mode 100644 index 0000000000..e9d16f1a60 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/negate.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e3239b93c2572ba5c5e7cf2edaa4d8045bb11212607af1a441eb351677f49087 + - initial_input_ast: 9da893ef2702d495a685100ea83f84397cdcc3716f4e9fa23736bb57a750d861 + initial_ast: 9ccda1920de403f670a51d341e3f538e8896fced58384f81b2d51e7274f22cce + symbol_table: b693277ecb38a66fd37fc9482e73a650bf448aa84e0f2d60baf85e504ececdba diff --git a/tests/expectations/compiler/compiler/integers/i16/negate_min_fail.leo.out b/tests/expectations/compiler/compiler/integers/i16/negate_min_fail.leo.out new file mode 100644 index 0000000000..a1fac14d38 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/negate_min_fail.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: f8beea948d8769e04b08bf5059ffa3c084854ecea30fc8a1ceaf8bcc8214175b + symbol_table: cc902d05b8e7171b94fb0335b85ef2147427d0840e15360f6a88c4906ebceaa2 diff --git a/tests/expectations/compiler/compiler/integers/i16/negate_zero.leo.out b/tests/expectations/compiler/compiler/integers/i16/negate_zero.leo.out new file mode 100644 index 0000000000..71152213a0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/negate_zero.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 23ee38fdea594d9b998c357b927c3a6c6a26e7e42f9eed8b8bc563fdd5cb749e + symbol_table: d4d0d37668745d3e6320eb7f08a3b4e32e276177c75600b3fe8742d6b42e308e diff --git a/tests/expectations/compiler/compiler/integers/i16/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/i16/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i16/pow_fail.leo.out b/tests/expectations/compiler/compiler/integers/i16/pow_fail.leo.out new file mode 100644 index 0000000000..e26b4183de --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/pow_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372009]: The second operand must be a unsigned int but got type `i16`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\nError [ETYC0372009]: The second operand must be a unsigned int but got type `i16`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i16/sub.leo.out b/tests/expectations/compiler/compiler/integers/i16/sub.leo.out new file mode 100644 index 0000000000..799a48a8db --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a614a0d50bb1fdac14773ff4bc9e6e73cadf7577f704bd022d228f8012c5b82d + initial_ast: 32dade0a85c4f199e6122e42fab9f07c572734ed14717a5f595fac3065724b8e + symbol_table: b04bbcf2084fb6c4abf70b9c36361dfac8cc78ac8f1004453b3020f7106b8378 diff --git a/tests/expectations/compiler/compiler/integers/i16/ternary.leo.out b/tests/expectations/compiler/compiler/integers/i16/ternary.leo.out new file mode 100644 index 0000000000..10cbd9b472 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b7e009a9242724e5b46c82c07ec09ceb37bd229e726aa7b10cf654222849047b + - initial_input_ast: c58e80ea1edcaef89fe15d96be15c8285fa4cdd94fe5a4d89e86037b95d81f2b + initial_ast: 3171680296fd00d15d07108b282bb8abecef40b9a78600897fe371a1a9f65523 + symbol_table: b92b41fc1f57be0e19b7ae98c07f01811e2400472c7577bd2facabfe011b2418 diff --git a/tests/expectations/compiler/compiler/integers/i32/add.leo.out b/tests/expectations/compiler/compiler/integers/i32/add.leo.out new file mode 100644 index 0000000000..63def67d7b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 187821d38d4d6bee83ad16df121b4cd61453c250259cc88b5224cde2cb0f81bd + initial_ast: 7f47a762b501ddb7827d34cf8f897322dfebac7554b59d9554a7feb59f6dfa64 + symbol_table: ae5ef5cfb1044cbd8c7efa5be8935eb1742fc65c72b7f8aba9d9f7fb72f8556b diff --git a/tests/expectations/compiler/compiler/integers/i32/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/i32/console_assert.leo.out new file mode 100644 index 0000000000..18ad2f2901 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a139a8bae62ab18b9235331f7dde3acb349c1445e807293c71235fd149b12c7a + initial_ast: cee523f739c2e3929f93cc0b1646db1e71ec143476dfae03c31e0de5506c8a92 + symbol_table: e7e8be510bca7adc0598527ef337c1938d3f5c8666448cafe2831594e553d39e diff --git a/tests/expectations/compiler/compiler/integers/i32/div.leo.out b/tests/expectations/compiler/compiler/integers/i32/div.leo.out new file mode 100644 index 0000000000..22ee69f51d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5c4c17182ebea3e67d0b4f30c4c5541f039ff6d44914806b5358ae789fde1576 + initial_ast: f35bcae22884780c9b89c8ae1c1b5ccf1879f3380a5f3126bcd7c7235e0d4386 + symbol_table: 088e7adb11ab06a554256c44b806f86c2c1f13273e00be2a80b8c8e797e51eb2 diff --git a/tests/expectations/compiler/compiler/integers/i32/eq.leo.out b/tests/expectations/compiler/compiler/integers/i32/eq.leo.out new file mode 100644 index 0000000000..9337b8f7a8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a139a8bae62ab18b9235331f7dde3acb349c1445e807293c71235fd149b12c7a + initial_ast: 56fd1c1dce40dbd576aa518fe53d6f42ce776057387be5058acce284e15c2c4f + symbol_table: 7a2619dfcf2d5f5132253f84196ad0d3ab6ee0ab95df55062240dd92cca23e0b diff --git a/tests/expectations/compiler/compiler/integers/i32/ge.leo.out b/tests/expectations/compiler/compiler/integers/i32/ge.leo.out new file mode 100644 index 0000000000..d2964f75c7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a139a8bae62ab18b9235331f7dde3acb349c1445e807293c71235fd149b12c7a + - initial_input_ast: 6e2f4bca097cdfd636afe4221883da452290354178f85de45f1033dc3d99caf5 + initial_ast: 95f1346bdb68ce73d0bbbcde5d8119c298115417c0c02133ef9a2856dc649862 + symbol_table: b599133b42cb178b6ecc71beee98b33229ba1bbb58282ace5b20faef31637bbb diff --git a/tests/expectations/compiler/compiler/integers/i32/gt.leo.out b/tests/expectations/compiler/compiler/integers/i32/gt.leo.out new file mode 100644 index 0000000000..41d1235cec --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a139a8bae62ab18b9235331f7dde3acb349c1445e807293c71235fd149b12c7a + - initial_input_ast: c0ba73ee8b61ed89f99395a94f23a5aa3a84f9345a4c4020460303b540c33c6c + initial_ast: 45c32d7a136b3b48d35d790ef7f0d85715cea41d52a35ff791fba9894dfcfa29 + symbol_table: 547e049dec4bad4d2e354d568151fc102474caffb82551bb5630c0b8906230c2 diff --git a/tests/expectations/compiler/compiler/integers/i32/le.leo.out b/tests/expectations/compiler/compiler/integers/i32/le.leo.out new file mode 100644 index 0000000000..724d057906 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a139a8bae62ab18b9235331f7dde3acb349c1445e807293c71235fd149b12c7a + - initial_input_ast: f7bd61dab4f2768d6b2f631a06f5f33307a77755b1b640ebec2a187c3f9d0bb1 + initial_ast: 7b327120681dbf21fe3556210c45dcd1bc46b4528fd43c7c1947db55dce84d1f + symbol_table: 2471d7a0f956f30747d5bd8c5d03e8a47c628ac64766d2f19caaf3dadd7f1c06 diff --git a/tests/expectations/compiler/compiler/integers/i32/lt.leo.out b/tests/expectations/compiler/compiler/integers/i32/lt.leo.out new file mode 100644 index 0000000000..aef3636e7c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a139a8bae62ab18b9235331f7dde3acb349c1445e807293c71235fd149b12c7a + - initial_input_ast: cc79bd922f3afc54250b7e7a60628a58b17ba8e7db58091349f13b67297ea1f5 + initial_ast: 3dddac99f473a213e6e9c0157635392ce74651d094b7703602ac70ae7bbf64e3 + symbol_table: 688fa40d541217369a9c952f52de9be090829cb3c6d08e98d6312fcdfbd90d63 diff --git a/tests/expectations/compiler/compiler/integers/i32/max.leo.out b/tests/expectations/compiler/compiler/integers/i32/max.leo.out new file mode 100644 index 0000000000..349e07d906 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 204dfbbf244912ad9d11c9ec397d65995eb80bfc428c36118890bb92f76e158f + symbol_table: e4eff856d1f884c746d9549c80e05a6d7ef3c23cab40a056f6be96cedcf093b5 diff --git a/tests/expectations/compiler/compiler/integers/i32/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/i32/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i32/min.leo.out b/tests/expectations/compiler/compiler/integers/i32/min.leo.out new file mode 100644 index 0000000000..fd9a778a01 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 3faee019ae168917ee4acd6ccb87aa4209dc93c3213327788c05f01b0e3dae47 + symbol_table: fe289642ca33db01ce62474ee358f4cff826e221724cc5b4d28f0e878d4f08e6 diff --git a/tests/expectations/compiler/compiler/integers/i32/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/i32/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i32/mul.leo.out b/tests/expectations/compiler/compiler/integers/i32/mul.leo.out new file mode 100644 index 0000000000..08ff49e806 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c767df287dda6925591fbdb496ed122c17e2e0b963f0f2819a03493e8f57656e + initial_ast: e66dc6bebe6a96dbde3a09633d58c0ee56bda544ef8d4b91c61b8172209411b1 + symbol_table: 7c31808962cf3c6fa13611d89e6edc2a3b6c5d1fb7c1913a337f436412cc5a34 diff --git a/tests/expectations/compiler/compiler/integers/i32/ne.leo.out b/tests/expectations/compiler/compiler/integers/i32/ne.leo.out new file mode 100644 index 0000000000..1ce18f49f4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a139a8bae62ab18b9235331f7dde3acb349c1445e807293c71235fd149b12c7a + - initial_input_ast: 3eb74ab23e5409471a8cddbdef932be85f95ab0027ad95caff181f26ef3f8e9d + initial_ast: 7cd655faeb60491a7450f04fc44df47097be23ca8dd63d031031c0c7b2b49e03 + symbol_table: 86eb824aa5a8d1e3d8f4c4682aaabc503e02680c5c4ab6ab6500ff971ae21879 diff --git a/tests/expectations/compiler/compiler/integers/i32/negate.leo.out b/tests/expectations/compiler/compiler/integers/i32/negate.leo.out new file mode 100644 index 0000000000..e398c6f3b7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/negate.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8016712e5cadc085ec477fe3261d863ed258f15bbcee3c229280a4434dc87bb6 + - initial_input_ast: 7d83894bd97920d10bbdcbba5a40cffdd1c2ec823cc2af89a3cdf48376c5c554 + initial_ast: 6c09a13c117b129a261ac296984a5e1981820833e5b21acdafd02c05d3351e3e + symbol_table: ff59dc483d6da2f11e881ea60ccd3534ab7c1655e2e1e8c2ca99c1d670c77a19 diff --git a/tests/expectations/compiler/compiler/integers/i32/negate_min.leo.out b/tests/expectations/compiler/compiler/integers/i32/negate_min.leo.out new file mode 100644 index 0000000000..4fac29e557 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/negate_min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: d3cba4377a95bb0a2e228539828114ecc180e4d1525bcc29249f90acabee7d9f + symbol_table: 4316835ec95347cdf02c020035e9cb3416318c71618d710108c716ae1554d139 diff --git a/tests/expectations/compiler/compiler/integers/i32/negate_zero.leo.out b/tests/expectations/compiler/compiler/integers/i32/negate_zero.leo.out new file mode 100644 index 0000000000..34e4baa4be --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/negate_zero.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 8ff48ba0a09dd32b531f3782faf3c93a043ba4e2955bd11f9bf898b274182dc6 + symbol_table: f03df27663cd6b55538ab7319ad179ba7be6e962fdc193c79365a684ef004c16 diff --git a/tests/expectations/compiler/compiler/integers/i32/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/i32/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i32/sub.leo.out b/tests/expectations/compiler/compiler/integers/i32/sub.leo.out new file mode 100644 index 0000000000..81b6e445b6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b0ba0dceefb39938d6365a1af8aff5b1ab305a264e70489cbf4ad244bb9642f7 + initial_ast: af8beb65fd10670b4a407b8a5e41b765e64e08fe5688419d5307a2a79c4886cc + symbol_table: 5b6a8a1708a2047863f813b4b029c22fd49de20abf5a16bb667954c4c5ee2a23 diff --git a/tests/expectations/compiler/compiler/integers/i32/ternary.leo.out b/tests/expectations/compiler/compiler/integers/i32/ternary.leo.out new file mode 100644 index 0000000000..f5e2845c99 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 541a92e4449861bc8a77cd1e3e0641ec8581ea2156adbb71a8805eb76b981535 + - initial_input_ast: c0d707f8e705919c847736cd72c601642fc57cb205eab2b81bedf7cce768f18f + initial_ast: fea8e5d8e237bf19a2310917bd90478c2fbfb5339d580557095287bde9632df0 + symbol_table: d69acacea66b05b7cb30053a47a32453810be97b933908e014f68d8cb046ee6d diff --git a/tests/expectations/compiler/compiler/integers/i64/add.leo.out b/tests/expectations/compiler/compiler/integers/i64/add.leo.out new file mode 100644 index 0000000000..1f10901869 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4487891a65166322700df8b88e062dd55ba1ba1eab41086faeecb89866ce6353 + initial_ast: c07459e21796b714d812de884eaf71ac1eb756b2fc786662b188cd5b26cefed2 + symbol_table: d819410bf10134f81bb62eb4e11ff16ef2ee5d3aed52c328514db13cc79c9385 diff --git a/tests/expectations/compiler/compiler/integers/i64/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/i64/console_assert.leo.out new file mode 100644 index 0000000000..5083032d71 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9ac72a16994c4f4145cf0eaa23f0d58de951926f8b9cb500bc33644cc242d288 + initial_ast: 8d3a22f5a92b3543294d463ddd69f739559ee2c45b74f38ab906e26ff3593584 + symbol_table: fbeac8715fd60fea0f3ef8db7373e8ec195887ff4ba92bb7af7346181db2164d diff --git a/tests/expectations/compiler/compiler/integers/i64/div.leo.out b/tests/expectations/compiler/compiler/integers/i64/div.leo.out new file mode 100644 index 0000000000..3eff496c62 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0a764dba657d55d3997cad318c763d1bc29b3bd68e720c29bdb329e31544cfa2 + initial_ast: c26e26793fd744748b6d73e988dc01aa42847ddbded67eefcc7a209514fbf44b + symbol_table: 00f270ed9ebe98ec0543be83c941aef7d465c6c79780eacac64a8b09120dd09b diff --git a/tests/expectations/compiler/compiler/integers/i64/eq.leo.out b/tests/expectations/compiler/compiler/integers/i64/eq.leo.out new file mode 100644 index 0000000000..f9a1d43d12 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9ac72a16994c4f4145cf0eaa23f0d58de951926f8b9cb500bc33644cc242d288 + initial_ast: 3816b90d0691fed125080abe118763eca3bc6a6f956c55fb32bbf28d1bc7a1ab + symbol_table: fe562696dece608fab527d7894d61a1bbccbcdd2ddf7fcb5cc52a0d596fcaff3 diff --git a/tests/expectations/compiler/compiler/integers/i64/ge.leo.out b/tests/expectations/compiler/compiler/integers/i64/ge.leo.out new file mode 100644 index 0000000000..7a13c957fb --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9ac72a16994c4f4145cf0eaa23f0d58de951926f8b9cb500bc33644cc242d288 + - initial_input_ast: 6f2114abcc9ce0070e464adfbafdd625d2027563630b920462ae44cf648d10c3 + initial_ast: e3d948403639f83d67f7af93728a058a6ec3078cd103cd18839340f2e736ad62 + symbol_table: ecc8f2f906379f321b5babf4982047f1a42f03456c2624eeeafe8d0a9198e3d5 diff --git a/tests/expectations/compiler/compiler/integers/i64/gt.leo.out b/tests/expectations/compiler/compiler/integers/i64/gt.leo.out new file mode 100644 index 0000000000..6b17e20935 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9ac72a16994c4f4145cf0eaa23f0d58de951926f8b9cb500bc33644cc242d288 + - initial_input_ast: 77947a385da3cc07fb78bfd9d6d32f614be877f10e664addc4010f44dfd494fa + initial_ast: 36fef416121f22a24701d940670ceaee231a83028d07f6ae35da9b7af305cf0a + symbol_table: e089bc1a3f005ed33b1f676a2ffff71fa6ec2f119f23e2537ca763bad3d56837 diff --git a/tests/expectations/compiler/compiler/integers/i64/le.leo.out b/tests/expectations/compiler/compiler/integers/i64/le.leo.out new file mode 100644 index 0000000000..13d566e93c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9ac72a16994c4f4145cf0eaa23f0d58de951926f8b9cb500bc33644cc242d288 + - initial_input_ast: 4d3d28e791b2bc01cc08f84e9c521c25de2cb9f1159c0810e18288ceade9384e + initial_ast: a0ef3f88f00d454d6aad4d7931e231eed0a2319cf3d5c43e283fc1f23a0a8f52 + symbol_table: b186c6e3067b7544d334caa51380a5ddfcfb4d5a2efc6dc1acbe42282ef4cc60 diff --git a/tests/expectations/compiler/compiler/integers/i64/lt.leo.out b/tests/expectations/compiler/compiler/integers/i64/lt.leo.out new file mode 100644 index 0000000000..6f8fd57be4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9ac72a16994c4f4145cf0eaa23f0d58de951926f8b9cb500bc33644cc242d288 + - initial_input_ast: 67194a693cde1f31bb02a14e2ee4e5cc686b33d59d3b7449e9dc7bf74fbd0bf8 + initial_ast: 564eeb1186e117b9e1882292a9eb3e947c37ee5187c9d45eb56c21668aa656e7 + symbol_table: 40cf3641e69402664d36e3da2fc574fb909d73cb15a7a253c678d61076da6d1d diff --git a/tests/expectations/compiler/compiler/integers/i64/max.leo.out b/tests/expectations/compiler/compiler/integers/i64/max.leo.out new file mode 100644 index 0000000000..df870c4501 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 32263f220678e5aadc1958ef0592ab4848f0f6f7791389f414bd038b19294e40 + symbol_table: d7d7a90af5b30ced5d014e0f7539fe023299e3050aac61c26ebfbffd00997991 diff --git a/tests/expectations/compiler/compiler/integers/i64/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/i64/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i64/min.leo.out b/tests/expectations/compiler/compiler/integers/i64/min.leo.out new file mode 100644 index 0000000000..a4477d5134 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 7f8ac510672bc82d54d6dd33a22a86e986bef5ddf4bcdde81ccccb964676b151 + symbol_table: ac8a22d4c2415f3853d5d7220433fab10c5f91eab939302666a2224601209d19 diff --git a/tests/expectations/compiler/compiler/integers/i64/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/i64/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i64/mul.leo.out b/tests/expectations/compiler/compiler/integers/i64/mul.leo.out new file mode 100644 index 0000000000..74e50f8df0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d53c1c3a0b1c6aad2bddba6e4b5194ed04f76992c93301b9a5fdf71d0c6e12fb + initial_ast: 2a819057aba25ab9d5ef4b419fb190ea918947595f3f4366fb329b6dcc2e740c + symbol_table: e10e8f60976d59b92f39cb8402580330f13bf9d04cd7afdbf844c0c718897ecb diff --git a/tests/expectations/compiler/compiler/integers/i64/ne.leo.out b/tests/expectations/compiler/compiler/integers/i64/ne.leo.out new file mode 100644 index 0000000000..53b593185d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9ac72a16994c4f4145cf0eaa23f0d58de951926f8b9cb500bc33644cc242d288 + - initial_input_ast: a2ebbe7590f5035c9115e7e885e6cecd7c4f07d3567fbe34d464027f73e7ece2 + initial_ast: 1b709842cb0e0f6893a5377d7d2a41e2ae3633292d978e2b8d29e4b0dcf88954 + symbol_table: cf15aab8ab6a6a35f3a7ae1c3827b7a1dd32be924cb0ea6b7febc46b60d5b449 diff --git a/tests/expectations/compiler/compiler/integers/i64/negate.leo.out b/tests/expectations/compiler/compiler/integers/i64/negate.leo.out new file mode 100644 index 0000000000..c363fa75db --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/negate.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c2099c29aa512efefc2f4b24dfec851416921200642fdfc282c1c71b9d8e4fd3 + - initial_input_ast: 60c2c4f5a8213dffdf7b02b324ba11327d7dd89d22bdd8f73032e9eb8aa7da90 + initial_ast: 223b12273586e56f88417ea3bad2dc753616f34a8c64ce42989ae60609f95912 + symbol_table: bc4883071e65ae85896379b2b51c6637ee6159ce84d85d38b6e44c90bb7f9b3d diff --git a/tests/expectations/compiler/compiler/integers/i64/negate_min.leo.out b/tests/expectations/compiler/compiler/integers/i64/negate_min.leo.out new file mode 100644 index 0000000000..7a10ebfb99 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/negate_min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 798f253e2a52fea294b6a622c0e72d631cf72341935d5a14758bf05433efd3dd + symbol_table: 927e4c4f2b53eb922fd507cb7faa00e94d47ccdbf16a2a0afe83b57e31873cb2 diff --git a/tests/expectations/compiler/compiler/integers/i64/negate_zero.leo.out b/tests/expectations/compiler/compiler/integers/i64/negate_zero.leo.out new file mode 100644 index 0000000000..f9300c1e1e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/negate_zero.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: a1485024b9efc9ca0dd542319261c34d27a6211104b04f9e2be31eace95a59ce + symbol_table: a456668190df24a0290cdc207ed29668d614565d90d9380187e371ea7cffc2b2 diff --git a/tests/expectations/compiler/compiler/integers/i64/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/i64/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i64/sub.leo.out b/tests/expectations/compiler/compiler/integers/i64/sub.leo.out new file mode 100644 index 0000000000..d6dc968d9f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b58e6dd8d55347cdad90608837dfd6dee3d002202044f63844bfcfb764e4770d + initial_ast: 79958786b273fbc3d0cd3c8b05566f983a1763845ae688275359cc8d5ce37fc6 + symbol_table: fdaa2856fba7667905480b9477e3aa08c41c722ec9c51b5f75209420f502ae0d diff --git a/tests/expectations/compiler/compiler/integers/i64/ternary.leo.out b/tests/expectations/compiler/compiler/integers/i64/ternary.leo.out new file mode 100644 index 0000000000..f7f36f64d4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 482e1a5ff8edd8d08f8a4e686f4b9bdd46f6c09fd6a45a91d80817d2792379c4 + - initial_input_ast: 9f06a756fd85b99ad71c8815e6d2e0988933eb8ff5f58cd3b25c797a99ae68ec + initial_ast: 7c6df373ff5ffd386e27030f922e4e0dcf1024d3262b54dec7b4a42c60bde1e5 + symbol_table: c4cb362b056cea8c44ef71fbd260c067c8025b66d9000f1bfd72a0a2caf34b8f diff --git a/tests/expectations/compiler/compiler/integers/i8/add.leo.out b/tests/expectations/compiler/compiler/integers/i8/add.leo.out new file mode 100644 index 0000000000..6889a3960c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a4cac5c153aca7bfef6dabb6cbf703d96938699bebce6f063d39011de78a5bd4 + initial_ast: 575d55695796c7e9f375a95cc760dee4d42a09c0583812c7b700afcaa1f4aa20 + symbol_table: 0d30cbd5adc20ac5b03559dcd90334ac82572a3d5a195325d49ee681b4597089 diff --git a/tests/expectations/compiler/compiler/integers/i8/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/i8/console_assert.leo.out new file mode 100644 index 0000000000..37b21a15b7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 387087e4e03168d09782d693bd8b288dd097f978e8470bf2d0fae6a18b0a5dba + initial_ast: aca72aa77831d092de1fcfbb470a0b30498b26ec78def084fa9d87437f735c4f + symbol_table: 94888e7a3878be6164b483f223840d704e815d8f29e1d90d04130e0f363c21d0 diff --git a/tests/expectations/compiler/compiler/integers/i8/div.leo.out b/tests/expectations/compiler/compiler/integers/i8/div.leo.out new file mode 100644 index 0000000000..d76175e195 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2bb926ee08666d2f770b02d22884fb353d718b57ffd34c156dd70431c16b713c + initial_ast: 5078bb1c9667027ef21780af5b4269c6f3fcaf2584f0bdaada261993b5aa8c3c + symbol_table: 856843c2915ab5599b921ca4c73e2be480e792d719ba89f86425195ece44a654 diff --git a/tests/expectations/compiler/compiler/integers/i8/eq.leo.out b/tests/expectations/compiler/compiler/integers/i8/eq.leo.out new file mode 100644 index 0000000000..bcbbac419b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 387087e4e03168d09782d693bd8b288dd097f978e8470bf2d0fae6a18b0a5dba + initial_ast: 67f555cb3130203c8f5a6f3f890a27d1eeeb2830d91f55097c8218c72ecd1861 + symbol_table: 7814b27104ef5de9ad3357bc67b519cf5642a0960e054e7419d46786fa6b4f08 diff --git a/tests/expectations/compiler/compiler/integers/i8/ge.leo.out b/tests/expectations/compiler/compiler/integers/i8/ge.leo.out new file mode 100644 index 0000000000..fcb980b139 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 387087e4e03168d09782d693bd8b288dd097f978e8470bf2d0fae6a18b0a5dba + - initial_input_ast: 2d8fb2c6466da29059eb6cc1d233fc87acbe4159c7e9f42783ac1900d4652bab + initial_ast: b3b414b2f71d925097fea6ab4d8e524e7204ef66d5d8eb82c2601a39805c89b4 + symbol_table: 653d6411a2d15feb4fce54c8f2ca038d0a5cc0e09226aa59d0a991228a438ec7 diff --git a/tests/expectations/compiler/compiler/integers/i8/gt.leo.out b/tests/expectations/compiler/compiler/integers/i8/gt.leo.out new file mode 100644 index 0000000000..7aea5c1a68 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 387087e4e03168d09782d693bd8b288dd097f978e8470bf2d0fae6a18b0a5dba + - initial_input_ast: 795ae933e75a19aa21efbe4f8deb0931a0ae5b62c8a730df05b676190de5a70a + initial_ast: 6ed5d0dc1e729b9861f487e39348037dc59ff7976572e4566286c51539ef782a + symbol_table: 93a2e7caea996e9ab13b40a775adc500eba4f3a329b617cc2e0759179b783ab1 diff --git a/tests/expectations/compiler/compiler/integers/i8/le.leo.out b/tests/expectations/compiler/compiler/integers/i8/le.leo.out new file mode 100644 index 0000000000..adf1c9fb0e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 387087e4e03168d09782d693bd8b288dd097f978e8470bf2d0fae6a18b0a5dba + - initial_input_ast: 14894f63af1f3e81f95caf62f8ffae47096064cddd59e55a96b85c9436c6ecf3 + initial_ast: 082a25a48d7ca194fb611bcac75ecc562f2a6977cf705992474131b2529f0a02 + symbol_table: be6d3bc2c850155455878c8f4faa8089372643e126a5241892437882cadbc7cc diff --git a/tests/expectations/compiler/compiler/integers/i8/lt.leo.out b/tests/expectations/compiler/compiler/integers/i8/lt.leo.out new file mode 100644 index 0000000000..41283b85e2 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 387087e4e03168d09782d693bd8b288dd097f978e8470bf2d0fae6a18b0a5dba + - initial_input_ast: ec93c97f4993d2553199eaa4494be32270e7e60428374cc3a78b3c467458a24c + initial_ast: 25dd81b56ded5248f01f17a127d80b9e4bbd3de7ac546c62bbf59a3bd8eb158f + symbol_table: 4728ccd7dbbdc653e78c0ccfce8ad81762caf0ba516da7b9603a2543f0b89498 diff --git a/tests/expectations/compiler/compiler/integers/i8/max.leo.out b/tests/expectations/compiler/compiler/integers/i8/max.leo.out new file mode 100644 index 0000000000..587b534306 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: a4fd3d6e1af170d2f7c29ac77dd37eb02a03c67836e6fa46c93fecf010371101 + symbol_table: 66106e69fbd949ea2dbfd4416f5d1c9227684eff438d1625c93d6bb4f8573ce9 diff --git a/tests/expectations/compiler/compiler/integers/i8/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/i8/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i8/min.leo.out b/tests/expectations/compiler/compiler/integers/i8/min.leo.out new file mode 100644 index 0000000000..1f9907287e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 4f0ced5e7f9f4cba2d7806cb5010c5fbb29d0646e831143ebacf1d8ed9088572 + symbol_table: 98cceb8df5e7a49587ca9cd0c728a7ae7d31f69b41541d3f2463315c75d825eb diff --git a/tests/expectations/compiler/compiler/integers/i8/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/i8/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i8/mul.leo.out b/tests/expectations/compiler/compiler/integers/i8/mul.leo.out new file mode 100644 index 0000000000..1874026270 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b22a779f02dd4aac1d2c90081aa815018712cc8e9208e9b56251456c1d0fc989 + initial_ast: 6048a6b9e643c16d0adf4d99ff836fa4dff4c344311b4cc7314c8f3ec4325dae + symbol_table: a5a3bb7ed8ca56503ecd767a1ca1a997d5f5b3a06106dedfbe78d04700d70052 diff --git a/tests/expectations/compiler/compiler/integers/i8/ne.leo.out b/tests/expectations/compiler/compiler/integers/i8/ne.leo.out new file mode 100644 index 0000000000..849b8efbd0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 387087e4e03168d09782d693bd8b288dd097f978e8470bf2d0fae6a18b0a5dba + - initial_input_ast: 4a3a1f1b5a3ec22bcd0cc41eff2473442e5d1650661fc9aaf0f08dda58d062e2 + initial_ast: f884eddeb994378c8b1d41084e8cb854dd935ad700ea939a3d440cfa0e16344d + symbol_table: 4fb6658a07bb0a63f1da45790682548f3a9eea88a6453f4dc12971d80766f89c diff --git a/tests/expectations/compiler/compiler/integers/i8/negate.leo.out b/tests/expectations/compiler/compiler/integers/i8/negate.leo.out new file mode 100644 index 0000000000..fbec634b15 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/negate.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 48011eb662fd0ab14d0bb1c77ee319c30114fb378809c0a880751cba5f721cc4 + - initial_input_ast: a81bc9a08945b82a022ae53773d357f3d1f8786309c073cb17fb087562b042a4 + initial_ast: fabd983b60159a49115383bafb538e9c4083f80ff9a0126a1d5ef3ffd2a9f38f + symbol_table: 22bc9cc7565226e1ad3280c58cd06f4035bf064b80496bf97989bf6519f81937 diff --git a/tests/expectations/compiler/compiler/integers/i8/negate_min.leo.out b/tests/expectations/compiler/compiler/integers/i8/negate_min.leo.out new file mode 100644 index 0000000000..a2e32410df --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/negate_min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: b42963ba3a80c8c3f63fce57dba1f6c67a38a5e158f89f25c81bb3eca8965857 + symbol_table: 480e1058cba976845e762dbcc1568635f4940fb87dc8e89da28b568f16febfac diff --git a/tests/expectations/compiler/compiler/integers/i8/negate_zero.leo.out b/tests/expectations/compiler/compiler/integers/i8/negate_zero.leo.out new file mode 100644 index 0000000000..a5ba165c0f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/negate_zero.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: a1c4308377480eda081a896acd28ca3bb2c1afad13b7323364bf9ce869c84e2c + symbol_table: dbe838d51c4237ebc843ac704d38d151682d6df925b8c46e681c3dde92b33f07 diff --git a/tests/expectations/compiler/compiler/integers/i8/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/i8/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i8/pow_fail.leo.out b/tests/expectations/compiler/compiler/integers/i8/pow_fail.leo.out new file mode 100644 index 0000000000..2ebf9503b5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/pow_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372009]: The second operand must be a unsigned int but got type `i8`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\nError [ETYC0372009]: The second operand must be a unsigned int but got type `i8`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/i8/sub.leo.out b/tests/expectations/compiler/compiler/integers/i8/sub.leo.out new file mode 100644 index 0000000000..1b71520366 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e493649c1e8d82f8080eb428d5006045e1cc91e91ccf16fa9a67f5f78b29f568 + initial_ast: 31d85c43e39c50a69902d288ad03a0d14d284878bd19578be63cf551ff6e895a + symbol_table: 49ac09363ff46f225d86ff3aa73dc48ee921cf2f4c096ce111832903da6a9e97 diff --git a/tests/expectations/compiler/compiler/integers/i8/ternary.leo.out b/tests/expectations/compiler/compiler/integers/i8/ternary.leo.out new file mode 100644 index 0000000000..6dc75ce407 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 626d0af88ad79f131c83f117a6a78faf8414bbf4fe80326c298934ba49565bc1 + - initial_input_ast: 3838e2a3b3a7d4e9c0ac478113dfc08b2cc43c8692615ded04677a956104b542 + initial_ast: c13d17f4ed21aabd7c1cbbcf8d85096e2c76682524ac2d006af3fd133ce4a978 + symbol_table: 64f5be13cd1e5bad65c85910f051acff84a21cc1483dc8d013a70d4f274fd419 diff --git a/tests/expectations/compiler/compiler/integers/u128/add.leo.out b/tests/expectations/compiler/compiler/integers/u128/add.leo.out new file mode 100644 index 0000000000..33823716ab --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d3082b5edd6d814cd5eba97f5cfee8cd6ac7c859b0bd6345152d07ff71c77704 + initial_ast: bf4608895b7bc9dabc8c40ae050f161836cafa9114df13a102f62e556db4f7b6 + symbol_table: 94c3952749ff384b298cc1bddaae404acf571029e7f6489b4eef469f19f62238 diff --git a/tests/expectations/compiler/compiler/integers/u128/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/u128/console_assert.leo.out new file mode 100644 index 0000000000..b57fe23a95 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5c6120ae963f4518dfbcf01566c85e1414ed347b18ca65dcbc03ff3addfb8ea + initial_ast: 9535113b7886c8cebe6d0423d559c1107bfb2f5d560b41ab51eb68afc4180fa8 + symbol_table: 505948f27498d87c22e63417f71cf1f3047085a4cdb257ef7aedf3c86b238ebe diff --git a/tests/expectations/compiler/compiler/integers/u128/div.leo.out b/tests/expectations/compiler/compiler/integers/u128/div.leo.out new file mode 100644 index 0000000000..f31e2bf793 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 55766cfb9cd3036356494aed386f6369a46eaa459e732b4b125adc71cc9487de + initial_ast: d77ba4c656d396e762cc7b652f854735edcb9019de3fa5800165d1476b5929ca + symbol_table: 678f356035aea39bec07a37d127fab99dfb8f8aaa118bf1454f3fb40e2943c2c diff --git a/tests/expectations/compiler/compiler/integers/u128/eq.leo.out b/tests/expectations/compiler/compiler/integers/u128/eq.leo.out new file mode 100644 index 0000000000..2cb2586af3 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5c6120ae963f4518dfbcf01566c85e1414ed347b18ca65dcbc03ff3addfb8ea + initial_ast: 4632cfe04631709c795c39b8fc63ee1db825726e02347f15f589fee687fdc791 + symbol_table: 59a92879cd9e8632b6ad1780ce4f687f9b9b0b142c38b31586578918c41690e7 diff --git a/tests/expectations/compiler/compiler/integers/u128/ge.leo.out b/tests/expectations/compiler/compiler/integers/u128/ge.leo.out new file mode 100644 index 0000000000..d102c6ce04 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5c6120ae963f4518dfbcf01566c85e1414ed347b18ca65dcbc03ff3addfb8ea + - initial_input_ast: 75784559839daa43fb68b6c0cb92764cbd5c8f1240b91c92d85a28f514020833 + initial_ast: 2578fe60f8d9f8283e1f9b7b8c1b64b16b25fe4ad484bb83991fc40705e4744b + symbol_table: d62e5ca69883dfd4f502dd4b8ab0436e677a9871322a3cc33c0d51f3138760be diff --git a/tests/expectations/compiler/compiler/integers/u128/gt.leo.out b/tests/expectations/compiler/compiler/integers/u128/gt.leo.out new file mode 100644 index 0000000000..fcc6a54ec9 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5c6120ae963f4518dfbcf01566c85e1414ed347b18ca65dcbc03ff3addfb8ea + - initial_input_ast: 1d133b7dd2d597ec021f43ae433fa5ff220337500455acd2265714eee6381ad2 + initial_ast: 76f90700688faba8a549e6dde713d0e261ad7d63f7168391a17b3338c8b2868b + symbol_table: 4b855a9a384880ddddc5d93d16ae4e34c5b85a506426f89f3c545314cd58d86f diff --git a/tests/expectations/compiler/compiler/integers/u128/le.leo.out b/tests/expectations/compiler/compiler/integers/u128/le.leo.out new file mode 100644 index 0000000000..8e987e7a1c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5c6120ae963f4518dfbcf01566c85e1414ed347b18ca65dcbc03ff3addfb8ea + - initial_input_ast: 2065df069397c90cd8c969b938bdca0867d1df06a37f8a7d7a49af96ea38019d + initial_ast: 553b327ace11338792481c03e210473142f5be02d5589f13ac802808f3c020e4 + symbol_table: 3d7f361f2ce4e99acbc47dfef2480dec0ce298a27a34769ddb8c1813b6581024 diff --git a/tests/expectations/compiler/compiler/integers/u128/lt.leo.out b/tests/expectations/compiler/compiler/integers/u128/lt.leo.out new file mode 100644 index 0000000000..4807854423 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5c6120ae963f4518dfbcf01566c85e1414ed347b18ca65dcbc03ff3addfb8ea + - initial_input_ast: 0c9b9da62df2b51ef9ebb33821a7ec04e9652ce4e9c21c5153d48f5855af806e + initial_ast: 393f184a4aa1f02ffd77e578ed33f5f46dc59a7650594f834df1d6fe63bddd4b + symbol_table: 3209a6ec1b0ac01f379965c80861af6d65fae8dfa0f20a726dfaf89e0ccb1cf5 diff --git a/tests/expectations/compiler/compiler/integers/u128/max.leo.out b/tests/expectations/compiler/compiler/integers/u128/max.leo.out new file mode 100644 index 0000000000..e03c926f73 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 96408434c5346b281d71c5ed7c9879b40054e19d067d73315db40b4564457d8d + symbol_table: 4edd22a9c1a03a2c2bd62bb1d7d907e8afe5cdae6dbe0f8ac4711fd69bb5407b diff --git a/tests/expectations/compiler/compiler/integers/u128/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/u128/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u128/min.leo.out b/tests/expectations/compiler/compiler/integers/u128/min.leo.out new file mode 100644 index 0000000000..c34bf55d32 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 8e7935566d2178a01bbb3b0cb8b69299be6794c7f50c949273f3cde1af78a41a + symbol_table: bf6b5da28a9adbc7dfb1b3b5aef006a6c040bb8eb94e142262611a131fcbec5e diff --git a/tests/expectations/compiler/compiler/integers/u128/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/u128/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u128/mul.leo.out b/tests/expectations/compiler/compiler/integers/u128/mul.leo.out new file mode 100644 index 0000000000..e674e6707f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ca8e32e5d6116b1dcb308c569c4584297586cd605efe92b41ccad1975151eff4 + initial_ast: 16b3f86011be837f91504200bd833ad60e299341e7265b25d3b5927ff5e194ae + symbol_table: dd0098712d873cf92c367f89af907dad778d2b2b2f2e251d0eda2237be727c6c diff --git a/tests/expectations/compiler/compiler/integers/u128/ne.leo.out b/tests/expectations/compiler/compiler/integers/u128/ne.leo.out new file mode 100644 index 0000000000..7f49829311 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b5c6120ae963f4518dfbcf01566c85e1414ed347b18ca65dcbc03ff3addfb8ea + - initial_input_ast: a31b59bfd025f5562ede8f5e6f01ba3724dc9340e1798beaded0aee94682956b + initial_ast: 79cb672a44ebd3117df916f3f7c1c2071373c5f4c00cdf7a70a841d95715099a + symbol_table: b6d4ce61a5c1ee27261f3609a47c6b27daa5b5206e1bff4d50fa5d53c283aad4 diff --git a/tests/expectations/compiler/compiler/integers/u128/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/u128/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u128/sub.leo.out b/tests/expectations/compiler/compiler/integers/u128/sub.leo.out new file mode 100644 index 0000000000..a5a048e477 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ca31f79f44f6f99c64ba44c0e727428d042eb9368e222e1cd182db88cca34d09 + initial_ast: c33c431b0790078ddc42936202998d235ae5565e6342cfe78735a2d671a11a74 + symbol_table: f5fc54506951419ceced5b81e17531ffe879b8665f340165ce00ee93a6375b0f diff --git a/tests/expectations/compiler/compiler/integers/u128/ternary.leo.out b/tests/expectations/compiler/compiler/integers/u128/ternary.leo.out new file mode 100644 index 0000000000..7c226c7a8b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8e68c80562642f5f107fb42876a1a0bed112f771860a69222d65bd374ec8c7d6 + - initial_input_ast: d4fbdc7ebdf3ab8e4f3e42172cb039bd4fec87dc2ed0218e756b59af6334e3dc + initial_ast: 48ce4d88c11aa33d4501e3c1d5f2afcc8828142be4e47f6d56aa82581feba35d + symbol_table: c9775810bca18ac5d6894681231f4bdf595c637c970dbc90a23d32c8407ccd5f diff --git a/tests/expectations/compiler/compiler/integers/u16/add.leo.out b/tests/expectations/compiler/compiler/integers/u16/add.leo.out new file mode 100644 index 0000000000..01dd193790 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6f6d6764c925433e3966deefe74381d0fdd560c52a5cc48713e3c4dfb1c6c3a1 + initial_ast: d13ad9523d58746231fe88277baf3895e5015f376addd1cd168604c97d070ea3 + symbol_table: b773a3747693ac625d3346f79cc3787d155e81da2eef74e8961fa5c0b6beda9c diff --git a/tests/expectations/compiler/compiler/integers/u16/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/u16/console_assert.leo.out new file mode 100644 index 0000000000..351c56c276 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cb0e4f51087e3221ca9d60ad25194233446b1827dcbd3af17206be357599915b + initial_ast: e02364ca582a731c515f0e377e520aa98a1d03af26343198649964a58a83b552 + symbol_table: 31ea54152de57df0f234b406c8f78d84cc20dc9b998f4712ce4ac733f22b9a45 diff --git a/tests/expectations/compiler/compiler/integers/u16/div.leo.out b/tests/expectations/compiler/compiler/integers/u16/div.leo.out new file mode 100644 index 0000000000..402d298221 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 366c095f1dc13d5327fec0236867df3dd4efed80fefc990b402455be221ae3ae + initial_ast: 035fd685b9a72d17e87bf2fcd663fd88b33bea34b49e4701ff5faf2b07888bec + symbol_table: 52e163bd2142999e83b8c807c5f05d8f6dcff305472c4a4ad16c82d78be9823a diff --git a/tests/expectations/compiler/compiler/integers/u16/eq.leo.out b/tests/expectations/compiler/compiler/integers/u16/eq.leo.out new file mode 100644 index 0000000000..869a6285ef --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cb0e4f51087e3221ca9d60ad25194233446b1827dcbd3af17206be357599915b + initial_ast: bde68b439b6a035933de7565d24218cc0328fecccc5ac4a76ab5cfe39da20bdb + symbol_table: 2f35e5aa4269f54adddaa53477d4bd09d1e4a5d81068e61f5b6b5db001f5e316 diff --git a/tests/expectations/compiler/compiler/integers/u16/ge.leo.out b/tests/expectations/compiler/compiler/integers/u16/ge.leo.out new file mode 100644 index 0000000000..b69ee237bb --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cb0e4f51087e3221ca9d60ad25194233446b1827dcbd3af17206be357599915b + - initial_input_ast: 3af712fb74fec6f2a6a3025f447b4097ac848a663b809869684dd4e7c67cee94 + initial_ast: ca057147767fd087fff9bc9a45673ae6f0e0b64069cdcdbb092775f61b2e8cc9 + symbol_table: 19060c1c44e418ecc282948f304fd19959c49857d1cd93dcd2d9bf423e250f2f diff --git a/tests/expectations/compiler/compiler/integers/u16/gt.leo.out b/tests/expectations/compiler/compiler/integers/u16/gt.leo.out new file mode 100644 index 0000000000..c90af668bd --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cb0e4f51087e3221ca9d60ad25194233446b1827dcbd3af17206be357599915b + - initial_input_ast: c5aaeea8372b4a20f0224a169e17873ce833ff051f2822638e96e0e5fae152b7 + initial_ast: 861532687b12413e75cf248217296ab942a86034a4f672d80c8a98fae44d3e6f + symbol_table: e832ccf84a5e5dd9881b57a5c31de1d81ccd04e6d5c260db71d7f951ce57bc55 diff --git a/tests/expectations/compiler/compiler/integers/u16/le.leo.out b/tests/expectations/compiler/compiler/integers/u16/le.leo.out new file mode 100644 index 0000000000..d8d9c0e791 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cb0e4f51087e3221ca9d60ad25194233446b1827dcbd3af17206be357599915b + - initial_input_ast: 5e4ddfaff750bb3594818726ec94c8bfbef36dfecfbfc9b5e7ae9e08ff5b5739 + initial_ast: a717c24acfb48e555df10ae78e1cf474bd93f08ccc12ed393c7f7fdde273eddf + symbol_table: 25b8f9d647642615b54428c2f0ce4e483459712ca7d82329a680b49e4ae7f22f diff --git a/tests/expectations/compiler/compiler/integers/u16/lt.leo.out b/tests/expectations/compiler/compiler/integers/u16/lt.leo.out new file mode 100644 index 0000000000..ef204e99a8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cb0e4f51087e3221ca9d60ad25194233446b1827dcbd3af17206be357599915b + - initial_input_ast: 2042ed00f53e2028130ec5d2d04f4138cddae139face997cd49342b7dd79614f + initial_ast: 09beaea09f53d5695a181ddcd3c6966561f7e0d454ac6d47b3c312ad0a964532 + symbol_table: ef70c4f5b504ad5c38821e26a2d6be275e2de4148dfec29b73d3b1eaba5044b1 diff --git a/tests/expectations/compiler/compiler/integers/u16/max.leo.out b/tests/expectations/compiler/compiler/integers/u16/max.leo.out new file mode 100644 index 0000000000..ea83892f82 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 6f930396aed880d8f11754bd50dc386886b1bb8e365adcfb7d392b9f8b6a8486 + symbol_table: 69f776332dcb4ed2daf222bb7796116d60df76d7bba3686891fa352fcfbe1fcc diff --git a/tests/expectations/compiler/compiler/integers/u16/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/u16/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u16/min.leo.out b/tests/expectations/compiler/compiler/integers/u16/min.leo.out new file mode 100644 index 0000000000..95f99922e1 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 1f23f738842dea366da04b00afbb13d03dd697a5e5002a735de03426c18a4477 + symbol_table: 406df287bf9772b5916e8effb291efe4c4c7b182f25e9ffdc8d8a99abcd96d85 diff --git a/tests/expectations/compiler/compiler/integers/u16/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/u16/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u16/mul.leo.out b/tests/expectations/compiler/compiler/integers/u16/mul.leo.out new file mode 100644 index 0000000000..e57de8368f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 27db318ee991561d9cebe27f27dceeec5c9c8a63ab462313e344e3c1158aa758 + initial_ast: 94853b2f87472d206ee46e6b201f46687d6f62edf9e9820d52bbb0f82f3d0473 + symbol_table: f7142c34960bdd46528d63022dc60428b00ff0183d2c480ef72a8c8b61a13127 diff --git a/tests/expectations/compiler/compiler/integers/u16/ne.leo.out b/tests/expectations/compiler/compiler/integers/u16/ne.leo.out new file mode 100644 index 0000000000..a261a42b5a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cb0e4f51087e3221ca9d60ad25194233446b1827dcbd3af17206be357599915b + - initial_input_ast: 5e74a501b8e15c71c521d8a3d838bfe91ce8f37fa9bdaf79342c755564ea086a + initial_ast: da385165a8eab1398a32e2f13a9f8d5432418a1865081095ac6f5dfb70c14a81 + symbol_table: 1d5a378efa184ef720922e0431978a779b5258838d7daaa4447d773de74b5726 diff --git a/tests/expectations/compiler/compiler/integers/u16/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/u16/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u16/pow.leo.out b/tests/expectations/compiler/compiler/integers/u16/pow.leo.out new file mode 100644 index 0000000000..af284fab50 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/pow.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3454670db4ae2ae2274a879a456ea7b2ff6b89d119686417577495d5bc7a2d1a + initial_ast: 8056d04b69ac0a9b1ac37b958a0e870e90d51c3504c91b02d0d11764719314ee + symbol_table: 615d122bb3c4eabb96bb46044fde38d0ea81d56fe4ea0db9adbcdb74fab95258 diff --git a/tests/expectations/compiler/compiler/integers/u16/sub.leo.out b/tests/expectations/compiler/compiler/integers/u16/sub.leo.out new file mode 100644 index 0000000000..e403eab726 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1e4b846165f77f1b45c8340f097596100a0513f2e09fb7847143c693dc4ab378 + initial_ast: 59710b3c4ec87ec2daf9f50fcc9db3de897e67fa48b1c22c87974a03fe091dba + symbol_table: bc40ab38ded0949abbd0d2b28ad41957043f09fadcd1522424674bc795fc4027 diff --git a/tests/expectations/compiler/compiler/integers/u16/ternary.leo.out b/tests/expectations/compiler/compiler/integers/u16/ternary.leo.out new file mode 100644 index 0000000000..ed93e1a0d0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a6d199a58056771f9b6da733f16030fe0b68f0d974ed0dcd093bec41a98063d4 + - initial_input_ast: c91db248acde5649f26d3d94264f944c1988fbecd352c71419f0021adc3c46f3 + initial_ast: 04034ba297a82f21f48a25276fa6d5c9106d3eac72b299e5093f177290af4731 + symbol_table: df9448449a94c3bc09affc5870c1749d4826072037d1fbe156feab39438a7bec diff --git a/tests/expectations/compiler/compiler/integers/u32/add.leo.out b/tests/expectations/compiler/compiler/integers/u32/add.leo.out new file mode 100644 index 0000000000..336dd0eb0e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7900982a0b59b180658c9c973f14c0f43f64e6c26ccf3dc72ccabbe97e6f7c1c + initial_ast: 3318610a645697ba0cf76b91802555e91cb10a899bfb5d5d60be8d2dbe33f417 + symbol_table: 25778e3ab23f629380da9c2cdb6f1e865643e9361fd650eabdf6768375fc0717 diff --git a/tests/expectations/compiler/compiler/integers/u32/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/u32/console_assert.leo.out new file mode 100644 index 0000000000..f26634ad1e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0d8bd4140882c8076fc6f31339195bd136210fa8468de7232564be89d208c570 + initial_ast: 4bb9dc7b5c0aba166b674ce6a12db07285f50a3f95f62f3aad2555ff4f28d00c + symbol_table: 8f03b54e860293c2c5fd9b3bb1199e1691e582712f7f5e5f462c1f7a2fb0d5d1 diff --git a/tests/expectations/compiler/compiler/integers/u32/div.leo.out b/tests/expectations/compiler/compiler/integers/u32/div.leo.out new file mode 100644 index 0000000000..e332e9d39a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1899a411753778ecc51ee4565405c95f5dc93e7dfc084268332a034da1a4e22a + initial_ast: b8eacde2fa3ba5a1387a57c44e8d01f0d3c3ea7f7bcfdce1c8bfc6ae54c6b873 + symbol_table: 48c50aee2e6f9f2e525cb743866ce2fc9119566076cd63d30cdb0398f328a4ba diff --git a/tests/expectations/compiler/compiler/integers/u32/eq.leo.out b/tests/expectations/compiler/compiler/integers/u32/eq.leo.out new file mode 100644 index 0000000000..8b634b4ded --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0d8bd4140882c8076fc6f31339195bd136210fa8468de7232564be89d208c570 + initial_ast: dfaa1ceed27d3270ba2cbf898a8a58eecacc2b03b0686a3a70a969baa0b5657e + symbol_table: e081f2d0bc92a375a18466c9298d728d8d2ae35a67fbedeb733ea4cd5a12409d diff --git a/tests/expectations/compiler/compiler/integers/u32/ge.leo.out b/tests/expectations/compiler/compiler/integers/u32/ge.leo.out new file mode 100644 index 0000000000..129cd29e5f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0d8bd4140882c8076fc6f31339195bd136210fa8468de7232564be89d208c570 + - initial_input_ast: 13faf6aa4d9e76c04acb1872465f0691ef01d8d604a1931bcef5a0f3337347ea + initial_ast: 1ae2161a3bc0764fb1d86a79a104ca1b3b8841735e6ed3c84f590c4824413b4f + symbol_table: 5ad082f22aed2d221d142cb3538a67c5814214bdd549b3514a369dec0b8b7922 diff --git a/tests/expectations/compiler/compiler/integers/u32/gt.leo.out b/tests/expectations/compiler/compiler/integers/u32/gt.leo.out new file mode 100644 index 0000000000..291e2bb39b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0d8bd4140882c8076fc6f31339195bd136210fa8468de7232564be89d208c570 + - initial_input_ast: 15be215647f18a1a931f198ce7d30f6805f9bac29a2b24bf7e4abff24e5d20be + initial_ast: a05820f5543534af493453036aba2b39c0ba535c363e886b2ee4a5f36843063b + symbol_table: 6a754bcc8e62a2b8e6e27fbe48a36cb72c99d81ce09e594ebc3125e402f08d0c diff --git a/tests/expectations/compiler/compiler/integers/u32/le.leo.out b/tests/expectations/compiler/compiler/integers/u32/le.leo.out new file mode 100644 index 0000000000..d8cf465da4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0d8bd4140882c8076fc6f31339195bd136210fa8468de7232564be89d208c570 + - initial_input_ast: ba4710f02a41fe30785f0bed4ef61b919be8233d0397a57e6bec110a83e7bae7 + initial_ast: c3b0397f6fd052ec4f5e45eb456e2dcb8857b9866a9621fc45c7ccca500dedde + symbol_table: e621662548365800e2cad034bcad6541940af5f5acc36dfa477554c1e72acc4f diff --git a/tests/expectations/compiler/compiler/integers/u32/lt.leo.out b/tests/expectations/compiler/compiler/integers/u32/lt.leo.out new file mode 100644 index 0000000000..986e60e9d6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0d8bd4140882c8076fc6f31339195bd136210fa8468de7232564be89d208c570 + - initial_input_ast: ea18893ff821300d48c4a7bafc0bf0b3091db8d0afa6a6061f4da66c9230befd + initial_ast: 963529b8cbbcf6b77de50868626364c8bd9905ea7f1b5b90fad6ccc6db39b60c + symbol_table: 92fe7f7727a3bd4d14e36b28ec549f7348b898845534e872faaba4e362902f0b diff --git a/tests/expectations/compiler/compiler/integers/u32/max.leo.out b/tests/expectations/compiler/compiler/integers/u32/max.leo.out new file mode 100644 index 0000000000..121cfe07e6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 87a88714a25f9124bc32febded200de6008ba9ba740f1b9d0c1279051ec4f59e + symbol_table: 6cb33ae7380c96471000854378fc11a0ac0986e2f0cc82d0b67157ea1f66375e diff --git a/tests/expectations/compiler/compiler/integers/u32/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/u32/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u32/min.leo.out b/tests/expectations/compiler/compiler/integers/u32/min.leo.out new file mode 100644 index 0000000000..a20008b5a5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: fb19403af76e535fb7f5e475e7ed33597f50119a29b4862935acc3127ea7d592 + symbol_table: ae53f8e2991eb6e1c5411e9323fe1f0a0362ed74ded446743ac7cc7b6472c685 diff --git a/tests/expectations/compiler/compiler/integers/u32/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/u32/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u32/mul.leo.out b/tests/expectations/compiler/compiler/integers/u32/mul.leo.out new file mode 100644 index 0000000000..84f5b43266 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a833192a9e0c041f1f7064d4d270e04bf2b178a2e656fd8c6f8cf5d391057a7 + initial_ast: 2da58b37514a928fee21a587d11025b9c75fdaad16e58df3f27768da3c917318 + symbol_table: a361156a49b7611d0e4b3e231b073210bc8a19a6255b966c59d3b5e1d2f51f06 diff --git a/tests/expectations/compiler/compiler/integers/u32/ne.leo.out b/tests/expectations/compiler/compiler/integers/u32/ne.leo.out new file mode 100644 index 0000000000..3ae8929f71 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0d8bd4140882c8076fc6f31339195bd136210fa8468de7232564be89d208c570 + - initial_input_ast: e729164124bc010537c8d2b51bc78e5de23cca4b79b56fa12845fdbf6e9fdf2b + initial_ast: ef066fe73ba5e22e864aed454160ba983886569dc644505f482a877539139059 + symbol_table: 737d38e0113d508ac46829d2233125443e36a78e22ff8614769821b64eb16227 diff --git a/tests/expectations/compiler/compiler/integers/u32/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/u32/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u32/sub.leo.out b/tests/expectations/compiler/compiler/integers/u32/sub.leo.out new file mode 100644 index 0000000000..867c914bf6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7a916ba3711c3e422e5a57af380dc8768fd68e0c407d6737a5848e83432fa2a4 + initial_ast: ea36165792c1165971a8baf444a9404eeb60df76ae4c901e6e28bf09a06854be + symbol_table: 7b6d3ffaf2dba4eb24b64929c9a2c756e966e822f3d3f45a05113963f22d76fd diff --git a/tests/expectations/compiler/compiler/integers/u32/ternary.leo.out b/tests/expectations/compiler/compiler/integers/u32/ternary.leo.out new file mode 100644 index 0000000000..8831dd7a33 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3cac85ec032e1af74a50f0be52f121512d2548e0db2971b227f7d286935968cd + - initial_input_ast: 31df4f8912365b8afba7a0bde5d29aa2d8ceb4d2aff5ac1e3b230777f124adbb + initial_ast: 086a87186287cb4b59a4ceda10fdc27c2ac03763928173798f6b6777b7bcc7d3 + symbol_table: 2f27d6dc05c17715b3c45e9ee6e501bfaec046241110fee1209904c92b2aa434 diff --git a/tests/expectations/compiler/compiler/integers/u64/add.leo.out b/tests/expectations/compiler/compiler/integers/u64/add.leo.out new file mode 100644 index 0000000000..4521f003a5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e716ba579037b58227d1e433d4304f99f2b2eef51f88fdc8b3086a482ee7771e + initial_ast: c905bc723dd52e21cf1decee3e4a3621ff8c44ea2c26aa082d9b3b1b7598af92 + symbol_table: c1c13f861658664abf92e0a1fc7bdc65c51458a53b7bc3810fd624bc3893d5ff diff --git a/tests/expectations/compiler/compiler/integers/u64/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/u64/console_assert.leo.out new file mode 100644 index 0000000000..aad4b15160 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0293b081f0efa060d6d6be2a41792af71a74b1a894832aef14166c5bbd242e2e + initial_ast: 5adb404fde2d01013900ecc47b94cd73f5e419b9ba5e9aefb8125b47a086b7b4 + symbol_table: 7753ab45670bf14beb7642f47b735da9c08b49839bc42ea6827bcdf965cfe1ed diff --git a/tests/expectations/compiler/compiler/integers/u64/div.leo.out b/tests/expectations/compiler/compiler/integers/u64/div.leo.out new file mode 100644 index 0000000000..0220fc532a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9f6987350c5148b7587ed453e96e575bb967b5115a1f0648764bce5b4d977c46 + initial_ast: 5f4f6989dedd2a939916cc41d2f7fa48359dd4fb41afb1b16225c4b076afd83f + symbol_table: 96d922c665c2723cb7ca22f4f416dbf9d2d76f07ce2d4ce7b3c1becc41ebc9b6 diff --git a/tests/expectations/compiler/compiler/integers/u64/eq.leo.out b/tests/expectations/compiler/compiler/integers/u64/eq.leo.out new file mode 100644 index 0000000000..5027c3dbe5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0293b081f0efa060d6d6be2a41792af71a74b1a894832aef14166c5bbd242e2e + initial_ast: 187b0249add901020f6c088c9cef3e50d40caf51f324f20c99e0b5a5f282558e + symbol_table: 89b3e14b1880e4d3ce547087df3229f7c0b20a40c6c55130b9af3f17af90fc01 diff --git a/tests/expectations/compiler/compiler/integers/u64/ge.leo.out b/tests/expectations/compiler/compiler/integers/u64/ge.leo.out new file mode 100644 index 0000000000..51b1a556ed --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0293b081f0efa060d6d6be2a41792af71a74b1a894832aef14166c5bbd242e2e + - initial_input_ast: 835fabf6828b0a76d3cef59ec709a9e084e7d05950a2307f51af0c4a7749c401 + initial_ast: 2f422e340e46c0ff819893aba777706c140b248fa90522e97588a3877cf33cf2 + symbol_table: 8f6927e31fdde67cc1f67d8f2d214bf456a1fce6ebee106656b33f717aa770f7 diff --git a/tests/expectations/compiler/compiler/integers/u64/gt.leo.out b/tests/expectations/compiler/compiler/integers/u64/gt.leo.out new file mode 100644 index 0000000000..99a3b57180 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0293b081f0efa060d6d6be2a41792af71a74b1a894832aef14166c5bbd242e2e + - initial_input_ast: 7677cedf6c5a32b8a4618cce2a2b2cd638b72a527fdce50167e73e1eee416861 + initial_ast: 85015420fced390da41a0e75a8e5467c6b9fe3f4ea58175ff10a7d92805a2d28 + symbol_table: d3fbb159afcf5d889f310c0b277b588def80246861c318632d9416532c84901e diff --git a/tests/expectations/compiler/compiler/integers/u64/le.leo.out b/tests/expectations/compiler/compiler/integers/u64/le.leo.out new file mode 100644 index 0000000000..515ed7e30d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0293b081f0efa060d6d6be2a41792af71a74b1a894832aef14166c5bbd242e2e + - initial_input_ast: cf12465991469b1b836b27e59ea32d80211248e0514092b5971b6622b19d513e + initial_ast: 7330b49553577b98618db8ca3d76164ce0da3adce00419a34e420f91b76f07c9 + symbol_table: 9c75212ccddfab209e82ced0636610b9c0b225af3a17badeb6d12b03200f9aa0 diff --git a/tests/expectations/compiler/compiler/integers/u64/lt.leo.out b/tests/expectations/compiler/compiler/integers/u64/lt.leo.out new file mode 100644 index 0000000000..686b74d420 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0293b081f0efa060d6d6be2a41792af71a74b1a894832aef14166c5bbd242e2e + - initial_input_ast: 4d94a5cd71d7a286a523db4c023a5cd8550750e443e930448d09e115aaa279a2 + initial_ast: 16f06a1c6eb5bb58e68d2fd9371307d9968b3317954fba7f9606ae7579cb4d6a + symbol_table: 22be10247e5c5f58c07b5ea7ed1dd2093561a57ef3a0c54e26799398d2dd8740 diff --git a/tests/expectations/compiler/compiler/integers/u64/max.leo.out b/tests/expectations/compiler/compiler/integers/u64/max.leo.out new file mode 100644 index 0000000000..7bc871e7d4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: 9a68721c6237689ac5745f64daa1ae94d5b1c09d32fbd9bcb3f6c1e4214388a1 + symbol_table: a7e47aec9a839e089b64e17d3dac5e110bccdf3b97b69d5e8a1a64e4a32138b2 diff --git a/tests/expectations/compiler/compiler/integers/u64/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/u64/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u64/min.leo.out b/tests/expectations/compiler/compiler/integers/u64/min.leo.out new file mode 100644 index 0000000000..97e643c4a5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: af5763b7506cd518f2ed516b901e9ab21872ec6a8bf0e99fee590f840945c4e8 + symbol_table: 9579cc0870b2c20e1ce3e47deecb81a0925d4e883403626870b125c10eceb59c diff --git a/tests/expectations/compiler/compiler/integers/u64/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/u64/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u64/mul.leo.out b/tests/expectations/compiler/compiler/integers/u64/mul.leo.out new file mode 100644 index 0000000000..e040242905 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 48c6ce857f2c1b7e105743975c53672d2d53dac5d48b006fbb7b98b7542dd5bb + initial_ast: e500900d39be1d224c09bda69a24c7a5a0ca142337b0b2766f345bff34ba8ef3 + symbol_table: 77c0adeb4d9f6bb7562a9eaf09c84d5fb4459ac432fffb77c71510cb77991662 diff --git a/tests/expectations/compiler/compiler/integers/u64/ne.leo.out b/tests/expectations/compiler/compiler/integers/u64/ne.leo.out new file mode 100644 index 0000000000..fb479e2062 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0293b081f0efa060d6d6be2a41792af71a74b1a894832aef14166c5bbd242e2e + - initial_input_ast: 96b7d29d08b195d28c72abc7cda1febaf19b1a2d1ae660f786f3e5e66041ec5e + initial_ast: b79b4fa4926e05c046a626e77313cf719ddaf7f0f0f5dd7cabbb2ed7bb882129 + symbol_table: 3243923d5a69e9bd20a247e6749255adaca834c5277061df09a8777ae0f34d2d diff --git a/tests/expectations/compiler/compiler/integers/u64/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/u64/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u64/sub.leo.out b/tests/expectations/compiler/compiler/integers/u64/sub.leo.out new file mode 100644 index 0000000000..fb75583729 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 945f0553365bda391e02276a38539f1361f6d5edadcb1673832b551528214ce9 + initial_ast: 58f6291468df71255888576a2f9e2354e6a2273bb5f8ea786b885b3d55f7f148 + symbol_table: 48f44fca9b490df0387ccac24c8e4805e634896b968559d35645288cdd720562 diff --git a/tests/expectations/compiler/compiler/integers/u64/ternary.leo.out b/tests/expectations/compiler/compiler/integers/u64/ternary.leo.out new file mode 100644 index 0000000000..5798cc5287 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 02c22a2532fd696c3f0b5e59efff10fb7f423129f2d238a845ab20e296516b1c + - initial_input_ast: 11c83531b97e6863b4dd609246fc11e071538831bd7f875d83c576068832da5f + initial_ast: e35c3f6afcb80b84ed83a5dc67aec189b652b8e0bacf3a30e0a79ddfcb5d1155 + symbol_table: 3e3b389b28b166b85423e398f80698529dbb1174326b121bb67ca4921c714aa4 diff --git a/tests/expectations/compiler/compiler/integers/u8/add.leo.out b/tests/expectations/compiler/compiler/integers/u8/add.leo.out new file mode 100644 index 0000000000..874184ac40 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/add.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bec6adce6675e69f58bd54bfd2d89ed483f5e6bb722ba9ba3889f200aaf830d1 + initial_ast: d3e9d0c07376358387b51e3315d1a39af5bfb1abb404c48eaa7d52efb18b47b9 + symbol_table: b49bebf927e5e92ff081f5c76a421532e86ac349fe85391e838879928e58c9e7 diff --git a/tests/expectations/compiler/compiler/integers/u8/console_assert.leo.out b/tests/expectations/compiler/compiler/integers/u8/console_assert.leo.out new file mode 100644 index 0000000000..680fe61342 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/console_assert.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e4fef1af04fd43972dc710e4b0e67e1b5f3b03cf0e8d1373cedfb0426b5adb7 + initial_ast: 20751dfe430a597c866badfaed7b2921a904ab826b8aa66b26d458ada65d8451 + symbol_table: c57bb0b106be07bd5f495f1623ebeb3c455437f59d583d3790cf036253a8e363 diff --git a/tests/expectations/compiler/compiler/integers/u8/div.leo.out b/tests/expectations/compiler/compiler/integers/u8/div.leo.out new file mode 100644 index 0000000000..e0334ad023 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/div.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e03a50836125b20c3b6f5c0616054b65a694fb183a135db8c600cc84a4e07636 + initial_ast: ca1cd6be979919fe71cbea8cdf24a961438753ad5993224c0637055fb151253f + symbol_table: 8f1027beea373169e2bb06491736fd4099425a4f4d3f8fcb612462982cdb0d05 diff --git a/tests/expectations/compiler/compiler/integers/u8/eq.leo.out b/tests/expectations/compiler/compiler/integers/u8/eq.leo.out new file mode 100644 index 0000000000..2feab12fd0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/eq.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e4fef1af04fd43972dc710e4b0e67e1b5f3b03cf0e8d1373cedfb0426b5adb7 + initial_ast: 30d885ad0543fccbf232d1d71696db00a27c27a62b22355512c63b14dc875b10 + symbol_table: 16076a22d3c0df71ab90df94e1ecb26ad330c02fe2536f0b5a5d1fc8a11e05c5 diff --git a/tests/expectations/compiler/compiler/integers/u8/ge.leo.out b/tests/expectations/compiler/compiler/integers/u8/ge.leo.out new file mode 100644 index 0000000000..a515b2a8f5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/ge.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e4fef1af04fd43972dc710e4b0e67e1b5f3b03cf0e8d1373cedfb0426b5adb7 + - initial_input_ast: 182fd9244fdf4702346b84168c32db25759624daa7904c9ea6b081564864e53b + initial_ast: 5da93630bbc4d14d1b1c3058d4f8b4eb7613894cee11b5f44017c2f7645580b9 + symbol_table: 1cf9efe37c13b89e2528c0257225192259dabdbb7df99c98d4ae31e74681eefe diff --git a/tests/expectations/compiler/compiler/integers/u8/gt.leo.out b/tests/expectations/compiler/compiler/integers/u8/gt.leo.out new file mode 100644 index 0000000000..d234270dfb --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/gt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e4fef1af04fd43972dc710e4b0e67e1b5f3b03cf0e8d1373cedfb0426b5adb7 + - initial_input_ast: c63bf7f9f9b98ca445f4a3fd4a419ea5f40041977aad5ff111f8319d90c25e2c + initial_ast: b92c2884a85f3142ecf972a9ea6176be505e73680b1b65710ecf56c6569019bd + symbol_table: 0f19f2bdf03fa3f98d3b1b849195dee1ee2e23c968c8beab1d1106e2be74da19 diff --git a/tests/expectations/compiler/compiler/integers/u8/le.leo.out b/tests/expectations/compiler/compiler/integers/u8/le.leo.out new file mode 100644 index 0000000000..7f3e47d3e7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/le.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e4fef1af04fd43972dc710e4b0e67e1b5f3b03cf0e8d1373cedfb0426b5adb7 + - initial_input_ast: 9794cb4036879a54fc3a9cc80507c19267ed41731b2faa7a7bea8ba9226a8452 + initial_ast: ceafb55c23c6e63b2f3ad7925407f25de0be79158df464b7c0c1922a532d0a6a + symbol_table: 23d6582231481f7fe9071618585c6e81ff6f7571059cc4a2fc6deab71292ed43 diff --git a/tests/expectations/compiler/compiler/integers/u8/lt.leo.out b/tests/expectations/compiler/compiler/integers/u8/lt.leo.out new file mode 100644 index 0000000000..bca0649d02 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/lt.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e4fef1af04fd43972dc710e4b0e67e1b5f3b03cf0e8d1373cedfb0426b5adb7 + - initial_input_ast: 9a836e6f97b932a81455f105d6db0165d862ed190631b806e364f954b7d771f4 + initial_ast: abba8d388219467b05e37755b44b935d2c15918a8744f2406df19440a5547b57 + symbol_table: 929c17fba43bfee01ec4b836cbbd8bd610e30bdf4294ececb75f247fdc8f2bcc diff --git a/tests/expectations/compiler/compiler/integers/u8/max.leo.out b/tests/expectations/compiler/compiler/integers/u8/max.leo.out new file mode 100644 index 0000000000..6609721666 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/max.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: c5ee0072a1dc27a68f357ba6230dd33a4933adc49e595118dc5201f1da65c2ca + symbol_table: 9ff7adccc170c1428f3844c390027a8f9641c9f8a76ce5f0024b2c9140f45d93 diff --git a/tests/expectations/compiler/compiler/integers/u8/max_fail.leo.out b/tests/expectations/compiler/compiler/integers/u8/max_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/max_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u8/min.leo.out b/tests/expectations/compiler/compiler/integers/u8/min.leo.out new file mode 100644 index 0000000000..58c73f4a23 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/min.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3674d8249023145121ff35eb4d9e59b0ce79cda7e17f9f98b5dbaa6ba4f80cf2 + initial_ast: e6a6ed433ba124f0b7c7bb8e981b281d1e686ed818aab364f1292a6a382e417d + symbol_table: 2dd055524a0d6eefa18c3248f40c0b7934080c4ea0f8052c2da2191408d2fea1 diff --git a/tests/expectations/compiler/compiler/integers/u8/min_fail.leo.out b/tests/expectations/compiler/compiler/integers/u8/min_fail.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/min_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u8/mul.leo.out b/tests/expectations/compiler/compiler/integers/u8/mul.leo.out new file mode 100644 index 0000000000..4b5c6fbc93 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/mul.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: df3fa1351cbc1798f527ff81eeefbd149fc841f2ee50695e5215cac690af7f1a + initial_ast: f2798ebc7f2ae2e2aa68e367e099adf45df6b23bed02937891ba65b3a07e8037 + symbol_table: 89129eab1ef21cc91784b4c5d81e68012f35800778eac358efb24d56c20ef295 diff --git a/tests/expectations/compiler/compiler/integers/u8/ne.leo.out b/tests/expectations/compiler/compiler/integers/u8/ne.leo.out new file mode 100644 index 0000000000..2c5ea20b51 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/ne.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e4fef1af04fd43972dc710e4b0e67e1b5f3b03cf0e8d1373cedfb0426b5adb7 + - initial_input_ast: a6fd523cd4910b0a48a62b6ec8935805f10fbc041cfd5a8aed6899bcb3911788 + initial_ast: 6ebe8d376313ee6600097cd995a6a9add3cd274fa6b07b7171ba207ed492507e + symbol_table: 299fff014274a3fef18437e73adb0f912b453399e6149db11763f4495c735b23 diff --git a/tests/expectations/compiler/compiler/integers/u8/no_space_between_literal.leo.out b/tests/expectations/compiler/compiler/integers/u8/no_space_between_literal.leo.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/no_space_between_literal.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/compiler/compiler/integers/u8/pow.leo.out b/tests/expectations/compiler/compiler/integers/u8/pow.leo.out new file mode 100644 index 0000000000..f2904de631 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/pow.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ec515007a1c2cbe83aff0029932fe56e397a4ca82f99095abcc7fc25f4e0723f + initial_ast: df407bf5ddb9530abd7a93893785832547af32aeed789e849554c5e5c6001f5e + symbol_table: 73fe24ea2c931a693a817e2b4606430192bc0214fdb762f6db260add7ddb22d4 diff --git a/tests/expectations/compiler/compiler/integers/u8/sub.leo.out b/tests/expectations/compiler/compiler/integers/u8/sub.leo.out new file mode 100644 index 0000000000..d703798956 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/sub.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 74c3de795f0d6a8948600e20913d0798ed2017e11c2dd7bcbf2b363a9a384325 + initial_ast: 8824772363e6839d9c8c51c1a6b06769b3167c90de72d64dd45c7bd702666463 + symbol_table: ebe63398d3809fedaa38f4ada4fe18022296680cdc7d30fbcd16aa491134749c diff --git a/tests/expectations/compiler/compiler/integers/u8/ternary.leo.out b/tests/expectations/compiler/compiler/integers/u8/ternary.leo.out new file mode 100644 index 0000000000..cfe62023b8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/ternary.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7362a319261fbc9de1aec131fdd81c6c720a27871817ce18155e8c767f9f615d + - initial_input_ast: d71995f6949dab10ec87aec16bf99544c4dc9f5a492fceaef1d171f87229a2bc + initial_ast: 1e8cd8f3a6e4bdf4807dae3b416761a612be94b4c589ea5eed309c08fb8d332f + symbol_table: e80a26d28a4f36e79f1a113fc74cfc7bcf32cd54e21ba5af553b738a906de381 diff --git a/tests/expectations/compiler/compiler/mutability/cond_mut.leo.out b/tests/expectations/compiler/compiler/mutability/cond_mut.leo.out new file mode 100644 index 0000000000..5f005c3370 --- /dev/null +++ b/tests/expectations/compiler/compiler/mutability/cond_mut.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 534a7a2cf337da1dc9ea3d25dacec6390f4cdbf6b5961b481564abc44fff1442 + initial_ast: 321b2121ae376af8c6a96c8ec5999553494ad78c86897a4fd6653822b0a12cd0 + symbol_table: 2945f5477f1985cd91fc0238eda0d96ee5b5e064b5579af5e37cb8d676dbc3cb diff --git a/tests/expectations/compiler/compiler/mutability/function_input_mut.leo.out b/tests/expectations/compiler/compiler/mutability/function_input_mut.leo.out new file mode 100644 index 0000000000..d6e8d26838 --- /dev/null +++ b/tests/expectations/compiler/compiler/mutability/function_input_mut.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 534a7a2cf337da1dc9ea3d25dacec6390f4cdbf6b5961b481564abc44fff1442 + initial_ast: 146d0b07b14bda98cc11542a18811f44d5b9d4523ed413e70b4b8165b0abdc5e + symbol_table: 27a1e162691d8e54a3c88d50628e4d865bba598acdc5916aed7edf60d79e68d1 diff --git a/tests/expectations/compiler/compiler/mutability/let_mut_nested.leo.out b/tests/expectations/compiler/compiler/mutability/let_mut_nested.leo.out new file mode 100644 index 0000000000..20e531d459 --- /dev/null +++ b/tests/expectations/compiler/compiler/mutability/let_mut_nested.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 534a7a2cf337da1dc9ea3d25dacec6390f4cdbf6b5961b481564abc44fff1442 + initial_ast: 0a8a5a62c45326f3f82c478a3f656df52708620d0734d4c5f7bd03d37009a88a + symbol_table: 31926a79e803f137c80e1ee8698b50261c831ee6e83f1b09895e3d2c2b09113f diff --git a/tests/expectations/compiler/compiler/statements/all_loops.leo.out b/tests/expectations/compiler/compiler/statements/all_loops.leo.out new file mode 100644 index 0000000000..64353cdba5 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/all_loops.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0431e7bfd2506632ab038adc1a10c45951fc1f90f1b61930228ed3022006d315 + initial_ast: 1f09245fe378b972c3f2d7242c719d8bf3c163faf0578ef0e6202913f99e15c8 + symbol_table: 3f85b29e75222f03e70b83cbc2399746f23dbbeabd857acaa486db9e8076c03c diff --git a/tests/expectations/compiler/compiler/statements/assign_ternary.leo.out b/tests/expectations/compiler/compiler/statements/assign_ternary.leo.out new file mode 100644 index 0000000000..bc2fcb5fec --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/assign_ternary.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> compiler-test:3:23\n |\n 3 | function main(x: u32) {\n | ^" diff --git a/tests/expectations/compiler/compiler/statements/block.leo.out b/tests/expectations/compiler/compiler/statements/block.leo.out new file mode 100644 index 0000000000..f1ea63dfaa --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/block.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f5eb67955fff9556d758dea428c97687be661cf6ef33f8acf736e3e77d487f8 + initial_ast: b059d98aa32559b42c21d0671bdfbc6c1dfd87646479c5216e5d6db8b5f74b32 + symbol_table: ce729d406fca8cbf2bc8fea55010b163168705232be0ce9edaeff1c187269d54 diff --git a/tests/expectations/compiler/compiler/statements/chain.leo.out b/tests/expectations/compiler/compiler/statements/chain.leo.out new file mode 100644 index 0000000000..602e5b41f0 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/chain.leo.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f5eb67955fff9556d758dea428c97687be661cf6ef33f8acf736e3e77d487f8 + - initial_input_ast: 15ea6655d9cdaca2e4e57a62d0959b832e56ca7139e38bc3e3c16ad8965ee681 + - initial_input_ast: 184db3c907c6636bf2bfe0499706c93c40901d50567d9c36bfc0219fd16c0e69 + initial_ast: ed75cf6495043612c80cef662d2daf7b4c79edc5598e18226eb2212ba0315bd9 + symbol_table: 68eae40307674c0cfac9f10f03becf84fbfe9da68c0cac435d54b775e0c4618a diff --git a/tests/expectations/compiler/compiler/statements/duplicate_variable.leo.out b/tests/expectations/compiler/compiler/statements/duplicate_variable.leo.out new file mode 100644 index 0000000000..f72840a998 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/duplicate_variable.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372015]: variable `x` shadowed\n --> compiler-test:4:2\n |\n 4 | \tlet x: u8 = 1u8;\n | ^^^^^^^^^^^^^^^\nError [EAST0372015]: variable `x` shadowed\n --> compiler-test:4:2\n |\n 4 | \tlet x: u8 = 1u8;\n | ^^^^^^^^^^^^^^^" diff --git a/tests/expectations/compiler/compiler/statements/for_loop.leo.out b/tests/expectations/compiler/compiler/statements/for_loop.leo.out new file mode 100644 index 0000000000..bc2acd8ab7 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/for_loop.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f5eb67955fff9556d758dea428c97687be661cf6ef33f8acf736e3e77d487f8 + initial_ast: 7daf228c4faa18fca25d18cb1750d1a4abb51a0dea1c9f7132afb05cf4c14f60 + symbol_table: 69da3b565e7a6a957b957fa0726be3d3f849cd1c71d5d1d5bbbcf1c5620b1c07 diff --git a/tests/expectations/compiler/compiler/statements/iteration_basic.leo.out b/tests/expectations/compiler/compiler/statements/iteration_basic.leo.out new file mode 100644 index 0000000000..8c0e805b9d --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/iteration_basic.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f5eb67955fff9556d758dea428c97687be661cf6ef33f8acf736e3e77d487f8 + initial_ast: 75e3fab6f6e2b55e17ad215dfba18dad5ff64e38cb2b10b8c834dc9541d681c3 + symbol_table: 210a8b745bd95b8350226242f6b51656f817fadb90c768564b0c6f4f8dcfa706 diff --git a/tests/expectations/compiler/compiler/statements/iteration_variable.leo.out b/tests/expectations/compiler/compiler/statements/iteration_variable.leo.out new file mode 100644 index 0000000000..6603d6c391 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/iteration_variable.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f5eb67955fff9556d758dea428c97687be661cf6ef33f8acf736e3e77d487f8 + initial_ast: adca9295640ce34397d6c7514215aadc1bf9bdede3ce7c958064b99e5258979c + symbol_table: 8b6313fa019dfc473aea778b67ecf00f38110f339c9c0fb416b221994f8f9c7b diff --git a/tests/expectations/compiler/compiler/statements/multiple_returns.leo.out b/tests/expectations/compiler/compiler/statements/multiple_returns.leo.out new file mode 100644 index 0000000000..5074bd0c27 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/multiple_returns.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f5eb67955fff9556d758dea428c97687be661cf6ef33f8acf736e3e77d487f8 + - initial_input_ast: 15ea6655d9cdaca2e4e57a62d0959b832e56ca7139e38bc3e3c16ad8965ee681 + initial_ast: 6d3eff91e33e52aaed89dc8bdb928d8438f09c89ac4ddbd86615f34a27547800 + symbol_table: a57230e14da3882433b1b2f0cfa8abd32f38a6b4bd207fd87fdfbea34fc5e71d diff --git a/tests/expectations/compiler/compiler/statements/mutate.leo.out b/tests/expectations/compiler/compiler/statements/mutate.leo.out new file mode 100644 index 0000000000..6dc28b3269 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/mutate.leo.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f5eb67955fff9556d758dea428c97687be661cf6ef33f8acf736e3e77d487f8 + - initial_input_ast: 15ea6655d9cdaca2e4e57a62d0959b832e56ca7139e38bc3e3c16ad8965ee681 + initial_ast: 7a77fe2048f6c8af53d5374bb8267aa7dc7ea4c5f960a0f5a2d56009fb99abc3 + symbol_table: 6d82dfb1fcb0a50b6b18e771919dad3622d102b53b63ffa2186bc50bc0aa743c diff --git a/tests/expectations/compiler/compiler/statements/ternary_explicit_and_implicit.leo.out b/tests/expectations/compiler/compiler/statements/ternary_explicit_and_implicit.leo.out new file mode 100644 index 0000000000..7df4892c64 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/ternary_explicit_and_implicit.leo.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 86fdb64f9c593c85f97a5aae6c5e602840e5b403b1994211f280a1bc99a8ccf4 + initial_ast: e663c5c15b916eeccb03ae377d77c8ce82af4c3c666551a0dd235c79744a7428 + symbol_table: ea61603fdb0d2d3f9ed43f0b8fd044438c4f662ae0cfb97e95505b741a82ce0b diff --git a/tests/expectations/parser/parser/expression/access/call.leo.out b/tests/expectations/parser/parser/expression/access/call.leo.out new file mode 100644 index 0000000000..51bf44b889 --- /dev/null +++ b/tests/expectations/parser/parser/expression/access/call.leo.out @@ -0,0 +1,65 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x()\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: x() + - Call: + function: + Identifier: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"X()\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: X() + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(y)\\\"}\"}" + arguments: + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(y)\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x(y) + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(y, z)\\\"}\"}" + arguments: + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(y, z)\\\"}\"}" + - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(y, z)\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: "x(y, z)" + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(x, y, z)\\\"}\"}" + arguments: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(x, y, z)\\\"}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(x, y, z)\\\"}\"}" + - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x(x, y, z)\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: "x(x, y, z)" diff --git a/tests/expectations/parser/parser/expression/array_init_fail.leo.out b/tests/expectations/parser/parser/expression/array_init_fail.leo.out new file mode 100644 index 0000000000..80ea97fbc2 --- /dev/null +++ b/tests/expectations/parser/parser/expression/array_init_fail.leo.out @@ -0,0 +1,8 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [...0u8; 1]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [...0; 1]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [0; ()]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [0; (1)]\n | ^" diff --git a/tests/expectations/parser/parser/expression/array_inline_fail.leo.out b/tests/expectations/parser/parser/expression/array_inline_fail.leo.out new file mode 100644 index 0000000000..ddff3711a8 --- /dev/null +++ b/tests/expectations/parser/parser/expression/array_inline_fail.leo.out @@ -0,0 +1,9 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [,]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [,,]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [0,,]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [,0]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [,0,]\n | ^" diff --git a/tests/expectations/parser/parser/expression/binary/add.leo.out b/tests/expectations/parser/parser/expression/binary/add.leo.out new file mode 100644 index 0000000000..03df36998e --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/add.leo.out @@ -0,0 +1,378 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 1u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8+3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: 2u8+3u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 2u8+3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 + 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 + 3u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 + 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 + 2u8 + 3u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 + 2u8 + 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 - 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 - 3u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 - 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 + 2u8 - 3u8 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 + 2u8 - 3u8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 28 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 31 + col_stop: 34 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 34 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 34 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/and.leo.out b/tests/expectations/parser/parser/expression/binary/and.leo.out new file mode 100644 index 0000000000..54b86ce6b0 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/and.leo.out @@ -0,0 +1,118 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Boolean: + - "true" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: true && false + right: + Value: + Boolean: + - "false" + - span: + line_start: 1 + line_stop: 1 + col_start: 9 + col_stop: 14 + path: "" + content: true && false + op: And + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: true && false + - Binary: + left: + Value: + Boolean: + - "false" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: false&&true + right: + Value: + Boolean: + - "true" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 12 + path: "" + content: false&&true + op: And + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: false&&true + - Binary: + left: + Binary: + left: + Value: + Boolean: + - "true" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: true&&false&&true + right: + Value: + Boolean: + - "false" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 12 + path: "" + content: true&&false&&true + op: And + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: true&&false&&true + right: + Value: + Boolean: + - "true" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 18 + path: "" + content: true&&false&&true + op: And + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: true&&false&&true diff --git a/tests/expectations/parser/parser/expression/binary/div.leo.out b/tests/expectations/parser/parser/expression/binary/div.leo.out new file mode 100644 index 0000000000..b889847d4f --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/div.leo.out @@ -0,0 +1,202 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 / 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 / 1u8 + op: Div + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 / 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8/3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: 2u8/3u8 + op: Div + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 2u8/3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 / 2u8 / 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 / 2u8 / 3u8 + op: Div + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 / 2u8 / 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 / 2u8 / 3u8 + op: Div + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 / 2u8 / 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 ** 2u8 / 3u8 ** 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 ** 2u8 / 3u8 ** 4u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 ** 2u8 / 3u8 ** 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 ** 2u8 / 3u8 ** 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 21 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 / 3u8 ** 4u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 / 3u8 ** 4u8 + op: Div + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 / 3u8 ** 4u8 diff --git a/tests/expectations/parser/parser/expression/binary/eq.leo.out b/tests/expectations/parser/parser/expression/binary/eq.leo.out new file mode 100644 index 0000000000..883e31c09f --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/eq.leo.out @@ -0,0 +1,312 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 == 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 == 1u8 + op: Eq + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 == 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8==3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 6 + col_stop: 9 + path: "" + content: 2u8==3u8 + op: Eq + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 2u8==3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 20 + col_stop: 23 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 + op: Eq + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 20 + col_stop: 23 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + op: Eq + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + right: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 30 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 33 + col_stop: 36 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 36 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 40 + col_stop: 43 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 46 + col_stop: 49 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 40 + col_stop: 49 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + op: Eq + span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 49 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 + op: And + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 49 + path: "" + content: 1u8 < 2u8 == 3u8 < 4u8 && 3u8 < 4u8 == 5u8 < 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/eq_fail.leo.out b/tests/expectations/parser/parser/expression/binary/eq_fail.leo.out new file mode 100644 index 0000000000..ba9df4ea97 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/eq_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370032]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 == 2 == 3\n | ^" diff --git a/tests/expectations/parser/parser/expression/binary/exp.leo.out b/tests/expectations/parser/parser/expression/binary/exp.leo.out new file mode 100644 index 0000000000..1bcf4d306b --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/exp.leo.out @@ -0,0 +1,125 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 ** 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 ** 1u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 ** 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8**3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 6 + col_stop: 9 + path: "" + content: 2u8**3u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 2u8**3u8 + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 ** 2u8 ** 3u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 ** 2u8 ** 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 15 + col_stop: 18 + path: "" + content: 1u8 ** 2u8 ** 3u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 18 + path: "" + content: 1u8 ** 2u8 ** 3u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: 1u8 ** 2u8 ** 3u8 diff --git a/tests/expectations/parser/parser/expression/binary/gt.leo.out b/tests/expectations/parser/parser/expression/binary/gt.leo.out new file mode 100644 index 0000000000..44a4dbe21d --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/gt.leo.out @@ -0,0 +1,378 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 > 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 > 1u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 > 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8>3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: 2u8>3u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 2u8>3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 > 2u8 > 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 > 2u8 > 3u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 > 2u8 > 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 > 2u8 > 3u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 > 2u8 > 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 22 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 22 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 > 2u8 > 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 > 2u8 > 3u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 > 2u8 > 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 > 2u8 > 3u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 > 2u8 > 3u8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 22 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 22 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 28 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 31 + col_stop: 34 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 34 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 34 + path: "" + content: 1u8 + 2u8 > 3u8 + 4u8 > 5u8 + 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/gte.leo.out b/tests/expectations/parser/parser/expression/binary/gte.leo.out new file mode 100644 index 0000000000..0a17fc505c --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/gte.leo.out @@ -0,0 +1,378 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 >= 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 >= 1u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 >= 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8 >= 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 2u8 >= 3u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 2u8 >= 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 >= 2u8 >= 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 >= 2u8 >= 3u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 >= 2u8 >= 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 15 + col_stop: 18 + path: "" + content: 1u8 >= 2u8 >= 3u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: 1u8 >= 2u8 >= 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 20 + col_stop: 23 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 >= 2u8 >= 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 >= 2u8 >= 3u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 >= 2u8 >= 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 15 + col_stop: 18 + path: "" + content: 1u8 >= 2u8 >= 3u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: 1u8 >= 2u8 >= 3u8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 20 + col_stop: 23 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 30 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 33 + col_stop: 36 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 36 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 36 + path: "" + content: 1u8 + 2u8 >= 3u8 + 4u8 >= 5u8 + 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/lt.leo.out b/tests/expectations/parser/parser/expression/binary/lt.leo.out new file mode 100644 index 0000000000..dd8c2f95cf --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/lt.leo.out @@ -0,0 +1,378 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 < 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 < 1u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 < 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8<3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: 2u8<3u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 2u8<3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 < 2u8 < 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 < 2u8 < 3u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 < 2u8 < 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 < 2u8 < 3u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 < 2u8 < 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 22 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 22 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 < 2u8 < 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 < 2u8 < 3u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 < 2u8 < 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 < 2u8 < 3u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 < 2u8 < 3u8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 22 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 22 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 28 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 31 + col_stop: 34 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 34 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 34 + path: "" + content: 1u8 + 2u8 < 3u8 + 4u8 < 5u8 + 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/lte.leo.out b/tests/expectations/parser/parser/expression/binary/lte.leo.out new file mode 100644 index 0000000000..d02be6e749 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/lte.leo.out @@ -0,0 +1,378 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 <= 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 <= 1u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 <= 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8 <= 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 2u8 <= 3u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 2u8 <= 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 <= 2u8 <= 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 <= 2u8 <= 3u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 <= 2u8 <= 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 15 + col_stop: 18 + path: "" + content: 1u8 <= 2u8 <= 3u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: 1u8 <= 2u8 <= 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 20 + col_stop: 23 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 <= 2u8 <= 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 <= 2u8 <= 3u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 <= 2u8 <= 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 15 + col_stop: 18 + path: "" + content: 1u8 <= 2u8 <= 3u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: 1u8 <= 2u8 <= 3u8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 20 + col_stop: 23 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 30 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 33 + col_stop: 36 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 36 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 36 + path: "" + content: 1u8 + 2u8 <= 3u8 + 4u8 <= 5u8 + 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/mul.leo.out b/tests/expectations/parser/parser/expression/binary/mul.leo.out new file mode 100644 index 0000000000..355bfcbd1f --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/mul.leo.out @@ -0,0 +1,323 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 * 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 * 1u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 * 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8*3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: 2u8*3u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 2u8*3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 * 2u8 * 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 * 2u8 * 3u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 * 2u8 * 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 * 2u8 * 3u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 * 2u8 * 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 21 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 21 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 24 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 30 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 34 + col_stop: 37 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + op: Pow + span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 37 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 + op: Div + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 37 + path: "" + content: 1u8 ** 2u8 * 3u8 ** 4u8 / 5u8 ** 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/ne.leo.out b/tests/expectations/parser/parser/expression/binary/ne.leo.out new file mode 100644 index 0000000000..8de4fc40c6 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/ne.leo.out @@ -0,0 +1,312 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 != 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 11 + path: "" + content: 1u8 != 1u8 + op: Ne + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 != 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8!=3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 6 + col_stop: 9 + path: "" + content: 2u8!=3u8 + op: Ne + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 2u8!=3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 20 + col_stop: 23 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 + op: Ne + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 20 + col_stop: 23 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + op: Ne + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + right: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 30 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 33 + col_stop: 36 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 36 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 40 + col_stop: 43 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 46 + col_stop: 49 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 40 + col_stop: 49 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + op: Ne + span: + line_start: 1 + line_stop: 1 + col_start: 27 + col_stop: 49 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 + op: Or + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 49 + path: "" + content: 1u8 < 2u8 != 3u8 < 4u8 || 3u8 < 4u8 != 5u8 < 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/ne_fail.leo.out b/tests/expectations/parser/parser/expression/binary/ne_fail.leo.out new file mode 100644 index 0000000000..bbb63e997d --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/ne_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370032]: Could not parse the implicit value: 1.\n --> test:1:1\n |\n 1 | 1 != 2 != 3\n | ^" diff --git a/tests/expectations/parser/parser/expression/binary/or.leo.out b/tests/expectations/parser/parser/expression/binary/or.leo.out new file mode 100644 index 0000000000..4ec15c8941 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/or.leo.out @@ -0,0 +1,378 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 1u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 1u8 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 2u8+3u16 + right: + Value: + Integer: + - U16 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 9 + path: "" + content: 2u8+3u16 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 2u8+3u16 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 + 2u8 + 3u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 + 2u8 + 3u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 + 2u8 + 3u8 + right: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 + 2u8 + 3u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1u8 + 2u8 + 3u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - I8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1i8 + 2i8 - 3i8 + right: + Value: + Integer: + - I8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1i8 + 2i8 - 3i8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1i8 + 2i8 - 3i8 + right: + Value: + Integer: + - I8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1i8 + 2i8 - 3i8 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: 1i8 + 2i8 - 3i8 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Value: + Integer: + - U8 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 22 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 28 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + right: + Value: + Integer: + - U8 + - "6" + - span: + line_start: 1 + line_stop: 1 + col_start: 31 + col_stop: 34 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 34 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 34 + path: "" + content: 1u8 * 2u8 + 3u8 * 4u8 - 5u8 * 6u8 diff --git a/tests/expectations/parser/parser/expression/binary/sub.leo.out b/tests/expectations/parser/parser/expression/binary/sub.leo.out new file mode 100644 index 0000000000..00a4a02c8c --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/sub.leo.out @@ -0,0 +1,202 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 - 1u8 + right: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: 1u8 - 1u8 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 1u8 - 1u8 + - Binary: + left: + Value: + Integer: + - U16 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: 2u16-3u64 + right: + Value: + Integer: + - U64 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 6 + col_stop: 10 + path: "" + content: 2u16-3u64 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 2u16-3u64 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U32 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: 1u32 - 2u32 - 3u32 + right: + Value: + Integer: + - U32 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 12 + path: "" + content: 1u32 - 2u32 - 3u32 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 1u32 - 2u32 - 3u32 + right: + Value: + Integer: + - U32 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 15 + col_stop: 19 + path: "" + content: 1u32 - 2u32 - 3u32 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: 1u32 - 2u32 - 3u32 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: 1u8 * 2u16 - 3u32 * 4i64 + right: + Value: + Integer: + - U16 + - "2" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 11 + path: "" + content: 1u8 * 2u16 - 3u32 * 4i64 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 1u8 * 2u16 - 3u32 * 4i64 + right: + Binary: + left: + Value: + Integer: + - U32 + - "3" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 18 + path: "" + content: 1u8 * 2u16 - 3u32 * 4i64 + right: + Value: + Integer: + - I64 + - "4" + - span: + line_start: 1 + line_stop: 1 + col_start: 21 + col_stop: 25 + path: "" + content: 1u8 * 2u16 - 3u32 * 4i64 + op: Mul + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 25 + path: "" + content: 1u8 * 2u16 - 3u32 * 4i64 + op: Sub + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 25 + path: "" + content: 1u8 * 2u16 - 3u32 * 4i64 diff --git a/tests/expectations/parser/parser/expression/circuit_init_fail.leo.out b/tests/expectations/parser/parser/expression/circuit_init_fail.leo.out new file mode 100644 index 0000000000..4d5ba89431 --- /dev/null +++ b/tests/expectations/parser/parser/expression/circuit_init_fail.leo.out @@ -0,0 +1,16 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '{' @ 1:3-4\n" + - "did not consume all input: '}' @ 1:3-4\n" + - "did not consume all input: '{' @ 1:3-4\n',' @ 1:4-5\n'}' @ 1:5-6\n" + - "did not consume all input: '{' @ 1:3-4\n',' @ 1:5-6\n'}' @ 1:7-8\n" + - "did not consume all input: '{' @ 1:3-4\n',' @ 1:4-5\n',' @ 1:5-6\n',' @ 1:6-7\n'}' @ 1:7-8\n" + - "did not consume all input: '{' @ 1:3-4\n'x' @ 1:4-5\n',' @ 1:5-6\n',' @ 1:6-7\n'}' @ 1:7-8\n" + - "did not consume all input: '{' @ 1:3-4\n',' @ 1:4-5\n',' @ 1:5-6\n'x' @ 1:6-7\n'}' @ 1:7-8\n" + - "did not consume all input: '{' @ 1:3-4\n',' @ 1:4-5\n'x' @ 1:5-6\n'}' @ 1:6-7\n" + - "did not consume all input: '{' @ 1:3-4\n'x' @ 1:4-5\n':' @ 1:5-6\n'y' @ 1:6-7\n',' @ 1:7-8\n',' @ 1:8-9\n'}' @ 1:9-10\n" + - "did not consume all input: '{' @ 1:3-4\n',' @ 1:4-5\n',' @ 1:5-6\n'x' @ 1:6-7\n':' @ 1:7-8\n'y' @ 1:8-9\n'}' @ 1:9-10\n" + - "did not consume all input: '{' @ 1:3-4\n',' @ 1:4-5\n'x' @ 1:5-6\n':' @ 1:6-7\n'y' @ 1:7-8\n'}' @ 1:8-9\n" + - "did not consume all input: '{' @ 1:3-4\n'x' @ 1:4-5\n':' @ 1:5-6\n'}' @ 1:6-7\n" diff --git a/tests/expectations/parser/parser/expression/ident.leo.out b/tests/expectations/parser/parser/expression/ident.leo.out new file mode 100644 index 0000000000..329ca97a73 --- /dev/null +++ b/tests/expectations/parser/parser/expression/ident.leo.out @@ -0,0 +1,23 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x\\\"}\"}" + - Identifier: "{\"name\":\"X\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"X\\\"}\"}" + - Identifier: "{\"name\":\"xxx\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xxx\\\"}\"}" + - Identifier: "{\"name\":\"XXX\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"XXX\\\"}\"}" + - Identifier: "{\"name\":\"x1\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x1\\\"}\"}" + - Identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu32\\\"}\"}" + - Identifier: "{\"name\":\"testx\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"testx\\\"}\"}" + - Identifier: "{\"name\":\"truex\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"truex\\\"}\"}" + - Identifier: "{\"name\":\"TRUE\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"TRUE\\\"}\"}" + - Identifier: "{\"name\":\"testX\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"testX\\\"}\"}" + - Identifier: "{\"name\":\"letX\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"letX\\\"}\"}" + - Identifier: "{\"name\":\"constX\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"constX\\\"}\"}" + - Identifier: "{\"name\":\"test_test\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"test_test\\\"}\"}" + - Identifier: "{\"name\":\"self\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"self\\\"}\"}" + - Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"Self\\\"}\"}" + - Identifier: "{\"name\":\"input\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"input\\\"}\"}" + - Identifier: "{\"name\":\"selfX\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"selfX\\\"}\"}" + - Identifier: "{\"name\":\"SelfX\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"SelfX\\\"}\"}" + - Identifier: "{\"name\":\"inputX\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"inputX\\\"}\"}" diff --git a/tests/expectations/parser/parser/expression/literal/address.leo.out b/tests/expectations/parser/parser/expression/literal/address.leo.out new file mode 100644 index 0000000000..b0e997ef27 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/address.leo.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/parser/expression/literal/address_fail.leo.out b/tests/expectations/parser/parser/expression/literal/address_fail.leo.out new file mode 100644 index 0000000000..5c02de28cd --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/address_fail.leo.out @@ -0,0 +1,14 @@ +--- +namespace: Token +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\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" diff --git a/tests/expectations/parser/parser/expression/literal/address_parse.leo.out b/tests/expectations/parser/parser/expression/literal/address_parse.leo.out new file mode 100644 index 0000000000..ffb0b82fce --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/address_parse.leo.out @@ -0,0 +1,14 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9 + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 64 + path: "" + content: aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9 diff --git a/tests/expectations/parser/parser/expression/literal/bool.leo.out b/tests/expectations/parser/parser/expression/literal/bool.leo.out new file mode 100644 index 0000000000..9222f3dd49 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/bool.leo.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/parser/expression/literal/bool_parse.leo.out b/tests/expectations/parser/parser/expression/literal/bool_parse.leo.out new file mode 100644 index 0000000000..d629bc1ed6 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/bool_parse.leo.out @@ -0,0 +1,24 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Boolean: + - "true" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: "true" + - Value: + Boolean: + - "false" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: "false" diff --git a/tests/expectations/parser/parser/expression/literal/char.leo.out b/tests/expectations/parser/parser/expression/literal/char.leo.out new file mode 100644 index 0000000000..1555a1e74d --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/char.leo.out @@ -0,0 +1,57 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "''a'' @ 1:1-4" + - "''Z'' @ 1:1-4" + - "''\"'' @ 1:1-5" + - "''''' @ 1:1-5" + - "''\t'' @ 1:1-5" + - "''\r'' @ 1:1-5" + - "''\u0000'' @ 1:1-5" + - "''\u000f'' @ 1:1-8" + - "'''' @ 1:1-6" + - "''å'' @ 1:1-9" + - "''å'' @ 1:1-5" + - "''Ӡ'' @ 1:1-10" + - "''Ӡ'' @ 1:1-5" + - "''D800'' @ 1:1-11" + - "''❤'' @ 1:1-11" + - "''❤'' @ 1:1-6" + - "''😢'' @ 1:1-12" + - "''😭'' @ 1:1-7" + - "''􀀟'' @ 1:1-13" + - "''*'' @ 1:1-7" + - "''\u007f'' @ 1:1-7" + - "''\u0000'' @ 1:1-7" + - "''\u0001'' @ 1:1-7" + - "''\u0002'' @ 1:1-7" + - "''\u0003'' @ 1:1-7" + - "''\u0004'' @ 1:1-7" + - "''\u0005'' @ 1:1-7" + - "''\u0006'' @ 1:1-7" + - "''\u0007'' @ 1:1-7" + - "''\u0010'' @ 1:1-7" + - "''\u0011'' @ 1:1-7" + - "''\u0012'' @ 1:1-7" + - "''\u0013'' @ 1:1-7" + - "''\u0014'' @ 1:1-7" + - "''\u0015'' @ 1:1-7" + - "''\u0016'' @ 1:1-7" + - "''\u0017'' @ 1:1-7" + - "'' '' @ 1:1-7" + - "''!'' @ 1:1-7" + - "''\"'' @ 1:1-7" + - "''#'' @ 1:1-7" + - "''$'' @ 1:1-7" + - "''%'' @ 1:1-7" + - "''&'' @ 1:1-7" + - "''''' @ 1:1-7" + - "''0'' @ 1:1-7" + - "''1'' @ 1:1-7" + - "''2'' @ 1:1-7" + - "''3'' @ 1:1-7" + - "''4'' @ 1:1-7" + - "''5'' @ 1:1-7" + - "''6'' @ 1:1-7" + - "''7'' @ 1:1-7" diff --git a/tests/expectations/parser/parser/expression/literal/char_fail.leo.out b/tests/expectations/parser/parser/expression/literal/char_fail.leo.out new file mode 100644 index 0000000000..2f17e3ad5f --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/char_fail.leo.out @@ -0,0 +1,51 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370030]: Could not lex the following content: `\\`." + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370030]: Could not lex the following content: `\\n`." + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370031]: Expected a valid hex character but found `'`." + - "Error [EPAR0370031]: Expected a valid hex character but found `'`." + - "Error [EPAR0370031]: Expected a valid hex character but found `9A`." + - "Error [EPAR0370031]: Expected a valid hex character but found `7g`." + - "Error [EPAR0370031]: Expected a valid hex character but found `80`." + - "Error [EPAR0370031]: Expected a valid hex character but found `c1`." + - "Error [EPAR0370031]: Expected a valid hex character but found `c2`." + - "Error [EPAR0370031]: Expected a valid hex character but found `DF`." + - "Error [EPAR0370031]: Expected a valid hex character but found `C0`." + - "Error [EPAR0370031]: Expected a valid hex character but found `e0`." + - "Error [EPAR0370031]: Expected a valid hex character but found `9f`." + - "Error [EPAR0370026]: Expected a closed char but found `a`." + - "Error [EPAR0370024]: Expected a valid escape character but found `a`." + - "Error [EPAR0370024]: Expected a valid escape character but found `z`." + - "Error [EPAR0370024]: Expected a valid escape character but found `A`." + - "Error [EPAR0370024]: Expected a valid escape character but found `Z`." + - "Error [EPAR0370024]: Expected a valid escape character but found `1`." + - "Error [EPAR0370024]: Expected a valid escape character but found `9`." + - "Error [EPAR0370024]: Expected a valid escape character but found `*`." + - "Error [EPAR0370031]: Expected a valid hex character but found `'`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `'`." + - "Error [EPAR0370026]: Expected a closed char but found `\t`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `z`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `1`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `}`." + - "Error [EPAR0370026]: Expected a closed char but found `🦀`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `1`." + - "Error [EPAR0370026]: Expected a closed char but found `🦀`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `6`." + - "Error [EPAR0370033]: There was no closing `}` after a escaped unicode `af🦀'`." + - "Error [EPAR0370033]: There was no closing `}` after a escaped unicode `2764z'`." + - "Error [EPAR0370031]: Expected a valid hex character but found `276g`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `9`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `0`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `0`." + - "Error [EPAR0370035]: The escaped unicode char `110000` is greater than 0x10FFFF." + - "Error [EPAR0370034]: The escaped unicode char `1234567890` is not within valid length of [1, 6]." + - "Error [EPAR0370026]: Expected a closed char but found `򻮻`." + - "Error [EPAR0370026]: Expected a closed char but found `😭`." + - "Error [EPAR0370044]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/expression/literal/char_parse.leo.out b/tests/expectations/parser/parser/expression/literal/char_parse.leo.out new file mode 100644 index 0000000000..3d84a2cece --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/char_parse.leo.out @@ -0,0 +1,55 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "''a'' @ 1:1-4" + - "''Z'' @ 1:1-4" + - "''\"'' @ 1:1-5" + - "''\t'' @ 1:1-5" + - "''\r'' @ 1:1-5" + - "''\u0000'' @ 1:1-5" + - "''\u000f'' @ 1:1-8" + - "'''' @ 1:1-6" + - "''å'' @ 1:1-9" + - "''å'' @ 1:1-5" + - "''Ӡ'' @ 1:1-10" + - "''Ӡ'' @ 1:1-5" + - "''❤'' @ 1:1-11" + - "''❤'' @ 1:1-6" + - "''😢'' @ 1:1-12" + - "''😭'' @ 1:1-7" + - "''􀀟'' @ 1:1-13" + - "''*'' @ 1:1-7" + - "''\u007f'' @ 1:1-7" + - "''\u0000'' @ 1:1-7" + - "''\u0001'' @ 1:1-7" + - "''\u0002'' @ 1:1-7" + - "''\u0003'' @ 1:1-7" + - "''\u0004'' @ 1:1-7" + - "''\u0005'' @ 1:1-7" + - "''\u0006'' @ 1:1-7" + - "''\u0007'' @ 1:1-7" + - "''\u0010'' @ 1:1-7" + - "''\u0011'' @ 1:1-7" + - "''\u0012'' @ 1:1-7" + - "''\u0013'' @ 1:1-7" + - "''\u0014'' @ 1:1-7" + - "''\u0015'' @ 1:1-7" + - "''\u0016'' @ 1:1-7" + - "''\u0017'' @ 1:1-7" + - "'' '' @ 1:1-7" + - "''!'' @ 1:1-7" + - "''\"'' @ 1:1-7" + - "''#'' @ 1:1-7" + - "''$'' @ 1:1-7" + - "''%'' @ 1:1-7" + - "''&'' @ 1:1-7" + - "''''' @ 1:1-7" + - "''0'' @ 1:1-7" + - "''1'' @ 1:1-7" + - "''2'' @ 1:1-7" + - "''3'' @ 1:1-7" + - "''4'' @ 1:1-7" + - "''5'' @ 1:1-7" + - "''6'' @ 1:1-7" + - "''7'' @ 1:1-7" diff --git a/tests/expectations/parser/parser/expression/literal/comment.leo.out b/tests/expectations/parser/parser/expression/literal/comment.leo.out new file mode 100644 index 0000000000..bc50235bda --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/comment.leo.out @@ -0,0 +1,7 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: {} diff --git a/tests/expectations/parser/parser/expression/literal/comment_fail.leo.out b/tests/expectations/parser/parser/expression/literal/comment_fail.leo.out new file mode 100644 index 0000000000..7507dd35ed --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/comment_fail.leo.out @@ -0,0 +1,15 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370028]: Empty block comment." + - "Error [EPAR0370029]: Block comment does not close with content: `/* test`." + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '/'\n --> test:1:1\n |\n 1 | / /\n | ^" + - "Error [EPAR0370029]: Block comment does not close with content: `/*/`." + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '*'\n --> test:1:1\n |\n 1 | */\n | ^" + - "Error [EPAR0370030]: Could not lex the following content: `🦀**/`." + - "Error [EPAR0370030]: Could not lex the following content: `🦀*/`." + - "Error [EPAR0370029]: Block comment does not close with content: `/*🦀/`." + - "Error [EPAR0370029]: Block comment does not close with content: `/**🦀`." + - "Error [EPAR0370029]: Block comment does not close with content: `/*🦀`." + - "Error [EPAR0370029]: Block comment does not close with content: `/*/*`." diff --git a/tests/expectations/parser/parser/expression/literal/formatted_string.leo.out b/tests/expectations/parser/parser/expression/literal/formatted_string.leo.out new file mode 100644 index 0000000000..47fddf9292 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/formatted_string.leo.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/parser/expression/literal/group.leo.out b/tests/expectations/parser/parser/expression/literal/group.leo.out new file mode 100644 index 0000000000..2f2957cf64 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/group.leo.out @@ -0,0 +1,714 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Group: + Tuple: + x: SignHigh + y: Inferred + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: "(+, _)group" + - Value: + Group: + Tuple: + x: Inferred + y: SignLow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: "(_, -)group" + - Value: + Group: + Tuple: + x: SignHigh + y: SignLow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: "(+, -)group" + - Value: + Group: + Tuple: + x: SignLow + y: SignHigh + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: "(-, +)group" + - Value: + Group: + Tuple: + x: SignHigh + y: SignHigh + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: "(+, +)group" + - Value: + Group: + Tuple: + x: SignLow + y: SignLow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: "(-, -)group" + - Value: + Group: + Tuple: + x: Inferred + y: Inferred + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: "(_, _)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123,-456)group" + y: + Number: + - "-456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(123,-456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(123,-456)group" + - Value: + Group: + Tuple: + x: + Number: + - "-123" + - span: + line_start: 1 + line_stop: 1 + col_start: 3 + col_stop: 6 + path: "" + content: "(-123,456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(-123,456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(-123,456)group" + - Value: + Group: + Tuple: + x: + Number: + - "-123" + - span: + line_start: 1 + line_stop: 1 + col_start: 3 + col_stop: 6 + path: "" + content: "(-123,456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(-123,456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(-123,456)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, _)group" + y: Inferred + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(123, _)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, -)group" + y: SignLow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(123, -)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, -)group" + y: SignLow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(123, -)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, +)group" + y: SignHigh + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(123, +)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, +)group" + y: SignHigh + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(123, +)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, -)group" + y: SignLow + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(123, -)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, _)group" + y: Inferred + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(123, _)group" + - Value: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: "(+, 345)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(+, 345)group" + - Value: + Group: + Tuple: + x: Inferred + y: + Number: + - "345" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: "(_, 345)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(_, 345)group" + - Value: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: "(+, 345)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(+, 345)group" + - Value: + Group: + Tuple: + x: SignLow + y: + Number: + - "345" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: "(-, 345)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(-, 345)group" + - Value: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: "(+, 345)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(+, 345)group" + - Value: + Group: + Tuple: + x: SignLow + y: + Number: + - "345" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: "(-, 345)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(-, 345)group" + - Value: + Group: + Tuple: + x: Inferred + y: + Number: + - "345" + - span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: "(_, 345)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: "(_, 345)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, 456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(123, 456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(123, 456)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, 456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(123, 456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(123, 456)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, 456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(123, 456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(123, 456)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, 456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(123, 456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(123, 456)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, 456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(123, 456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(123, 456)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, 456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(123, 456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(123, 456)group" + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "(123, 456)group" + y: + Number: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 10 + path: "" + content: "(123, 456)group" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "(123, 456)group" + - Value: + Group: + Single: + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 1group + - Unary: + inner: + Value: + Group: + Single: + - "1" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 8 + path: "" + content: "-1group" + op: Negate + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: "-1group" diff --git a/tests/expectations/parser/parser/expression/literal/group_fail.leo.out b/tests/expectations/parser/parser/expression/literal/group_fail.leo.out new file mode 100644 index 0000000000..bb68ddb14e --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/group_fail.leo.out @@ -0,0 +1,16 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:1\n |\n 1 | ()group\n | ^^" + - "Error [EPAR0370032]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123)group\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ','\n --> test:1:2\n |\n 1 | (,)group\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '+'\n --> test:1:2\n |\n 1 | (+, -,)group\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ','\n --> test:1:2\n |\n 1 | (,+, -)group\n | ^" + - "Error [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:1\n |\n 1 | (x,y)group\n | ^^^^^" + - "Error [EPAR0370032]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456u8)group\n | ^^^" + - "Error [EPAR0370032]: 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:10\n |\n 1 | (123, 456) group\n | ^" + - "Error [EPAR0370032]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, )group\n | ^^^" + - "Error [EPAR0370032]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456, 789)group\n | ^^^" + - "Error [EPAR0370032]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456)bool\n | ^^^" diff --git a/tests/expectations/parser/parser/expression/literal/int.leo.out b/tests/expectations/parser/parser/expression/literal/int.leo.out new file mode 100644 index 0000000000..ccac03f213 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int.leo.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/parser/expression/literal/int_fail.leo.out b/tests/expectations/parser/parser/expression/literal/int_fail.leo.out new file mode 100644 index 0000000000..de9048e19e --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_fail.leo.out @@ -0,0 +1,7 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370036]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370036]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370036]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/field.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/field.leo.out new file mode 100644 index 0000000000..2b86197922 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/field.leo.out @@ -0,0 +1,1055 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Field: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 123field + - Value: + Field: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 123field + - Value: + Field: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 456field + - "" + - Value: + Field: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 86 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802field + - Value: + Field: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 406 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802field + - Value: + Field: + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 340130024field + - Value: + Field: + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 158951116field + - Value: + Field: + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 155529659field + - Value: + Field: + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 642023166field + - Value: + Field: + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 228481736field + - Value: + Field: + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 469712960field + - Value: + Field: + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 929437719field + - Value: + Field: + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 721072814field + - Value: + Field: + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 363254789field + - Value: + Field: + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 906732565field + - Value: + Field: + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 288246391field + - Value: + Field: + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 724940549field + - Value: + Field: + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 487101620field + - Value: + Field: + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 261373583field + - Value: + Field: + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 891163927field + - Value: + Field: + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 743967544field + - Value: + Field: + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 8372586field + - Value: + Field: + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 461793278field + - Value: + Field: + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 806307045field + - Value: + Field: + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 122764546field + - Value: + Field: + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 356336181field + - Value: + Field: + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 158370903field + - Value: + Field: + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 774460877field + - Value: + Field: + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 557174131field + - Value: + Field: + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 492401267field + - Value: + Field: + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 893445620field + - Value: + Field: + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 957757048field + - Value: + Field: + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 721540649field + - Value: + Field: + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 390746493field + - Value: + Field: + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 211251725field + - Value: + Field: + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 938266114field + - Value: + Field: + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 156985870field + - Value: + Field: + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 703831126field + - Value: + Field: + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 729964155field + - Value: + Field: + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 988151305field + - Value: + Field: + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 320872435field + - Value: + Field: + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 719287167field + - Value: + Field: + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 152289486field + - Value: + Field: + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 740067975field + - Value: + Field: + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 728627816field + - Value: + Field: + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 385008978field + - Value: + Field: + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 553967635field + - Value: + Field: + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 71980713field + - Value: + Field: + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 519444716field + - Value: + Field: + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 116499965field + - Value: + Field: + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 717422268field + - Value: + Field: + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 18966279field + - Value: + Field: + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 22458638field + - Value: + Field: + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 857282620field + - Value: + Field: + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 920675898field + - Value: + Field: + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 762235516field + - Value: + Field: + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 469018377field + - Value: + Field: + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 199986521field + - Value: + Field: + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 536679358field + - Value: + Field: + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 591399452field + - Value: + Field: + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 83083158field + - Value: + Field: + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 599449051field + - Value: + Field: + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 445442318field + - Value: + Field: + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 585486590field + - Value: + Field: + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 209278800field + - Value: + Field: + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 873568117field + - Value: + Field: + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 664470940field + - Value: + Field: + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 465262783field + - Value: + Field: + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 605652874field + - Value: + Field: + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 376803940field + - Value: + Field: + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 965247040field + - Value: + Field: + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 598474509field + - Value: + Field: + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 845119918field + - Value: + Field: + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 648159133field + - Value: + Field: + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 669051032field + - Value: + Field: + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 800600261field + - Value: + Field: + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 434689764field + - Value: + Field: + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 520060080field + - Value: + Field: + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 804659385field + - Value: + Field: + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 537828058field + - Value: + Field: + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 716600292field + - Value: + Field: + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 387020273field + - Value: + Field: + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 199375617field + - Value: + Field: + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 680337189field + - Value: + Field: + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 818479931field + - Value: + Field: + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 893693281field + - Value: + Field: + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 87377802field + - Value: + Field: + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 84699261field + - Value: + Field: + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 292826090field + - Value: + Field: + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 569171405field + - Value: + Field: + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 387436237field + - Value: + Field: + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 150682190field + - Value: + Field: + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 888770419field + - Value: + Field: + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 824696431field + - Value: + Field: + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 765659803field + - Value: + Field: + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 270163693field + - Value: + Field: + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 427940240field + - Value: + Field: + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 504997332field + - Value: + Field: + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 337808338field + - Value: + Field: + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 907200008field + - Value: + Field: + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 757177889field + - Value: + Field: + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 696697188field + - Value: + Field: + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 41376051field + - Value: + Field: + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 496293518field + - Value: + Field: + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 251218820field diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i128.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/i128.leo.out new file mode 100644 index 0000000000..a6a0b6fd6e --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i128.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I128 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 123i128 + - Value: + Integer: + - I128 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 123i128 + - Value: + Integer: + - I128 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 456i128 + - Value: + Integer: + - I128 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 85 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802i128 + - Value: + Integer: + - I128 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 405 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i128 + - Value: + Integer: + - I128 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 340130024i128 + - Value: + Integer: + - I128 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 158951116i128 + - Value: + Integer: + - I128 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 155529659i128 + - Value: + Integer: + - I128 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 642023166i128 + - Value: + Integer: + - I128 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 228481736i128 + - Value: + Integer: + - I128 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 469712960i128 + - Value: + Integer: + - I128 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 929437719i128 + - Value: + Integer: + - I128 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 721072814i128 + - Value: + Integer: + - I128 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 363254789i128 + - Value: + Integer: + - I128 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 906732565i128 + - Value: + Integer: + - I128 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 288246391i128 + - Value: + Integer: + - I128 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 724940549i128 + - Value: + Integer: + - I128 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 487101620i128 + - Value: + Integer: + - I128 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 261373583i128 + - Value: + Integer: + - I128 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 891163927i128 + - Value: + Integer: + - I128 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 743967544i128 + - Value: + Integer: + - I128 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 8372586i128 + - Value: + Integer: + - I128 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 461793278i128 + - Value: + Integer: + - I128 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 806307045i128 + - Value: + Integer: + - I128 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 122764546i128 + - Value: + Integer: + - I128 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 356336181i128 + - Value: + Integer: + - I128 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 158370903i128 + - Value: + Integer: + - I128 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 774460877i128 + - Value: + Integer: + - I128 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 557174131i128 + - Value: + Integer: + - I128 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 492401267i128 + - Value: + Integer: + - I128 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 893445620i128 + - Value: + Integer: + - I128 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 957757048i128 + - Value: + Integer: + - I128 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 721540649i128 + - Value: + Integer: + - I128 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 390746493i128 + - Value: + Integer: + - I128 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 211251725i128 + - Value: + Integer: + - I128 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 938266114i128 + - Value: + Integer: + - I128 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 156985870i128 + - Value: + Integer: + - I128 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 703831126i128 + - Value: + Integer: + - I128 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 729964155i128 + - Value: + Integer: + - I128 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 988151305i128 + - Value: + Integer: + - I128 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 320872435i128 + - Value: + Integer: + - I128 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 719287167i128 + - Value: + Integer: + - I128 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 152289486i128 + - Value: + Integer: + - I128 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 740067975i128 + - Value: + Integer: + - I128 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 728627816i128 + - Value: + Integer: + - I128 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 385008978i128 + - Value: + Integer: + - I128 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 553967635i128 + - Value: + Integer: + - I128 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 71980713i128 + - Value: + Integer: + - I128 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 519444716i128 + - Value: + Integer: + - I128 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 116499965i128 + - Value: + Integer: + - I128 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 717422268i128 + - Value: + Integer: + - I128 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 18966279i128 + - Value: + Integer: + - I128 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 22458638i128 + - Value: + Integer: + - I128 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 857282620i128 + - Value: + Integer: + - I128 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 920675898i128 + - Value: + Integer: + - I128 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 762235516i128 + - Value: + Integer: + - I128 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 469018377i128 + - Value: + Integer: + - I128 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 199986521i128 + - Value: + Integer: + - I128 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 536679358i128 + - Value: + Integer: + - I128 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 591399452i128 + - Value: + Integer: + - I128 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 83083158i128 + - Value: + Integer: + - I128 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 599449051i128 + - Value: + Integer: + - I128 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 445442318i128 + - Value: + Integer: + - I128 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 585486590i128 + - Value: + Integer: + - I128 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 209278800i128 + - Value: + Integer: + - I128 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 873568117i128 + - Value: + Integer: + - I128 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 664470940i128 + - Value: + Integer: + - I128 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 465262783i128 + - Value: + Integer: + - I128 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 605652874i128 + - Value: + Integer: + - I128 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 376803940i128 + - Value: + Integer: + - I128 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 965247040i128 + - Value: + Integer: + - I128 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 598474509i128 + - Value: + Integer: + - I128 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 845119918i128 + - Value: + Integer: + - I128 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 648159133i128 + - Value: + Integer: + - I128 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 669051032i128 + - Value: + Integer: + - I128 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 800600261i128 + - Value: + Integer: + - I128 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 434689764i128 + - Value: + Integer: + - I128 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 520060080i128 + - Value: + Integer: + - I128 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 804659385i128 + - Value: + Integer: + - I128 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 537828058i128 + - Value: + Integer: + - I128 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 716600292i128 + - Value: + Integer: + - I128 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 387020273i128 + - Value: + Integer: + - I128 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 199375617i128 + - Value: + Integer: + - I128 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 680337189i128 + - Value: + Integer: + - I128 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 818479931i128 + - Value: + Integer: + - I128 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 893693281i128 + - Value: + Integer: + - I128 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 87377802i128 + - Value: + Integer: + - I128 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 84699261i128 + - Value: + Integer: + - I128 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 292826090i128 + - Value: + Integer: + - I128 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 569171405i128 + - Value: + Integer: + - I128 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 387436237i128 + - Value: + Integer: + - I128 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 150682190i128 + - Value: + Integer: + - I128 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 888770419i128 + - Value: + Integer: + - I128 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 824696431i128 + - Value: + Integer: + - I128 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 765659803i128 + - Value: + Integer: + - I128 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 270163693i128 + - Value: + Integer: + - I128 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 427940240i128 + - Value: + Integer: + - I128 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 504997332i128 + - Value: + Integer: + - I128 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 337808338i128 + - Value: + Integer: + - I128 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 907200008i128 + - Value: + Integer: + - I128 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 757177889i128 + - Value: + Integer: + - I128 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 696697188i128 + - Value: + Integer: + - I128 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 41376051i128 + - Value: + Integer: + - I128 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 496293518i128 + - Value: + Integer: + - I128 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 251218820i128 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i16.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/i16.leo.out new file mode 100644 index 0000000000..9bb817e3fb --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i16.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I16 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123i16 + - Value: + Integer: + - I16 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123i16 + - Value: + Integer: + - I16 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 456i16 + - Value: + Integer: + - I16 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 84 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802i16 + - Value: + Integer: + - I16 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 404 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i16 + - Value: + Integer: + - I16 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 340130024i16 + - Value: + Integer: + - I16 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158951116i16 + - Value: + Integer: + - I16 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 155529659i16 + - Value: + Integer: + - I16 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 642023166i16 + - Value: + Integer: + - I16 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 228481736i16 + - Value: + Integer: + - I16 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469712960i16 + - Value: + Integer: + - I16 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 929437719i16 + - Value: + Integer: + - I16 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721072814i16 + - Value: + Integer: + - I16 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 363254789i16 + - Value: + Integer: + - I16 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 906732565i16 + - Value: + Integer: + - I16 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 288246391i16 + - Value: + Integer: + - I16 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 724940549i16 + - Value: + Integer: + - I16 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 487101620i16 + - Value: + Integer: + - I16 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 261373583i16 + - Value: + Integer: + - I16 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 891163927i16 + - Value: + Integer: + - I16 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 743967544i16 + - Value: + Integer: + - I16 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 8372586i16 + - Value: + Integer: + - I16 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 461793278i16 + - Value: + Integer: + - I16 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 806307045i16 + - Value: + Integer: + - I16 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 122764546i16 + - Value: + Integer: + - I16 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 356336181i16 + - Value: + Integer: + - I16 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158370903i16 + - Value: + Integer: + - I16 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 774460877i16 + - Value: + Integer: + - I16 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 557174131i16 + - Value: + Integer: + - I16 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 492401267i16 + - Value: + Integer: + - I16 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893445620i16 + - Value: + Integer: + - I16 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 957757048i16 + - Value: + Integer: + - I16 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721540649i16 + - Value: + Integer: + - I16 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 390746493i16 + - Value: + Integer: + - I16 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 211251725i16 + - Value: + Integer: + - I16 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 938266114i16 + - Value: + Integer: + - I16 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 156985870i16 + - Value: + Integer: + - I16 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 703831126i16 + - Value: + Integer: + - I16 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 729964155i16 + - Value: + Integer: + - I16 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 988151305i16 + - Value: + Integer: + - I16 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 320872435i16 + - Value: + Integer: + - I16 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 719287167i16 + - Value: + Integer: + - I16 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 152289486i16 + - Value: + Integer: + - I16 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 740067975i16 + - Value: + Integer: + - I16 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 728627816i16 + - Value: + Integer: + - I16 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 385008978i16 + - Value: + Integer: + - I16 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 553967635i16 + - Value: + Integer: + - I16 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 71980713i16 + - Value: + Integer: + - I16 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 519444716i16 + - Value: + Integer: + - I16 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 116499965i16 + - Value: + Integer: + - I16 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 717422268i16 + - Value: + Integer: + - I16 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 18966279i16 + - Value: + Integer: + - I16 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 22458638i16 + - Value: + Integer: + - I16 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 857282620i16 + - Value: + Integer: + - I16 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 920675898i16 + - Value: + Integer: + - I16 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 762235516i16 + - Value: + Integer: + - I16 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469018377i16 + - Value: + Integer: + - I16 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199986521i16 + - Value: + Integer: + - I16 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 536679358i16 + - Value: + Integer: + - I16 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 591399452i16 + - Value: + Integer: + - I16 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 83083158i16 + - Value: + Integer: + - I16 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 599449051i16 + - Value: + Integer: + - I16 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 445442318i16 + - Value: + Integer: + - I16 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 585486590i16 + - Value: + Integer: + - I16 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 209278800i16 + - Value: + Integer: + - I16 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 873568117i16 + - Value: + Integer: + - I16 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 664470940i16 + - Value: + Integer: + - I16 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 465262783i16 + - Value: + Integer: + - I16 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 605652874i16 + - Value: + Integer: + - I16 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 376803940i16 + - Value: + Integer: + - I16 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 965247040i16 + - Value: + Integer: + - I16 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 598474509i16 + - Value: + Integer: + - I16 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 845119918i16 + - Value: + Integer: + - I16 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 648159133i16 + - Value: + Integer: + - I16 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 669051032i16 + - Value: + Integer: + - I16 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 800600261i16 + - Value: + Integer: + - I16 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 434689764i16 + - Value: + Integer: + - I16 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 520060080i16 + - Value: + Integer: + - I16 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 804659385i16 + - Value: + Integer: + - I16 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 537828058i16 + - Value: + Integer: + - I16 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 716600292i16 + - Value: + Integer: + - I16 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387020273i16 + - Value: + Integer: + - I16 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199375617i16 + - Value: + Integer: + - I16 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 680337189i16 + - Value: + Integer: + - I16 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 818479931i16 + - Value: + Integer: + - I16 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893693281i16 + - Value: + Integer: + - I16 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 87377802i16 + - Value: + Integer: + - I16 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 84699261i16 + - Value: + Integer: + - I16 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 292826090i16 + - Value: + Integer: + - I16 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 569171405i16 + - Value: + Integer: + - I16 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387436237i16 + - Value: + Integer: + - I16 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 150682190i16 + - Value: + Integer: + - I16 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 888770419i16 + - Value: + Integer: + - I16 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 824696431i16 + - Value: + Integer: + - I16 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 765659803i16 + - Value: + Integer: + - I16 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 270163693i16 + - Value: + Integer: + - I16 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 427940240i16 + - Value: + Integer: + - I16 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 504997332i16 + - Value: + Integer: + - I16 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 337808338i16 + - Value: + Integer: + - I16 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 907200008i16 + - Value: + Integer: + - I16 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 757177889i16 + - Value: + Integer: + - I16 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 696697188i16 + - Value: + Integer: + - I16 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 41376051i16 + - Value: + Integer: + - I16 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 496293518i16 + - Value: + Integer: + - I16 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 251218820i16 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i32.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/i32.leo.out new file mode 100644 index 0000000000..d1cd30c003 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i32.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I32 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123i32 + - Value: + Integer: + - I32 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123i32 + - Value: + Integer: + - I32 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 456i32 + - Value: + Integer: + - I32 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 84 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802i32 + - Value: + Integer: + - I32 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 404 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i32 + - Value: + Integer: + - I32 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 340130024i32 + - Value: + Integer: + - I32 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158951116i32 + - Value: + Integer: + - I32 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 155529659i32 + - Value: + Integer: + - I32 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 642023166i32 + - Value: + Integer: + - I32 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 228481736i32 + - Value: + Integer: + - I32 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469712960i32 + - Value: + Integer: + - I32 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 929437719i32 + - Value: + Integer: + - I32 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721072814i32 + - Value: + Integer: + - I32 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 363254789i32 + - Value: + Integer: + - I32 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 906732565i32 + - Value: + Integer: + - I32 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 288246391i32 + - Value: + Integer: + - I32 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 724940549i32 + - Value: + Integer: + - I32 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 487101620i32 + - Value: + Integer: + - I32 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 261373583i32 + - Value: + Integer: + - I32 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 891163927i32 + - Value: + Integer: + - I32 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 743967544i32 + - Value: + Integer: + - I32 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 8372586i32 + - Value: + Integer: + - I32 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 461793278i32 + - Value: + Integer: + - I32 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 806307045i32 + - Value: + Integer: + - I32 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 122764546i32 + - Value: + Integer: + - I32 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 356336181i32 + - Value: + Integer: + - I32 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158370903i32 + - Value: + Integer: + - I32 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 774460877i32 + - Value: + Integer: + - I32 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 557174131i32 + - Value: + Integer: + - I32 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 492401267i32 + - Value: + Integer: + - I32 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893445620i32 + - Value: + Integer: + - I32 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 957757048i32 + - Value: + Integer: + - I32 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721540649i32 + - Value: + Integer: + - I32 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 390746493i32 + - Value: + Integer: + - I32 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 211251725i32 + - Value: + Integer: + - I32 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 938266114i32 + - Value: + Integer: + - I32 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 156985870i32 + - Value: + Integer: + - I32 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 703831126i32 + - Value: + Integer: + - I32 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 729964155i32 + - Value: + Integer: + - I32 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 988151305i32 + - Value: + Integer: + - I32 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 320872435i32 + - Value: + Integer: + - I32 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 719287167i32 + - Value: + Integer: + - I32 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 152289486i32 + - Value: + Integer: + - I32 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 740067975i32 + - Value: + Integer: + - I32 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 728627816i32 + - Value: + Integer: + - I32 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 385008978i32 + - Value: + Integer: + - I32 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 553967635i32 + - Value: + Integer: + - I32 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 71980713i32 + - Value: + Integer: + - I32 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 519444716i32 + - Value: + Integer: + - I32 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 116499965i32 + - Value: + Integer: + - I32 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 717422268i32 + - Value: + Integer: + - I32 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 18966279i32 + - Value: + Integer: + - I32 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 22458638i32 + - Value: + Integer: + - I32 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 857282620i32 + - Value: + Integer: + - I32 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 920675898i32 + - Value: + Integer: + - I32 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 762235516i32 + - Value: + Integer: + - I32 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469018377i32 + - Value: + Integer: + - I32 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199986521i32 + - Value: + Integer: + - I32 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 536679358i32 + - Value: + Integer: + - I32 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 591399452i32 + - Value: + Integer: + - I32 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 83083158i32 + - Value: + Integer: + - I32 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 599449051i32 + - Value: + Integer: + - I32 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 445442318i32 + - Value: + Integer: + - I32 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 585486590i32 + - Value: + Integer: + - I32 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 209278800i32 + - Value: + Integer: + - I32 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 873568117i32 + - Value: + Integer: + - I32 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 664470940i32 + - Value: + Integer: + - I32 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 465262783i32 + - Value: + Integer: + - I32 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 605652874i32 + - Value: + Integer: + - I32 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 376803940i32 + - Value: + Integer: + - I32 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 965247040i32 + - Value: + Integer: + - I32 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 598474509i32 + - Value: + Integer: + - I32 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 845119918i32 + - Value: + Integer: + - I32 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 648159133i32 + - Value: + Integer: + - I32 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 669051032i32 + - Value: + Integer: + - I32 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 800600261i32 + - Value: + Integer: + - I32 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 434689764i32 + - Value: + Integer: + - I32 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 520060080i32 + - Value: + Integer: + - I32 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 804659385i32 + - Value: + Integer: + - I32 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 537828058i32 + - Value: + Integer: + - I32 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 716600292i32 + - Value: + Integer: + - I32 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387020273i32 + - Value: + Integer: + - I32 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199375617i32 + - Value: + Integer: + - I32 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 680337189i32 + - Value: + Integer: + - I32 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 818479931i32 + - Value: + Integer: + - I32 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893693281i32 + - Value: + Integer: + - I32 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 87377802i32 + - Value: + Integer: + - I32 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 84699261i32 + - Value: + Integer: + - I32 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 292826090i32 + - Value: + Integer: + - I32 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 569171405i32 + - Value: + Integer: + - I32 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387436237i32 + - Value: + Integer: + - I32 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 150682190i32 + - Value: + Integer: + - I32 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 888770419i32 + - Value: + Integer: + - I32 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 824696431i32 + - Value: + Integer: + - I32 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 765659803i32 + - Value: + Integer: + - I32 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 270163693i32 + - Value: + Integer: + - I32 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 427940240i32 + - Value: + Integer: + - I32 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 504997332i32 + - Value: + Integer: + - I32 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 337808338i32 + - Value: + Integer: + - I32 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 907200008i32 + - Value: + Integer: + - I32 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 757177889i32 + - Value: + Integer: + - I32 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 696697188i32 + - Value: + Integer: + - I32 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 41376051i32 + - Value: + Integer: + - I32 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 496293518i32 + - Value: + Integer: + - I32 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 251218820i32 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i64.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/i64.leo.out new file mode 100644 index 0000000000..504aebf06e --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i64.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I64 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123i64 + - Value: + Integer: + - I64 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123i64 + - Value: + Integer: + - I64 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 456i64 + - Value: + Integer: + - I64 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 84 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802i64 + - Value: + Integer: + - I64 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 404 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i64 + - Value: + Integer: + - I64 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 340130024i64 + - Value: + Integer: + - I64 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158951116i64 + - Value: + Integer: + - I64 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 155529659i64 + - Value: + Integer: + - I64 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 642023166i64 + - Value: + Integer: + - I64 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 228481736i64 + - Value: + Integer: + - I64 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469712960i64 + - Value: + Integer: + - I64 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 929437719i64 + - Value: + Integer: + - I64 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721072814i64 + - Value: + Integer: + - I64 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 363254789i64 + - Value: + Integer: + - I64 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 906732565i64 + - Value: + Integer: + - I64 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 288246391i64 + - Value: + Integer: + - I64 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 724940549i64 + - Value: + Integer: + - I64 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 487101620i64 + - Value: + Integer: + - I64 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 261373583i64 + - Value: + Integer: + - I64 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 891163927i64 + - Value: + Integer: + - I64 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 743967544i64 + - Value: + Integer: + - I64 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 8372586i64 + - Value: + Integer: + - I64 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 461793278i64 + - Value: + Integer: + - I64 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 806307045i64 + - Value: + Integer: + - I64 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 122764546i64 + - Value: + Integer: + - I64 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 356336181i64 + - Value: + Integer: + - I64 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158370903i64 + - Value: + Integer: + - I64 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 774460877i64 + - Value: + Integer: + - I64 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 557174131i64 + - Value: + Integer: + - I64 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 492401267i64 + - Value: + Integer: + - I64 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893445620i64 + - Value: + Integer: + - I64 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 957757048i64 + - Value: + Integer: + - I64 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721540649i64 + - Value: + Integer: + - I64 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 390746493i64 + - Value: + Integer: + - I64 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 211251725i64 + - Value: + Integer: + - I64 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 938266114i64 + - Value: + Integer: + - I64 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 156985870i64 + - Value: + Integer: + - I64 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 703831126i64 + - Value: + Integer: + - I64 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 729964155i64 + - Value: + Integer: + - I64 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 988151305i64 + - Value: + Integer: + - I64 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 320872435i64 + - Value: + Integer: + - I64 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 719287167i64 + - Value: + Integer: + - I64 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 152289486i64 + - Value: + Integer: + - I64 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 740067975i64 + - Value: + Integer: + - I64 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 728627816i64 + - Value: + Integer: + - I64 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 385008978i64 + - Value: + Integer: + - I64 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 553967635i64 + - Value: + Integer: + - I64 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 71980713i64 + - Value: + Integer: + - I64 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 519444716i64 + - Value: + Integer: + - I64 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 116499965i64 + - Value: + Integer: + - I64 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 717422268i64 + - Value: + Integer: + - I64 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 18966279i64 + - Value: + Integer: + - I64 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 22458638i64 + - Value: + Integer: + - I64 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 857282620i64 + - Value: + Integer: + - I64 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 920675898i64 + - Value: + Integer: + - I64 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 762235516i64 + - Value: + Integer: + - I64 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469018377i64 + - Value: + Integer: + - I64 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199986521i64 + - Value: + Integer: + - I64 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 536679358i64 + - Value: + Integer: + - I64 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 591399452i64 + - Value: + Integer: + - I64 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 83083158i64 + - Value: + Integer: + - I64 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 599449051i64 + - Value: + Integer: + - I64 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 445442318i64 + - Value: + Integer: + - I64 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 585486590i64 + - Value: + Integer: + - I64 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 209278800i64 + - Value: + Integer: + - I64 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 873568117i64 + - Value: + Integer: + - I64 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 664470940i64 + - Value: + Integer: + - I64 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 465262783i64 + - Value: + Integer: + - I64 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 605652874i64 + - Value: + Integer: + - I64 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 376803940i64 + - Value: + Integer: + - I64 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 965247040i64 + - Value: + Integer: + - I64 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 598474509i64 + - Value: + Integer: + - I64 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 845119918i64 + - Value: + Integer: + - I64 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 648159133i64 + - Value: + Integer: + - I64 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 669051032i64 + - Value: + Integer: + - I64 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 800600261i64 + - Value: + Integer: + - I64 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 434689764i64 + - Value: + Integer: + - I64 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 520060080i64 + - Value: + Integer: + - I64 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 804659385i64 + - Value: + Integer: + - I64 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 537828058i64 + - Value: + Integer: + - I64 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 716600292i64 + - Value: + Integer: + - I64 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387020273i64 + - Value: + Integer: + - I64 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199375617i64 + - Value: + Integer: + - I64 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 680337189i64 + - Value: + Integer: + - I64 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 818479931i64 + - Value: + Integer: + - I64 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893693281i64 + - Value: + Integer: + - I64 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 87377802i64 + - Value: + Integer: + - I64 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 84699261i64 + - Value: + Integer: + - I64 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 292826090i64 + - Value: + Integer: + - I64 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 569171405i64 + - Value: + Integer: + - I64 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387436237i64 + - Value: + Integer: + - I64 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 150682190i64 + - Value: + Integer: + - I64 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 888770419i64 + - Value: + Integer: + - I64 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 824696431i64 + - Value: + Integer: + - I64 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 765659803i64 + - Value: + Integer: + - I64 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 270163693i64 + - Value: + Integer: + - I64 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 427940240i64 + - Value: + Integer: + - I64 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 504997332i64 + - Value: + Integer: + - I64 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 337808338i64 + - Value: + Integer: + - I64 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 907200008i64 + - Value: + Integer: + - I64 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 757177889i64 + - Value: + Integer: + - I64 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 696697188i64 + - Value: + Integer: + - I64 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 41376051i64 + - Value: + Integer: + - I64 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 496293518i64 + - Value: + Integer: + - I64 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 251218820i64 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i8.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/i8.leo.out new file mode 100644 index 0000000000..89c2addd3e --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i8.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I8 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: 123i8 + - Value: + Integer: + - I8 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: 123i8 + - Value: + Integer: + - I8 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: 456i8 + - Value: + Integer: + - I8 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 83 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802i8 + - Value: + Integer: + - I8 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 403 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802i8 + - Value: + Integer: + - I8 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 340130024i8 + - Value: + Integer: + - I8 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 158951116i8 + - Value: + Integer: + - I8 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 155529659i8 + - Value: + Integer: + - I8 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 642023166i8 + - Value: + Integer: + - I8 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 228481736i8 + - Value: + Integer: + - I8 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 469712960i8 + - Value: + Integer: + - I8 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 929437719i8 + - Value: + Integer: + - I8 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 721072814i8 + - Value: + Integer: + - I8 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 363254789i8 + - Value: + Integer: + - I8 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 906732565i8 + - Value: + Integer: + - I8 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 288246391i8 + - Value: + Integer: + - I8 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 724940549i8 + - Value: + Integer: + - I8 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 487101620i8 + - Value: + Integer: + - I8 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 261373583i8 + - Value: + Integer: + - I8 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 891163927i8 + - Value: + Integer: + - I8 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 743967544i8 + - Value: + Integer: + - I8 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 8372586i8 + - Value: + Integer: + - I8 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 461793278i8 + - Value: + Integer: + - I8 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 806307045i8 + - Value: + Integer: + - I8 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 122764546i8 + - Value: + Integer: + - I8 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 356336181i8 + - Value: + Integer: + - I8 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 158370903i8 + - Value: + Integer: + - I8 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 774460877i8 + - Value: + Integer: + - I8 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 557174131i8 + - Value: + Integer: + - I8 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 492401267i8 + - Value: + Integer: + - I8 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 893445620i8 + - Value: + Integer: + - I8 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 957757048i8 + - Value: + Integer: + - I8 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 721540649i8 + - Value: + Integer: + - I8 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 390746493i8 + - Value: + Integer: + - I8 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 211251725i8 + - Value: + Integer: + - I8 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 938266114i8 + - Value: + Integer: + - I8 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 156985870i8 + - Value: + Integer: + - I8 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 703831126i8 + - Value: + Integer: + - I8 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 729964155i8 + - Value: + Integer: + - I8 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 988151305i8 + - Value: + Integer: + - I8 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 320872435i8 + - Value: + Integer: + - I8 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 719287167i8 + - Value: + Integer: + - I8 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 152289486i8 + - Value: + Integer: + - I8 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 740067975i8 + - Value: + Integer: + - I8 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 728627816i8 + - Value: + Integer: + - I8 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 385008978i8 + - Value: + Integer: + - I8 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 553967635i8 + - Value: + Integer: + - I8 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 71980713i8 + - Value: + Integer: + - I8 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 519444716i8 + - Value: + Integer: + - I8 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 116499965i8 + - Value: + Integer: + - I8 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 717422268i8 + - Value: + Integer: + - I8 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 18966279i8 + - Value: + Integer: + - I8 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 22458638i8 + - Value: + Integer: + - I8 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 857282620i8 + - Value: + Integer: + - I8 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 920675898i8 + - Value: + Integer: + - I8 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 762235516i8 + - Value: + Integer: + - I8 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 469018377i8 + - Value: + Integer: + - I8 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 199986521i8 + - Value: + Integer: + - I8 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 536679358i8 + - Value: + Integer: + - I8 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 591399452i8 + - Value: + Integer: + - I8 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 83083158i8 + - Value: + Integer: + - I8 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 599449051i8 + - Value: + Integer: + - I8 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 445442318i8 + - Value: + Integer: + - I8 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 585486590i8 + - Value: + Integer: + - I8 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 209278800i8 + - Value: + Integer: + - I8 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 873568117i8 + - Value: + Integer: + - I8 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 664470940i8 + - Value: + Integer: + - I8 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 465262783i8 + - Value: + Integer: + - I8 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 605652874i8 + - Value: + Integer: + - I8 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 376803940i8 + - Value: + Integer: + - I8 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 965247040i8 + - Value: + Integer: + - I8 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 598474509i8 + - Value: + Integer: + - I8 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 845119918i8 + - Value: + Integer: + - I8 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 648159133i8 + - Value: + Integer: + - I8 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 669051032i8 + - Value: + Integer: + - I8 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 800600261i8 + - Value: + Integer: + - I8 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 434689764i8 + - Value: + Integer: + - I8 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 520060080i8 + - Value: + Integer: + - I8 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 804659385i8 + - Value: + Integer: + - I8 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 537828058i8 + - Value: + Integer: + - I8 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 716600292i8 + - Value: + Integer: + - I8 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 387020273i8 + - Value: + Integer: + - I8 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 199375617i8 + - Value: + Integer: + - I8 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 680337189i8 + - Value: + Integer: + - I8 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 818479931i8 + - Value: + Integer: + - I8 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 893693281i8 + - Value: + Integer: + - I8 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 87377802i8 + - Value: + Integer: + - I8 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 84699261i8 + - Value: + Integer: + - I8 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 292826090i8 + - Value: + Integer: + - I8 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 569171405i8 + - Value: + Integer: + - I8 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 387436237i8 + - Value: + Integer: + - I8 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 150682190i8 + - Value: + Integer: + - I8 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 888770419i8 + - Value: + Integer: + - I8 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 824696431i8 + - Value: + Integer: + - I8 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 765659803i8 + - Value: + Integer: + - I8 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 270163693i8 + - Value: + Integer: + - I8 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 427940240i8 + - Value: + Integer: + - I8 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 504997332i8 + - Value: + Integer: + - I8 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 337808338i8 + - Value: + Integer: + - I8 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 907200008i8 + - Value: + Integer: + - I8 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 757177889i8 + - Value: + Integer: + - I8 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 696697188i8 + - Value: + Integer: + - I8 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 41376051i8 + - Value: + Integer: + - I8 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 496293518i8 + - Value: + Integer: + - I8 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 251218820i8 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/mono_group.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/mono_group.leo.out new file mode 100644 index 0000000000..e472dd036a --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/mono_group.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Group: + Single: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 123group + - Value: + Group: + Single: + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 123group + - Value: + Group: + Single: + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: 456group + - Value: + Group: + Single: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 86 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802group + - Value: + Group: + Single: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 406 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802group + - Value: + Group: + Single: + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 340130024group + - Value: + Group: + Single: + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 158951116group + - Value: + Group: + Single: + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 155529659group + - Value: + Group: + Single: + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 642023166group + - Value: + Group: + Single: + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 228481736group + - Value: + Group: + Single: + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 469712960group + - Value: + Group: + Single: + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 929437719group + - Value: + Group: + Single: + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 721072814group + - Value: + Group: + Single: + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 363254789group + - Value: + Group: + Single: + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 906732565group + - Value: + Group: + Single: + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 288246391group + - Value: + Group: + Single: + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 724940549group + - Value: + Group: + Single: + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 487101620group + - Value: + Group: + Single: + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 261373583group + - Value: + Group: + Single: + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 891163927group + - Value: + Group: + Single: + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 743967544group + - Value: + Group: + Single: + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 8372586group + - Value: + Group: + Single: + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 461793278group + - Value: + Group: + Single: + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 806307045group + - Value: + Group: + Single: + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 122764546group + - Value: + Group: + Single: + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 356336181group + - Value: + Group: + Single: + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 158370903group + - Value: + Group: + Single: + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 774460877group + - Value: + Group: + Single: + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 557174131group + - Value: + Group: + Single: + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 492401267group + - Value: + Group: + Single: + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 893445620group + - Value: + Group: + Single: + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 957757048group + - Value: + Group: + Single: + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 721540649group + - Value: + Group: + Single: + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 390746493group + - Value: + Group: + Single: + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 211251725group + - Value: + Group: + Single: + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 938266114group + - Value: + Group: + Single: + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 156985870group + - Value: + Group: + Single: + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 703831126group + - Value: + Group: + Single: + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 729964155group + - Value: + Group: + Single: + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 988151305group + - Value: + Group: + Single: + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 320872435group + - Value: + Group: + Single: + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 719287167group + - Value: + Group: + Single: + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 152289486group + - Value: + Group: + Single: + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 740067975group + - Value: + Group: + Single: + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 728627816group + - Value: + Group: + Single: + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 385008978group + - Value: + Group: + Single: + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 553967635group + - Value: + Group: + Single: + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 71980713group + - Value: + Group: + Single: + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 519444716group + - Value: + Group: + Single: + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 116499965group + - Value: + Group: + Single: + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 717422268group + - Value: + Group: + Single: + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 18966279group + - Value: + Group: + Single: + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 22458638group + - Value: + Group: + Single: + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 857282620group + - Value: + Group: + Single: + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 920675898group + - Value: + Group: + Single: + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 762235516group + - Value: + Group: + Single: + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 469018377group + - Value: + Group: + Single: + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 199986521group + - Value: + Group: + Single: + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 536679358group + - Value: + Group: + Single: + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 591399452group + - Value: + Group: + Single: + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 83083158group + - Value: + Group: + Single: + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 599449051group + - Value: + Group: + Single: + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 445442318group + - Value: + Group: + Single: + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 585486590group + - Value: + Group: + Single: + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 209278800group + - Value: + Group: + Single: + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 873568117group + - Value: + Group: + Single: + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 664470940group + - Value: + Group: + Single: + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 465262783group + - Value: + Group: + Single: + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 605652874group + - Value: + Group: + Single: + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 376803940group + - Value: + Group: + Single: + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 965247040group + - Value: + Group: + Single: + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 598474509group + - Value: + Group: + Single: + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 845119918group + - Value: + Group: + Single: + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 648159133group + - Value: + Group: + Single: + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 669051032group + - Value: + Group: + Single: + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 800600261group + - Value: + Group: + Single: + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 434689764group + - Value: + Group: + Single: + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 520060080group + - Value: + Group: + Single: + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 804659385group + - Value: + Group: + Single: + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 537828058group + - Value: + Group: + Single: + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 716600292group + - Value: + Group: + Single: + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 387020273group + - Value: + Group: + Single: + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 199375617group + - Value: + Group: + Single: + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 680337189group + - Value: + Group: + Single: + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 818479931group + - Value: + Group: + Single: + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 893693281group + - Value: + Group: + Single: + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 87377802group + - Value: + Group: + Single: + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 84699261group + - Value: + Group: + Single: + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 292826090group + - Value: + Group: + Single: + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 569171405group + - Value: + Group: + Single: + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 387436237group + - Value: + Group: + Single: + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 150682190group + - Value: + Group: + Single: + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 888770419group + - Value: + Group: + Single: + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 824696431group + - Value: + Group: + Single: + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 765659803group + - Value: + Group: + Single: + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 270163693group + - Value: + Group: + Single: + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 427940240group + - Value: + Group: + Single: + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 504997332group + - Value: + Group: + Single: + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 337808338group + - Value: + Group: + Single: + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 907200008group + - Value: + Group: + Single: + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 757177889group + - Value: + Group: + Single: + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 696697188group + - Value: + Group: + Single: + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 41376051group + - Value: + Group: + Single: + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 496293518group + - Value: + Group: + Single: + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: 251218820group diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u128.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/u128.leo.out new file mode 100644 index 0000000000..63ce5b7b2d --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u128.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U128 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 123u128 + - Value: + Integer: + - U128 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 123u128 + - Value: + Integer: + - U128 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: 456u128 + - Value: + Integer: + - U128 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 85 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802u128 + - Value: + Integer: + - U128 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 405 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u128 + - Value: + Integer: + - U128 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 340130024u128 + - Value: + Integer: + - U128 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 158951116u128 + - Value: + Integer: + - U128 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 155529659u128 + - Value: + Integer: + - U128 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 642023166u128 + - Value: + Integer: + - U128 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 228481736u128 + - Value: + Integer: + - U128 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 469712960u128 + - Value: + Integer: + - U128 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 929437719u128 + - Value: + Integer: + - U128 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 721072814u128 + - Value: + Integer: + - U128 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 363254789u128 + - Value: + Integer: + - U128 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 906732565u128 + - Value: + Integer: + - U128 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 288246391u128 + - Value: + Integer: + - U128 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 724940549u128 + - Value: + Integer: + - U128 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 487101620u128 + - Value: + Integer: + - U128 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 261373583u128 + - Value: + Integer: + - U128 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 891163927u128 + - Value: + Integer: + - U128 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 743967544u128 + - Value: + Integer: + - U128 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 8372586u128 + - Value: + Integer: + - U128 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 461793278u128 + - Value: + Integer: + - U128 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 806307045u128 + - Value: + Integer: + - U128 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 122764546u128 + - Value: + Integer: + - U128 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 356336181u128 + - Value: + Integer: + - U128 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 158370903u128 + - Value: + Integer: + - U128 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 774460877u128 + - Value: + Integer: + - U128 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 557174131u128 + - Value: + Integer: + - U128 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 492401267u128 + - Value: + Integer: + - U128 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 893445620u128 + - Value: + Integer: + - U128 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 957757048u128 + - Value: + Integer: + - U128 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 721540649u128 + - Value: + Integer: + - U128 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 390746493u128 + - Value: + Integer: + - U128 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 211251725u128 + - Value: + Integer: + - U128 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 938266114u128 + - Value: + Integer: + - U128 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 156985870u128 + - Value: + Integer: + - U128 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 703831126u128 + - Value: + Integer: + - U128 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 729964155u128 + - Value: + Integer: + - U128 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 988151305u128 + - Value: + Integer: + - U128 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 320872435u128 + - Value: + Integer: + - U128 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 719287167u128 + - Value: + Integer: + - U128 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 152289486u128 + - Value: + Integer: + - U128 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 740067975u128 + - Value: + Integer: + - U128 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 728627816u128 + - Value: + Integer: + - U128 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 385008978u128 + - Value: + Integer: + - U128 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 553967635u128 + - Value: + Integer: + - U128 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 71980713u128 + - Value: + Integer: + - U128 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 519444716u128 + - Value: + Integer: + - U128 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 116499965u128 + - Value: + Integer: + - U128 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 717422268u128 + - Value: + Integer: + - U128 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 18966279u128 + - Value: + Integer: + - U128 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 22458638u128 + - Value: + Integer: + - U128 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 857282620u128 + - Value: + Integer: + - U128 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 920675898u128 + - Value: + Integer: + - U128 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 762235516u128 + - Value: + Integer: + - U128 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 469018377u128 + - Value: + Integer: + - U128 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 199986521u128 + - Value: + Integer: + - U128 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 536679358u128 + - Value: + Integer: + - U128 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 591399452u128 + - Value: + Integer: + - U128 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 83083158u128 + - Value: + Integer: + - U128 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 599449051u128 + - Value: + Integer: + - U128 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 445442318u128 + - Value: + Integer: + - U128 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 585486590u128 + - Value: + Integer: + - U128 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 209278800u128 + - Value: + Integer: + - U128 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 873568117u128 + - Value: + Integer: + - U128 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 664470940u128 + - Value: + Integer: + - U128 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 465262783u128 + - Value: + Integer: + - U128 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 605652874u128 + - Value: + Integer: + - U128 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 376803940u128 + - Value: + Integer: + - U128 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 965247040u128 + - Value: + Integer: + - U128 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 598474509u128 + - Value: + Integer: + - U128 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 845119918u128 + - Value: + Integer: + - U128 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 648159133u128 + - Value: + Integer: + - U128 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 669051032u128 + - Value: + Integer: + - U128 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 800600261u128 + - Value: + Integer: + - U128 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 434689764u128 + - Value: + Integer: + - U128 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 520060080u128 + - Value: + Integer: + - U128 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 804659385u128 + - Value: + Integer: + - U128 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 537828058u128 + - Value: + Integer: + - U128 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 716600292u128 + - Value: + Integer: + - U128 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 387020273u128 + - Value: + Integer: + - U128 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 199375617u128 + - Value: + Integer: + - U128 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 680337189u128 + - Value: + Integer: + - U128 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 818479931u128 + - Value: + Integer: + - U128 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 893693281u128 + - Value: + Integer: + - U128 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 87377802u128 + - Value: + Integer: + - U128 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 84699261u128 + - Value: + Integer: + - U128 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 292826090u128 + - Value: + Integer: + - U128 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 569171405u128 + - Value: + Integer: + - U128 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 387436237u128 + - Value: + Integer: + - U128 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 150682190u128 + - Value: + Integer: + - U128 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 888770419u128 + - Value: + Integer: + - U128 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 824696431u128 + - Value: + Integer: + - U128 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 765659803u128 + - Value: + Integer: + - U128 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 270163693u128 + - Value: + Integer: + - U128 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 427940240u128 + - Value: + Integer: + - U128 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 504997332u128 + - Value: + Integer: + - U128 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 337808338u128 + - Value: + Integer: + - U128 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 907200008u128 + - Value: + Integer: + - U128 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 757177889u128 + - Value: + Integer: + - U128 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 696697188u128 + - Value: + Integer: + - U128 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 41376051u128 + - Value: + Integer: + - U128 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 496293518u128 + - Value: + Integer: + - U128 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 14 + path: "" + content: 251218820u128 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u16.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/u16.leo.out new file mode 100644 index 0000000000..4202a4c6b8 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u16.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U16 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123u16 + - Value: + Integer: + - U16 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123u16 + - Value: + Integer: + - U16 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 456u16 + - Value: + Integer: + - U16 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 84 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802u16 + - Value: + Integer: + - U16 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 404 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u16 + - Value: + Integer: + - U16 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 340130024u16 + - Value: + Integer: + - U16 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158951116u16 + - Value: + Integer: + - U16 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 155529659u16 + - Value: + Integer: + - U16 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 642023166u16 + - Value: + Integer: + - U16 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 228481736u16 + - Value: + Integer: + - U16 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469712960u16 + - Value: + Integer: + - U16 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 929437719u16 + - Value: + Integer: + - U16 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721072814u16 + - Value: + Integer: + - U16 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 363254789u16 + - Value: + Integer: + - U16 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 906732565u16 + - Value: + Integer: + - U16 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 288246391u16 + - Value: + Integer: + - U16 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 724940549u16 + - Value: + Integer: + - U16 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 487101620u16 + - Value: + Integer: + - U16 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 261373583u16 + - Value: + Integer: + - U16 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 891163927u16 + - Value: + Integer: + - U16 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 743967544u16 + - Value: + Integer: + - U16 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 8372586u16 + - Value: + Integer: + - U16 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 461793278u16 + - Value: + Integer: + - U16 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 806307045u16 + - Value: + Integer: + - U16 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 122764546u16 + - Value: + Integer: + - U16 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 356336181u16 + - Value: + Integer: + - U16 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158370903u16 + - Value: + Integer: + - U16 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 774460877u16 + - Value: + Integer: + - U16 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 557174131u16 + - Value: + Integer: + - U16 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 492401267u16 + - Value: + Integer: + - U16 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893445620u16 + - Value: + Integer: + - U16 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 957757048u16 + - Value: + Integer: + - U16 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721540649u16 + - Value: + Integer: + - U16 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 390746493u16 + - Value: + Integer: + - U16 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 211251725u16 + - Value: + Integer: + - U16 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 938266114u16 + - Value: + Integer: + - U16 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 156985870u16 + - Value: + Integer: + - U16 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 703831126u16 + - Value: + Integer: + - U16 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 729964155u16 + - Value: + Integer: + - U16 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 988151305u16 + - Value: + Integer: + - U16 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 320872435u16 + - Value: + Integer: + - U16 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 719287167u16 + - Value: + Integer: + - U16 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 152289486u16 + - Value: + Integer: + - U16 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 740067975u16 + - Value: + Integer: + - U16 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 728627816u16 + - Value: + Integer: + - U16 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 385008978u16 + - Value: + Integer: + - U16 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 553967635u16 + - Value: + Integer: + - U16 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 71980713u16 + - Value: + Integer: + - U16 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 519444716u16 + - Value: + Integer: + - U16 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 116499965u16 + - Value: + Integer: + - U16 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 717422268u16 + - Value: + Integer: + - U16 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 18966279u16 + - Value: + Integer: + - U16 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 22458638u16 + - Value: + Integer: + - U16 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 857282620u16 + - Value: + Integer: + - U16 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 920675898u16 + - Value: + Integer: + - U16 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 762235516u16 + - Value: + Integer: + - U16 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469018377u16 + - Value: + Integer: + - U16 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199986521u16 + - Value: + Integer: + - U16 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 536679358u16 + - Value: + Integer: + - U16 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 591399452u16 + - Value: + Integer: + - U16 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 83083158u16 + - Value: + Integer: + - U16 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 599449051u16 + - Value: + Integer: + - U16 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 445442318u16 + - Value: + Integer: + - U16 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 585486590u16 + - Value: + Integer: + - U16 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 209278800u16 + - Value: + Integer: + - U16 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 873568117u16 + - Value: + Integer: + - U16 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 664470940u16 + - Value: + Integer: + - U16 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 465262783u16 + - Value: + Integer: + - U16 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 605652874u16 + - Value: + Integer: + - U16 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 376803940u16 + - Value: + Integer: + - U16 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 965247040u16 + - Value: + Integer: + - U16 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 598474509u16 + - Value: + Integer: + - U16 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 845119918u16 + - Value: + Integer: + - U16 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 648159133u16 + - Value: + Integer: + - U16 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 669051032u16 + - Value: + Integer: + - U16 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 800600261u16 + - Value: + Integer: + - U16 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 434689764u16 + - Value: + Integer: + - U16 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 520060080u16 + - Value: + Integer: + - U16 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 804659385u16 + - Value: + Integer: + - U16 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 537828058u16 + - Value: + Integer: + - U16 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 716600292u16 + - Value: + Integer: + - U16 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387020273u16 + - Value: + Integer: + - U16 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199375617u16 + - Value: + Integer: + - U16 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 680337189u16 + - Value: + Integer: + - U16 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 818479931u16 + - Value: + Integer: + - U16 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893693281u16 + - Value: + Integer: + - U16 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 87377802u16 + - Value: + Integer: + - U16 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 84699261u16 + - Value: + Integer: + - U16 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 292826090u16 + - Value: + Integer: + - U16 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 569171405u16 + - Value: + Integer: + - U16 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387436237u16 + - Value: + Integer: + - U16 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 150682190u16 + - Value: + Integer: + - U16 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 888770419u16 + - Value: + Integer: + - U16 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 824696431u16 + - Value: + Integer: + - U16 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 765659803u16 + - Value: + Integer: + - U16 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 270163693u16 + - Value: + Integer: + - U16 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 427940240u16 + - Value: + Integer: + - U16 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 504997332u16 + - Value: + Integer: + - U16 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 337808338u16 + - Value: + Integer: + - U16 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 907200008u16 + - Value: + Integer: + - U16 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 757177889u16 + - Value: + Integer: + - U16 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 696697188u16 + - Value: + Integer: + - U16 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 41376051u16 + - Value: + Integer: + - U16 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 496293518u16 + - Value: + Integer: + - U16 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 251218820u16 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u32.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/u32.leo.out new file mode 100644 index 0000000000..aa6c30759b --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u32.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U32 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123u32 + - Value: + Integer: + - U32 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123u32 + - Value: + Integer: + - U32 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 456u32 + - Value: + Integer: + - U32 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 84 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802u32 + - Value: + Integer: + - U32 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 404 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u32 + - Value: + Integer: + - U32 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 340130024u32 + - Value: + Integer: + - U32 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158951116u32 + - Value: + Integer: + - U32 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 155529659u32 + - Value: + Integer: + - U32 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 642023166u32 + - Value: + Integer: + - U32 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 228481736u32 + - Value: + Integer: + - U32 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469712960u32 + - Value: + Integer: + - U32 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 929437719u32 + - Value: + Integer: + - U32 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721072814u32 + - Value: + Integer: + - U32 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 363254789u32 + - Value: + Integer: + - U32 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 906732565u32 + - Value: + Integer: + - U32 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 288246391u32 + - Value: + Integer: + - U32 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 724940549u32 + - Value: + Integer: + - U32 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 487101620u32 + - Value: + Integer: + - U32 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 261373583u32 + - Value: + Integer: + - U32 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 891163927u32 + - Value: + Integer: + - U32 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 743967544u32 + - Value: + Integer: + - U32 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 8372586u32 + - Value: + Integer: + - U32 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 461793278u32 + - Value: + Integer: + - U32 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 806307045u32 + - Value: + Integer: + - U32 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 122764546u32 + - Value: + Integer: + - U32 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 356336181u32 + - Value: + Integer: + - U32 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158370903u32 + - Value: + Integer: + - U32 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 774460877u32 + - Value: + Integer: + - U32 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 557174131u32 + - Value: + Integer: + - U32 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 492401267u32 + - Value: + Integer: + - U32 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893445620u32 + - Value: + Integer: + - U32 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 957757048u32 + - Value: + Integer: + - U32 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721540649u32 + - Value: + Integer: + - U32 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 390746493u32 + - Value: + Integer: + - U32 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 211251725u32 + - Value: + Integer: + - U32 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 938266114u32 + - Value: + Integer: + - U32 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 156985870u32 + - Value: + Integer: + - U32 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 703831126u32 + - Value: + Integer: + - U32 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 729964155u32 + - Value: + Integer: + - U32 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 988151305u32 + - Value: + Integer: + - U32 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 320872435u32 + - Value: + Integer: + - U32 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 719287167u32 + - Value: + Integer: + - U32 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 152289486u32 + - Value: + Integer: + - U32 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 740067975u32 + - Value: + Integer: + - U32 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 728627816u32 + - Value: + Integer: + - U32 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 385008978u32 + - Value: + Integer: + - U32 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 553967635u32 + - Value: + Integer: + - U32 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 71980713u32 + - Value: + Integer: + - U32 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 519444716u32 + - Value: + Integer: + - U32 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 116499965u32 + - Value: + Integer: + - U32 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 717422268u32 + - Value: + Integer: + - U32 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 18966279u32 + - Value: + Integer: + - U32 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 22458638u32 + - Value: + Integer: + - U32 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 857282620u32 + - Value: + Integer: + - U32 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 920675898u32 + - Value: + Integer: + - U32 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 762235516u32 + - Value: + Integer: + - U32 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469018377u32 + - Value: + Integer: + - U32 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199986521u32 + - Value: + Integer: + - U32 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 536679358u32 + - Value: + Integer: + - U32 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 591399452u32 + - Value: + Integer: + - U32 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 83083158u32 + - Value: + Integer: + - U32 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 599449051u32 + - Value: + Integer: + - U32 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 445442318u32 + - Value: + Integer: + - U32 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 585486590u32 + - Value: + Integer: + - U32 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 209278800u32 + - Value: + Integer: + - U32 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 873568117u32 + - Value: + Integer: + - U32 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 664470940u32 + - Value: + Integer: + - U32 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 465262783u32 + - Value: + Integer: + - U32 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 605652874u32 + - Value: + Integer: + - U32 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 376803940u32 + - Value: + Integer: + - U32 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 965247040u32 + - Value: + Integer: + - U32 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 598474509u32 + - Value: + Integer: + - U32 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 845119918u32 + - Value: + Integer: + - U32 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 648159133u32 + - Value: + Integer: + - U32 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 669051032u32 + - Value: + Integer: + - U32 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 800600261u32 + - Value: + Integer: + - U32 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 434689764u32 + - Value: + Integer: + - U32 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 520060080u32 + - Value: + Integer: + - U32 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 804659385u32 + - Value: + Integer: + - U32 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 537828058u32 + - Value: + Integer: + - U32 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 716600292u32 + - Value: + Integer: + - U32 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387020273u32 + - Value: + Integer: + - U32 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199375617u32 + - Value: + Integer: + - U32 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 680337189u32 + - Value: + Integer: + - U32 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 818479931u32 + - Value: + Integer: + - U32 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893693281u32 + - Value: + Integer: + - U32 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 87377802u32 + - Value: + Integer: + - U32 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 84699261u32 + - Value: + Integer: + - U32 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 292826090u32 + - Value: + Integer: + - U32 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 569171405u32 + - Value: + Integer: + - U32 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387436237u32 + - Value: + Integer: + - U32 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 150682190u32 + - Value: + Integer: + - U32 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 888770419u32 + - Value: + Integer: + - U32 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 824696431u32 + - Value: + Integer: + - U32 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 765659803u32 + - Value: + Integer: + - U32 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 270163693u32 + - Value: + Integer: + - U32 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 427940240u32 + - Value: + Integer: + - U32 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 504997332u32 + - Value: + Integer: + - U32 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 337808338u32 + - Value: + Integer: + - U32 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 907200008u32 + - Value: + Integer: + - U32 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 757177889u32 + - Value: + Integer: + - U32 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 696697188u32 + - Value: + Integer: + - U32 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 41376051u32 + - Value: + Integer: + - U32 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 496293518u32 + - Value: + Integer: + - U32 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 251218820u32 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u64.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/u64.leo.out new file mode 100644 index 0000000000..7241032af4 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u64.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U64 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123u64 + - Value: + Integer: + - U64 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 123u64 + - Value: + Integer: + - U64 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: 456u64 + - Value: + Integer: + - U64 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 84 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802u64 + - Value: + Integer: + - U64 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 404 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u64 + - Value: + Integer: + - U64 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 340130024u64 + - Value: + Integer: + - U64 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158951116u64 + - Value: + Integer: + - U64 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 155529659u64 + - Value: + Integer: + - U64 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 642023166u64 + - Value: + Integer: + - U64 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 228481736u64 + - Value: + Integer: + - U64 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469712960u64 + - Value: + Integer: + - U64 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 929437719u64 + - Value: + Integer: + - U64 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721072814u64 + - Value: + Integer: + - U64 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 363254789u64 + - Value: + Integer: + - U64 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 906732565u64 + - Value: + Integer: + - U64 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 288246391u64 + - Value: + Integer: + - U64 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 724940549u64 + - Value: + Integer: + - U64 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 487101620u64 + - Value: + Integer: + - U64 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 261373583u64 + - Value: + Integer: + - U64 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 891163927u64 + - Value: + Integer: + - U64 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 743967544u64 + - Value: + Integer: + - U64 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 8372586u64 + - Value: + Integer: + - U64 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 461793278u64 + - Value: + Integer: + - U64 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 806307045u64 + - Value: + Integer: + - U64 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 122764546u64 + - Value: + Integer: + - U64 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 356336181u64 + - Value: + Integer: + - U64 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 158370903u64 + - Value: + Integer: + - U64 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 774460877u64 + - Value: + Integer: + - U64 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 557174131u64 + - Value: + Integer: + - U64 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 492401267u64 + - Value: + Integer: + - U64 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893445620u64 + - Value: + Integer: + - U64 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 957757048u64 + - Value: + Integer: + - U64 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 721540649u64 + - Value: + Integer: + - U64 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 390746493u64 + - Value: + Integer: + - U64 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 211251725u64 + - Value: + Integer: + - U64 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 938266114u64 + - Value: + Integer: + - U64 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 156985870u64 + - Value: + Integer: + - U64 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 703831126u64 + - Value: + Integer: + - U64 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 729964155u64 + - Value: + Integer: + - U64 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 988151305u64 + - Value: + Integer: + - U64 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 320872435u64 + - Value: + Integer: + - U64 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 719287167u64 + - Value: + Integer: + - U64 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 152289486u64 + - Value: + Integer: + - U64 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 740067975u64 + - Value: + Integer: + - U64 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 728627816u64 + - Value: + Integer: + - U64 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 385008978u64 + - Value: + Integer: + - U64 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 553967635u64 + - Value: + Integer: + - U64 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 71980713u64 + - Value: + Integer: + - U64 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 519444716u64 + - Value: + Integer: + - U64 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 116499965u64 + - Value: + Integer: + - U64 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 717422268u64 + - Value: + Integer: + - U64 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 18966279u64 + - Value: + Integer: + - U64 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 22458638u64 + - Value: + Integer: + - U64 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 857282620u64 + - Value: + Integer: + - U64 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 920675898u64 + - Value: + Integer: + - U64 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 762235516u64 + - Value: + Integer: + - U64 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 469018377u64 + - Value: + Integer: + - U64 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199986521u64 + - Value: + Integer: + - U64 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 536679358u64 + - Value: + Integer: + - U64 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 591399452u64 + - Value: + Integer: + - U64 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 83083158u64 + - Value: + Integer: + - U64 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 599449051u64 + - Value: + Integer: + - U64 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 445442318u64 + - Value: + Integer: + - U64 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 585486590u64 + - Value: + Integer: + - U64 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 209278800u64 + - Value: + Integer: + - U64 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 873568117u64 + - Value: + Integer: + - U64 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 664470940u64 + - Value: + Integer: + - U64 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 465262783u64 + - Value: + Integer: + - U64 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 605652874u64 + - Value: + Integer: + - U64 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 376803940u64 + - Value: + Integer: + - U64 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 965247040u64 + - Value: + Integer: + - U64 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 598474509u64 + - Value: + Integer: + - U64 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 845119918u64 + - Value: + Integer: + - U64 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 648159133u64 + - Value: + Integer: + - U64 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 669051032u64 + - Value: + Integer: + - U64 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 800600261u64 + - Value: + Integer: + - U64 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 434689764u64 + - Value: + Integer: + - U64 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 520060080u64 + - Value: + Integer: + - U64 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 804659385u64 + - Value: + Integer: + - U64 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 537828058u64 + - Value: + Integer: + - U64 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 716600292u64 + - Value: + Integer: + - U64 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387020273u64 + - Value: + Integer: + - U64 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 199375617u64 + - Value: + Integer: + - U64 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 680337189u64 + - Value: + Integer: + - U64 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 818479931u64 + - Value: + Integer: + - U64 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 893693281u64 + - Value: + Integer: + - U64 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 87377802u64 + - Value: + Integer: + - U64 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 84699261u64 + - Value: + Integer: + - U64 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 292826090u64 + - Value: + Integer: + - U64 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 569171405u64 + - Value: + Integer: + - U64 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 387436237u64 + - Value: + Integer: + - U64 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 150682190u64 + - Value: + Integer: + - U64 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 888770419u64 + - Value: + Integer: + - U64 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 824696431u64 + - Value: + Integer: + - U64 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 765659803u64 + - Value: + Integer: + - U64 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 270163693u64 + - Value: + Integer: + - U64 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 427940240u64 + - Value: + Integer: + - U64 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 504997332u64 + - Value: + Integer: + - U64 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 337808338u64 + - Value: + Integer: + - U64 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 907200008u64 + - Value: + Integer: + - U64 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 757177889u64 + - Value: + Integer: + - U64 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 696697188u64 + - Value: + Integer: + - U64 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 41376051u64 + - Value: + Integer: + - U64 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 496293518u64 + - Value: + Integer: + - U64 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 13 + path: "" + content: 251218820u64 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u8.leo.out b/tests/expectations/parser/parser/expression/literal/int_parse/u8.leo.out new file mode 100644 index 0000000000..89d2c66c27 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u8.leo.out @@ -0,0 +1,1159 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U8 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: 123u8 + - Value: + Integer: + - U8 + - "123" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: 123u8 + - Value: + Integer: + - U8 + - "456" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: 456u8 + - Value: + Integer: + - U8 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 83 + path: "" + content: 87377802873778028737780287377802873778028737780287377802873778028737780287377802u8 + - Value: + Integer: + - U8 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 403 + path: "" + content: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802u8 + - Value: + Integer: + - U8 + - "340130024" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 340130024u8 + - Value: + Integer: + - U8 + - "158951116" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 158951116u8 + - Value: + Integer: + - U8 + - "155529659" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 155529659u8 + - Value: + Integer: + - U8 + - "642023166" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 642023166u8 + - Value: + Integer: + - U8 + - "228481736" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 228481736u8 + - Value: + Integer: + - U8 + - "469712960" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 469712960u8 + - Value: + Integer: + - U8 + - "929437719" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 929437719u8 + - Value: + Integer: + - U8 + - "721072814" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 721072814u8 + - Value: + Integer: + - U8 + - "363254789" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 363254789u8 + - Value: + Integer: + - U8 + - "906732565" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 906732565u8 + - Value: + Integer: + - U8 + - "288246391" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 288246391u8 + - Value: + Integer: + - U8 + - "724940549" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 724940549u8 + - Value: + Integer: + - U8 + - "487101620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 487101620u8 + - Value: + Integer: + - U8 + - "261373583" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 261373583u8 + - Value: + Integer: + - U8 + - "891163927" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 891163927u8 + - Value: + Integer: + - U8 + - "743967544" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 743967544u8 + - Value: + Integer: + - U8 + - "8372586" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: 8372586u8 + - Value: + Integer: + - U8 + - "461793278" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 461793278u8 + - Value: + Integer: + - U8 + - "806307045" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 806307045u8 + - Value: + Integer: + - U8 + - "122764546" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 122764546u8 + - Value: + Integer: + - U8 + - "356336181" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 356336181u8 + - Value: + Integer: + - U8 + - "158370903" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 158370903u8 + - Value: + Integer: + - U8 + - "774460877" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 774460877u8 + - Value: + Integer: + - U8 + - "557174131" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 557174131u8 + - Value: + Integer: + - U8 + - "492401267" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 492401267u8 + - Value: + Integer: + - U8 + - "893445620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 893445620u8 + - Value: + Integer: + - U8 + - "957757048" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 957757048u8 + - Value: + Integer: + - U8 + - "721540649" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 721540649u8 + - Value: + Integer: + - U8 + - "390746493" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 390746493u8 + - Value: + Integer: + - U8 + - "211251725" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 211251725u8 + - Value: + Integer: + - U8 + - "938266114" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 938266114u8 + - Value: + Integer: + - U8 + - "156985870" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 156985870u8 + - Value: + Integer: + - U8 + - "703831126" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 703831126u8 + - Value: + Integer: + - U8 + - "729964155" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 729964155u8 + - Value: + Integer: + - U8 + - "988151305" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 988151305u8 + - Value: + Integer: + - U8 + - "320872435" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 320872435u8 + - Value: + Integer: + - U8 + - "719287167" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 719287167u8 + - Value: + Integer: + - U8 + - "152289486" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 152289486u8 + - Value: + Integer: + - U8 + - "740067975" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 740067975u8 + - Value: + Integer: + - U8 + - "728627816" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 728627816u8 + - Value: + Integer: + - U8 + - "385008978" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 385008978u8 + - Value: + Integer: + - U8 + - "553967635" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 553967635u8 + - Value: + Integer: + - U8 + - "71980713" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 71980713u8 + - Value: + Integer: + - U8 + - "519444716" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 519444716u8 + - Value: + Integer: + - U8 + - "116499965" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 116499965u8 + - Value: + Integer: + - U8 + - "717422268" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 717422268u8 + - Value: + Integer: + - U8 + - "18966279" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 18966279u8 + - Value: + Integer: + - U8 + - "22458638" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 22458638u8 + - Value: + Integer: + - U8 + - "857282620" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 857282620u8 + - Value: + Integer: + - U8 + - "920675898" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 920675898u8 + - Value: + Integer: + - U8 + - "762235516" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 762235516u8 + - Value: + Integer: + - U8 + - "469018377" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 469018377u8 + - Value: + Integer: + - U8 + - "199986521" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 199986521u8 + - Value: + Integer: + - U8 + - "536679358" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 536679358u8 + - Value: + Integer: + - U8 + - "591399452" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 591399452u8 + - Value: + Integer: + - U8 + - "83083158" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 83083158u8 + - Value: + Integer: + - U8 + - "599449051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 599449051u8 + - Value: + Integer: + - U8 + - "445442318" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 445442318u8 + - Value: + Integer: + - U8 + - "585486590" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 585486590u8 + - Value: + Integer: + - U8 + - "209278800" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 209278800u8 + - Value: + Integer: + - U8 + - "873568117" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 873568117u8 + - Value: + Integer: + - U8 + - "664470940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 664470940u8 + - Value: + Integer: + - U8 + - "465262783" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 465262783u8 + - Value: + Integer: + - U8 + - "605652874" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 605652874u8 + - Value: + Integer: + - U8 + - "376803940" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 376803940u8 + - Value: + Integer: + - U8 + - "965247040" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 965247040u8 + - Value: + Integer: + - U8 + - "598474509" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 598474509u8 + - Value: + Integer: + - U8 + - "845119918" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 845119918u8 + - Value: + Integer: + - U8 + - "648159133" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 648159133u8 + - Value: + Integer: + - U8 + - "669051032" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 669051032u8 + - Value: + Integer: + - U8 + - "800600261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 800600261u8 + - Value: + Integer: + - U8 + - "434689764" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 434689764u8 + - Value: + Integer: + - U8 + - "520060080" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 520060080u8 + - Value: + Integer: + - U8 + - "804659385" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 804659385u8 + - Value: + Integer: + - U8 + - "537828058" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 537828058u8 + - Value: + Integer: + - U8 + - "716600292" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 716600292u8 + - Value: + Integer: + - U8 + - "387020273" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 387020273u8 + - Value: + Integer: + - U8 + - "199375617" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 199375617u8 + - Value: + Integer: + - U8 + - "680337189" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 680337189u8 + - Value: + Integer: + - U8 + - "818479931" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 818479931u8 + - Value: + Integer: + - U8 + - "893693281" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 893693281u8 + - Value: + Integer: + - U8 + - "87377802" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 87377802u8 + - Value: + Integer: + - U8 + - "84699261" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 84699261u8 + - Value: + Integer: + - U8 + - "292826090" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 292826090u8 + - Value: + Integer: + - U8 + - "569171405" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 569171405u8 + - Value: + Integer: + - U8 + - "387436237" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 387436237u8 + - Value: + Integer: + - U8 + - "150682190" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 150682190u8 + - Value: + Integer: + - U8 + - "888770419" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 888770419u8 + - Value: + Integer: + - U8 + - "824696431" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 824696431u8 + - Value: + Integer: + - U8 + - "765659803" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 765659803u8 + - Value: + Integer: + - U8 + - "270163693" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 270163693u8 + - Value: + Integer: + - U8 + - "427940240" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 427940240u8 + - Value: + Integer: + - U8 + - "504997332" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 504997332u8 + - Value: + Integer: + - U8 + - "337808338" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 337808338u8 + - Value: + Integer: + - U8 + - "907200008" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 907200008u8 + - Value: + Integer: + - U8 + - "757177889" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 757177889u8 + - Value: + Integer: + - U8 + - "696697188" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 696697188u8 + - Value: + Integer: + - U8 + - "41376051" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: 41376051u8 + - Value: + Integer: + - U8 + - "496293518" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 496293518u8 + - Value: + Integer: + - U8 + - "251218820" + - span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: 251218820u8 diff --git a/tests/expectations/parser/parser/expression/literal/postfix_types.leo.out b/tests/expectations/parser/parser/expression/literal/postfix_types.leo.out new file mode 100644 index 0000000000..00ff4531d4 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/postfix_types.leo.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/parser/expression/literal/string.leo.out b/tests/expectations/parser/parser/expression/literal/string.leo.out new file mode 100644 index 0000000000..83980319ab --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/string.leo.out @@ -0,0 +1,34 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'\"string\"' @ 1:1-9" + - "'\"another { } string\"' @ 1:1-21" + - "'\"{ ] [ ; a\"' @ 1:1-12" + - "'\"࿺\"' @ 1:1-10" + - "'\"򯫺\"' @ 1:1-12" + - "'\"꾯\"' @ 1:1-11" + - "'\"ૺ\"' @ 1:1-10" + - "'\"¯\"' @ 1:1-9" + - "'\"\n\"' @ 1:1-8" + - "'\"\n\"' @ 1:1-7" + - "'\"\u007f\"' @ 1:1-7" + - "'\"aa \\ \" ' \n aa \t \r \u0000\"' @ 1:1-30" + - "'\"test 😒€\"' @ 1:1-15" + - "'\"😭😂😘\"' @ 1:1-15" + - "'\"✋🏿\"' @ 1:1-10" + - "'\"🦀\"' @ 1:1-7" + - "'\"￿\"' @ 1:1-6" + - "'\"���\"' @ 1:1-12" + - "'\"(>3<)三\"' @ 1:1-17" + - "'\"ヽ༼ ಠ益ಠ ༽ノ\"' @ 1:1-26" + - "'\"(╯°□°)╯︵ ┻━┻\"' @ 1:1-33" + - "'\"┬─┬ ノ( ゜-゜ノ)\"' @ 1:1-29" + - "'\"( ͡° ͜ʖ ͡°)\"' @ 1:1-20" + - "'\"b\"' @ 1:1-4" + - "'\"ᕙ(▀̿ĺ̯▀̿ ̿)ᕗ\"' @ 1:1-28" + - "'\"♥╣[-_-]╠♥\"' @ 1:1-20" + - "'\"b\"' @ 1:1-4" + - "'\"(⑅∫°ਊ°)∫\"' @ 1:1-21" + - "'\"b\"' @ 1:1-4" + - "'\"🦀°1\"' @ 1:1-10" diff --git a/tests/expectations/parser/parser/expression/literal/string_fail.leo.out b/tests/expectations/parser/parser/expression/literal/string_fail.leo.out new file mode 100644 index 0000000000..f3378d3e83 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/string_fail.leo.out @@ -0,0 +1,18 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370025]: Expected a closed string but found `Hello world!`." + - "Error [EPAR0370025]: Expected a closed string but found `\"`." + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370024]: Expected a valid escape character but found `l`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `a`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `\"`." + - "Error [EPAR0370031]: Expected a valid hex character but found `FF`." + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `}`." + - "Error [EPAR0370038]: There was no opening `{` after starting an escaped unicode `6`." + - "Error [EPAR0370033]: There was no closing `}` after a escaped unicode `af🦀\"`." + - "Error [EPAR0370025]: Expected a closed string but found `\"`." + - "Error [EPAR0370025]: Expected a closed string but found `⭇😍;`." + - "Error [EPAR0370044]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/expression/ternary.leo.out b/tests/expectations/parser/parser/expression/ternary.leo.out new file mode 100644 index 0000000000..9fef5ba769 --- /dev/null +++ b/tests/expectations/parser/parser/expression/ternary.leo.out @@ -0,0 +1,72 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? y : z\\\"}\"}" + if_true: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? y : z\\\"}\"}" + if_false: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? y : z\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: "x ? y : z" + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}" + if_true: + Ternary: + condition: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}" + if_true: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}" + if_false: + Identifier: "{\"name\":\"c\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 14 + path: "" + content: "x ? a ? b : c : z" + if_false: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":17,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? a ? b : c : z\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "x ? a ? b : c : z" + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}" + if_true: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}" + if_false: + Ternary: + condition: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}" + if_true: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}" + if_false: + Identifier: "{\"name\":\"c\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":17,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x ? y : a ? b : c\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 9 + col_stop: 18 + path: "" + content: "x ? y : a ? b : c" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "x ? y : a ? b : c" diff --git a/tests/expectations/parser/parser/expression/token_format.leo.out b/tests/expectations/parser/parser/expression/token_format.leo.out new file mode 100644 index 0000000000..9d66a72ae5 --- /dev/null +++ b/tests/expectations/parser/parser/expression/token_format.leo.out @@ -0,0 +1,76 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `@test`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '&&'\n --> test:1:1\n |\n 1 | &&\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '||'\n --> test:1:1\n |\n 1 | ||\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '=='\n --> test:1:1\n |\n 1 | ==\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '!='\n --> test:1:1\n |\n 1 | !=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '<'\n --> test:1:1\n |\n 1 | <\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '<='\n --> test:1:1\n |\n 1 | <=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '>'\n --> test:1:1\n |\n 1 | >\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '>='\n --> test:1:1\n |\n 1 | >=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '+'\n --> test:1:1\n |\n 1 | +\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ''\n --> test:1:1\n |\n 1 | -\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '*'\n --> test:1:1\n |\n 1 | *\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '**'\n --> test:1:1\n |\n 1 | **\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '/'\n --> test:1:1\n |\n 1 | /\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:1\n |\n 1 | =\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '+'\n --> test:1:1\n |\n 1 | +=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:2\n |\n 1 | -=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '*'\n --> test:1:1\n |\n 1 | *=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '/'\n --> test:1:1\n |\n 1 | /=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '**'\n --> test:1:1\n |\n 1 | **=\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ''\n --> test:1:1\n |\n 1 | (\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ')'\n --> test:1:1\n |\n 1 | )\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:1\n |\n 1 | ]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '{'\n --> test:1:1\n |\n 1 | {\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '}'\n --> test:1:1\n |\n 1 | }\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ','\n --> test:1:1\n |\n 1 | ,\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '.'\n --> test:1:1\n |\n 1 | .\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '..'\n --> test:1:1\n |\n 1 | ..\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '..'\n --> test:1:1\n |\n 1 | ...\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ';'\n --> test:1:1\n |\n 1 | ;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ':'\n --> test:1:1\n |\n 1 | :\n | ^" + - "did not consume all input: ':' @ 1:2-3\n':' @ 1:3-4\n" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '?'\n --> test:1:1\n |\n 1 | ?\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '->'\n --> test:1:1\n |\n 1 | ->\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '_'\n --> test:1:1\n |\n 1 | _\n | ^" + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370030]: Could not lex the following content: `~`." + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'console'\n --> test:1:1\n |\n 1 | console\n | ^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'const'\n --> test:1:1\n |\n 1 | const\n | ^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'else'\n --> test:1:1\n |\n 1 | else\n | ^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'for'\n --> test:1:1\n |\n 1 | for\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'function'\n --> test:1:1\n |\n 1 | function\n | ^^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'in'\n --> test:1:1\n |\n 1 | in\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'let'\n --> test:1:1\n |\n 1 | let\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'mut'\n --> test:1:1\n |\n 1 | mut\n | ^^^" + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'return'\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'type'\n --> test:1:1\n |\n 1 | type\n | ^^^^" diff --git a/tests/expectations/parser/parser/expression/unary/negate.leo.out b/tests/expectations/parser/parser/expression/unary/negate.leo.out new file mode 100644 index 0000000000..5e31012d5e --- /dev/null +++ b/tests/expectations/parser/parser/expression/unary/negate.leo.out @@ -0,0 +1,99 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + inner: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":2,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"-x\\\"}\"}" + op: Negate + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 3 + path: "" + content: "-x" + - Unary: + inner: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":2,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"-x()\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "-x()" + op: Negate + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: "-x()" + - Unary: + inner: + Unary: + inner: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"--x\\\"}\"}" + op: Negate + span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 4 + path: "" + content: "--x" + op: Negate + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: "--x" + - Unary: + inner: + Unary: + inner: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"-!x\\\"}\"}" + op: Not + span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 4 + path: "" + content: "-!x" + op: Negate + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: "-!x" + - Unary: + inner: + Value: + Integer: + - I8 + - "5" + - span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "-5i8" + op: Negate + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: "-5i8" diff --git a/tests/expectations/parser/parser/expression/unary/not.leo.out b/tests/expectations/parser/parser/expression/unary/not.leo.out new file mode 100644 index 0000000000..221c8c8c35 --- /dev/null +++ b/tests/expectations/parser/parser/expression/unary/not.leo.out @@ -0,0 +1,78 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + inner: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":2,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"!x\\\"}\"}" + op: Not + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 3 + path: "" + content: "!x" + - Unary: + inner: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":2,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"!x()\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 5 + path: "" + content: "!x()" + op: Not + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: "!x()" + - Unary: + inner: + Unary: + inner: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"!!x\\\"}\"}" + op: Not + span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 4 + path: "" + content: "!!x" + op: Not + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: "!!x" + - Unary: + inner: + Unary: + inner: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"!-x\\\"}\"}" + op: Negate + span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 4 + path: "" + content: "!-x" + op: Not + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: "!-x" diff --git a/tests/expectations/parser/parser/functions/annotated_arg_not_ident.leo.out b/tests/expectations/parser/parser/functions/annotated_arg_not_ident.leo.out new file mode 100644 index 0000000000..090eba8942 --- /dev/null +++ b/tests/expectations/parser/parser/functions/annotated_arg_not_ident.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370030]: Could not lex the following content: `@foo(?, bar, ?)\nfunction x() {\n return ();\n}\n\n@bar(123) // ints not vali\nfunction x() {\n return ();\n}\n\n\n@context // recovery witness\nfunction x() {\n return ();\n}\n`." diff --git a/tests/expectations/parser/parser/functions/annotated_context_fail.leo.out b/tests/expectations/parser/parser/functions/annotated_context_fail.leo.out new file mode 100644 index 0000000000..96ece07b38 --- /dev/null +++ b/tests/expectations/parser/parser/functions/annotated_context_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370030]: Could not lex the following content: `@context\nfunction f() {\n return ();\n}\n\n@context // recovery witness\nfunction g() {\n return ();\n}\n`." diff --git a/tests/expectations/parser/parser/functions/bounded_recursion.leo.out b/tests/expectations/parser/parser/functions/bounded_recursion.leo.out new file mode 100644 index 0000000000..579dec9261 --- /dev/null +++ b/tests/expectations/parser/parser/functions/bounded_recursion.leo.out @@ -0,0 +1,199 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(constant y: u32) -> u8 {\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(constant y: u32) -> u8 {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":21,\\\"col_stop\\\":22,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(constant y: u32) -> u8 {\\\"}\"}" + mode: Constant + type_: + IntegerType: U32 + span: + line_start: 3 + line_stop: 3 + col_start: 21 + col_stop: 22 + path: "" + content: "function x(constant y: u32) -> u8 {" + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\" if y < 5u32 {\\\"}\"}" + right: + Value: + Integer: + - U32 + - "5" + - span: + line_start: 4 + line_stop: 4 + col_start: 12 + col_stop: 16 + path: "" + content: " if y < 5u32 {" + op: Lt + span: + line_start: 4 + line_stop: 4 + col_start: 8 + col_stop: 16 + path: "" + content: " if y < 5u32 {" + block: + statements: + - Expression: + expression: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\" x(y+1u32);\\\"}\"}" + arguments: + - Binary: + left: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":11,\\\"col_stop\\\":12,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\" x(y+1u32);\\\"}\"}" + right: + Value: + Integer: + - U32 + - "1" + - span: + line_start: 5 + line_stop: 5 + col_start: 13 + col_stop: 17 + path: "" + content: " x(y+1u32);" + op: Add + span: + line_start: 5 + line_stop: 5 + col_start: 11 + col_stop: 17 + path: "" + content: " x(y+1u32);" + span: + line_start: 5 + line_stop: 5 + col_start: 9 + col_stop: 18 + path: "" + content: " x(y+1u32);" + span: + line_start: 5 + line_stop: 5 + col_start: 9 + col_stop: 18 + path: "" + content: " x(y+1u32);" + span: + line_start: 4 + line_stop: 6 + col_start: 17 + col_stop: 6 + path: "" + content: " if y < 5u32 {\n ...\n }" + next: ~ + span: + line_start: 4 + line_stop: 6 + col_start: 5 + col_stop: 6 + path: "" + content: " if y < 5u32 {\n ...\n }" + span: + line_start: 3 + line_stop: 7 + col_start: 35 + col_stop: 2 + path: "" + content: "function x(constant y: u32) -> u8 {\n ...\n ...\n ...\n}" + span: + line_start: 3 + line_stop: 7 + col_start: 1 + col_stop: 2 + path: "" + content: "function x(constant y: u32) -> u8 {\n ...\n ...\n ...\n}" + "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function main(y: bool) -> bool {\\\"}\"}": + identifier: "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function main(y: bool) -> bool {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":15,\\\"col_stop\\\":16,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function main(y: bool) -> bool {\\\"}\"}" + mode: Private + type_: Boolean + span: + line_start: 9 + line_stop: 9 + col_start: 15 + col_stop: 16 + path: "" + content: "function main(y: bool) -> bool {" + output: Boolean + core_mapping: ~ + block: + statements: + - Expression: + expression: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":10,\\\"line_stop\\\":10,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\" x(1u32);\\\"}\"}" + arguments: + - Value: + Integer: + - U32 + - "1" + - span: + line_start: 10 + line_stop: 10 + col_start: 7 + col_stop: 11 + path: "" + content: " x(1u32);" + span: + line_start: 10 + line_stop: 10 + col_start: 5 + col_stop: 12 + path: "" + content: " x(1u32);" + span: + line_start: 10 + line_stop: 10 + col_start: 5 + col_stop: 12 + path: "" + content: " x(1u32);" + - Return: + expression: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":11,\\\"line_stop\\\":11,\\\"col_start\\\":12,\\\"col_stop\\\":13,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\" return y;\\\"}\"}" + span: + line_start: 11 + line_stop: 11 + col_start: 5 + col_stop: 13 + path: "" + content: " return y;" + span: + line_start: 9 + line_stop: 12 + col_start: 32 + col_stop: 2 + path: "" + content: "function main(y: bool) -> bool {\n ...\n ...\n}" + span: + line_start: 9 + line_stop: 12 + col_start: 1 + col_stop: 2 + path: "" + content: "function main(y: bool) -> bool {\n ...\n ...\n}" diff --git a/tests/expectations/parser/parser/functions/const_input.leo.out b/tests/expectations/parser/parser/functions/const_input.leo.out new file mode 100644 index 0000000000..516ae45c62 --- /dev/null +++ b/tests/expectations/parser/parser/functions/const_input.leo.out @@ -0,0 +1,75 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(const x: u8) -> u8 {}\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(const x: u8) -> u8 {}\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(const x: u8) -> u8 {}\\\"}\"}" + mode: Constant + type_: + IntegerType: U8 + span: + line_start: 3 + line_stop: 3 + col_start: 18 + col_stop: 19 + path: "" + content: "function x(const x: u8) -> u8 {}" + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: [] + span: + line_start: 3 + line_stop: 3 + col_start: 31 + col_stop: 33 + path: "" + content: "function x(const x: u8) -> u8 {}" + span: + line_start: 3 + line_stop: 3 + col_start: 1 + col_stop: 33 + path: "" + content: "function x(const x: u8) -> u8 {}" + "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function y(constant y: u64) -> u8 {}\\\"}\"}": + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function y(constant y: u64) -> u8 {}\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":21,\\\"col_stop\\\":22,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function y(constant y: u64) -> u8 {}\\\"}\"}" + mode: Constant + type_: + IntegerType: U64 + span: + line_start: 5 + line_stop: 5 + col_start: 21 + col_stop: 22 + path: "" + content: "function y(constant y: u64) -> u8 {}" + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: [] + span: + line_start: 5 + line_stop: 5 + col_start: 35 + col_stop: 37 + path: "" + content: "function y(constant y: u64) -> u8 {}" + span: + line_start: 5 + line_stop: 5 + col_start: 1 + col_stop: 37 + path: "" + content: "function y(constant y: u64) -> u8 {}" diff --git a/tests/expectations/parser/parser/functions/const_input_kw_fail.leo.out b/tests/expectations/parser/parser/functions/const_input_kw_fail.leo.out new file mode 100644 index 0000000000..d0d34e7510 --- /dev/null +++ b/tests/expectations/parser/parser/functions/const_input_kw_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'ident', got 'input'\n --> test:3:18\n |\n 3 | function x(const input) {\n | ^^^^^" diff --git a/tests/expectations/parser/parser/functions/const_param.leo.out b/tests/expectations/parser/parser/functions/const_param.leo.out new file mode 100644 index 0000000000..c644507035 --- /dev/null +++ b/tests/expectations/parser/parser/functions/const_param.leo.out @@ -0,0 +1,139 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, constant y: i32) -> u8 {\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, constant y: i32) -> u8 {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":12,\\\"col_stop\\\":13,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, constant y: i32) -> u8 {\\\"}\"}" + mode: Private + type_: + IntegerType: U32 + span: + line_start: 3 + line_stop: 3 + col_start: 12 + col_stop: 13 + path: "" + content: "function x(x: u32, constant y: i32) -> u8 {" + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":29,\\\"col_stop\\\":30,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, constant y: i32) -> u8 {\\\"}\"}" + mode: Constant + type_: + IntegerType: I32 + span: + line_start: 3 + line_stop: 3 + col_start: 29 + col_stop: 30 + path: "" + content: "function x(x: u32, constant y: i32) -> u8 {" + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 4 + line_stop: 4 + col_start: 12 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 4 + line_stop: 4 + col_start: 5 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 3 + line_stop: 5 + col_start: 43 + col_stop: 2 + path: "" + content: "function x(x: u32, constant y: i32) -> u8 {\n ...\n}" + span: + line_start: 3 + line_stop: 5 + col_start: 1 + col_stop: 2 + path: "" + content: "function x(x: u32, constant y: i32) -> u8 {\n ...\n}" + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(constant x: u32, y: i32) -> u8 {\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(constant x: u32, y: i32) -> u8 {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":21,\\\"col_stop\\\":22,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(constant x: u32, y: i32) -> u8 {\\\"}\"}" + mode: Constant + type_: + IntegerType: U32 + span: + line_start: 7 + line_stop: 7 + col_start: 21 + col_stop: 22 + path: "" + content: "function x(constant x: u32, y: i32) -> u8 {" + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":29,\\\"col_stop\\\":30,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(constant x: u32, y: i32) -> u8 {\\\"}\"}" + mode: Private + type_: + IntegerType: I32 + span: + line_start: 7 + line_stop: 7 + col_start: 29 + col_stop: 30 + path: "" + content: "function x(constant x: u32, y: i32) -> u8 {" + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 8 + line_stop: 8 + col_start: 12 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 8 + line_stop: 8 + col_start: 5 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 7 + line_stop: 9 + col_start: 43 + col_stop: 2 + path: "" + content: "function x(constant x: u32, y: i32) -> u8 {\n ...\n}" + span: + line_start: 7 + line_stop: 9 + col_start: 1 + col_stop: 2 + path: "" + content: "function x(constant x: u32, y: i32) -> u8 {\n ...\n}" diff --git a/tests/expectations/parser/parser/functions/const_public_param_fail.leo.out b/tests/expectations/parser/parser/functions/const_public_param_fail.leo.out new file mode 100644 index 0000000000..24c32456b2 --- /dev/null +++ b/tests/expectations/parser/parser/functions/const_public_param_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'ident', got 'public'\n --> test:3:26\n |\n 3 | function x(x: u32, const public y: i32) {\n | ^^^^^^" diff --git a/tests/expectations/parser/parser/functions/empty2.leo.out b/tests/expectations/parser/parser/functions/empty2.leo.out new file mode 100644 index 0000000000..7146daaa83 --- /dev/null +++ b/tests/expectations/parser/parser/functions/empty2.leo.out @@ -0,0 +1,29 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x() -> u8 {}\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x() -> u8 {}\\\"}\"}" + input: [] + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: [] + span: + line_start: 3 + line_stop: 3 + col_start: 20 + col_stop: 22 + path: "" + content: "function x() -> u8 {}" + span: + line_start: 3 + line_stop: 3 + col_start: 1 + col_stop: 22 + path: "" + content: "function x() -> u8 {}" diff --git a/tests/expectations/parser/parser/functions/escape_fail.leo.out b/tests/expectations/parser/parser/functions/escape_fail.leo.out new file mode 100644 index 0000000000..9fe177028c --- /dev/null +++ b/tests/expectations/parser/parser/functions/escape_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370030]: Could not lex the following content: `\\`." diff --git a/tests/expectations/parser/parser/functions/ident_token_fail.leo.out b/tests/expectations/parser/parser/functions/ident_token_fail.leo.out new file mode 100644 index 0000000000..c9f3bc759d --- /dev/null +++ b/tests/expectations/parser/parser/functions/ident_token_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected 'function', 'test' -- got '1'\n --> test:3:1\n |\n 3 | 1 main() {}\n | ^" diff --git a/tests/expectations/parser/parser/functions/infinite_recursion.leo.out b/tests/expectations/parser/parser/functions/infinite_recursion.leo.out new file mode 100644 index 0000000000..85d0c4571e --- /dev/null +++ b/tests/expectations/parser/parser/functions/infinite_recursion.leo.out @@ -0,0 +1,111 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"inf\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":13,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function inf() -> u8 {\\\"}\"}": + identifier: "{\"name\":\"inf\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":13,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function inf() -> u8 {\\\"}\"}" + input: [] + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Expression: + expression: + Call: + function: + Identifier: "{\"name\":\"inf\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":5,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\" inf();\\\"}\"}" + arguments: [] + span: + line_start: 4 + line_stop: 4 + col_start: 5 + col_stop: 10 + path: "" + content: " inf();" + span: + line_start: 4 + line_stop: 4 + col_start: 5 + col_stop: 10 + path: "" + content: " inf();" + span: + line_start: 3 + line_stop: 5 + col_start: 22 + col_stop: 2 + path: "" + content: "function inf() -> u8 {\n ...\n}" + span: + line_start: 3 + line_stop: 5 + col_start: 1 + col_stop: 2 + path: "" + content: "function inf() -> u8 {\n ...\n}" + "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function main(y: bool) -> bool {\\\"}\"}": + identifier: "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function main(y: bool) -> bool {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":15,\\\"col_stop\\\":16,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function main(y: bool) -> bool {\\\"}\"}" + mode: Private + type_: Boolean + span: + line_start: 7 + line_stop: 7 + col_start: 15 + col_stop: 16 + path: "" + content: "function main(y: bool) -> bool {" + output: Boolean + core_mapping: ~ + block: + statements: + - Expression: + expression: + Call: + function: + Identifier: "{\"name\":\"inf\",\"span\":\"{\\\"line_start\\\":8,\\\"line_stop\\\":8,\\\"col_start\\\":5,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\" inf();\\\"}\"}" + arguments: [] + span: + line_start: 8 + line_stop: 8 + col_start: 5 + col_stop: 10 + path: "" + content: " inf();" + span: + line_start: 8 + line_stop: 8 + col_start: 5 + col_stop: 10 + path: "" + content: " inf();" + - Return: + expression: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":12,\\\"col_stop\\\":13,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\" return y;\\\"}\"}" + span: + line_start: 9 + line_stop: 9 + col_start: 5 + col_stop: 13 + path: "" + content: " return y;" + span: + line_start: 7 + line_stop: 10 + col_start: 32 + col_stop: 2 + path: "" + content: "function main(y: bool) -> bool {\n ...\n ...\n}" + span: + line_start: 7 + line_stop: 10 + col_start: 1 + col_stop: 2 + path: "" + content: "function main(y: bool) -> bool {\n ...\n ...\n}" diff --git a/tests/expectations/parser/parser/functions/mut_input_fail.leo.out b/tests/expectations/parser/parser/functions/mut_input_fail.leo.out new file mode 100644 index 0000000000..5714154f71 --- /dev/null +++ b/tests/expectations/parser/parser/functions/mut_input_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370013]: function func(mut a: u32) { ... } is deprecated. Passed variables are mutable by default.\n --> test:3:12\n |\n 3 | function f(mut a: u8) {}\n | ^^^^^\nError [EPAR0370005]: expected -> -- got '{'\n --> test:3:23\n |\n 3 | function f(mut a: u8) {}\n | ^" diff --git a/tests/expectations/parser/parser/functions/params.leo.out b/tests/expectations/parser/parser/functions/params.leo.out new file mode 100644 index 0000000000..ac1d46633e --- /dev/null +++ b/tests/expectations/parser/parser/functions/params.leo.out @@ -0,0 +1,73 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, y: i32) -> u8 {\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, y: i32) -> u8 {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":12,\\\"col_stop\\\":13,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, y: i32) -> u8 {\\\"}\"}" + mode: Private + type_: + IntegerType: U32 + span: + line_start: 3 + line_stop: 3 + col_start: 12 + col_stop: 13 + path: "" + content: "function x(x: u32, y: i32) -> u8 {" + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":20,\\\"col_stop\\\":21,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, y: i32) -> u8 {\\\"}\"}" + mode: Private + type_: + IntegerType: I32 + span: + line_start: 3 + line_stop: 3 + col_start: 20 + col_stop: 21 + path: "" + content: "function x(x: u32, y: i32) -> u8 {" + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 4 + line_stop: 4 + col_start: 12 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 4 + line_stop: 4 + col_start: 5 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 3 + line_stop: 5 + col_start: 34 + col_stop: 2 + path: "" + content: "function x(x: u32, y: i32) -> u8 {\n ...\n}" + span: + line_start: 3 + line_stop: 5 + col_start: 1 + col_stop: 2 + path: "" + content: "function x(x: u32, y: i32) -> u8 {\n ...\n}" diff --git a/tests/expectations/parser/parser/functions/params_return.leo.out b/tests/expectations/parser/parser/functions/params_return.leo.out new file mode 100644 index 0000000000..63e1f7fbdd --- /dev/null +++ b/tests/expectations/parser/parser/functions/params_return.leo.out @@ -0,0 +1,73 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, y: i32) -> u32 {\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, y: i32) -> u32 {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":12,\\\"col_stop\\\":13,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, y: i32) -> u32 {\\\"}\"}" + mode: Private + type_: + IntegerType: U32 + span: + line_start: 3 + line_stop: 3 + col_start: 12 + col_stop: 13 + path: "" + content: "function x(x: u32, y: i32) -> u32 {" + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":20,\\\"col_stop\\\":21,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, y: i32) -> u32 {\\\"}\"}" + mode: Private + type_: + IntegerType: I32 + span: + line_start: 3 + line_stop: 3 + col_start: 20 + col_stop: 21 + path: "" + content: "function x(x: u32, y: i32) -> u32 {" + output: + IntegerType: U32 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 4 + line_stop: 4 + col_start: 12 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 4 + line_stop: 4 + col_start: 5 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 3 + line_stop: 5 + col_start: 35 + col_stop: 2 + path: "" + content: "function x(x: u32, y: i32) -> u32 {\n ...\n}" + span: + line_start: 3 + line_stop: 5 + col_start: 1 + col_stop: 2 + path: "" + content: "function x(x: u32, y: i32) -> u32 {\n ...\n}" diff --git a/tests/expectations/parser/parser/functions/public_const_param_fail.leo.out b/tests/expectations/parser/parser/functions/public_const_param_fail.leo.out new file mode 100644 index 0000000000..2a9735278c --- /dev/null +++ b/tests/expectations/parser/parser/functions/public_const_param_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370042]: 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/parser/functions/public_param.leo.out b/tests/expectations/parser/parser/functions/public_param.leo.out new file mode 100644 index 0000000000..425e4f2594 --- /dev/null +++ b/tests/expectations/parser/parser/functions/public_param.leo.out @@ -0,0 +1,139 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, public y: i32) -> u8 {\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, public y: i32) -> u8 {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":12,\\\"col_stop\\\":13,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, public y: i32) -> u8 {\\\"}\"}" + mode: Private + type_: + IntegerType: U32 + span: + line_start: 3 + line_stop: 3 + col_start: 12 + col_stop: 13 + path: "" + content: "function x(x: u32, public y: i32) -> u8 {" + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":27,\\\"col_stop\\\":28,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(x: u32, public y: i32) -> u8 {\\\"}\"}" + mode: Public + type_: + IntegerType: I32 + span: + line_start: 3 + line_stop: 3 + col_start: 27 + col_stop: 28 + path: "" + content: "function x(x: u32, public y: i32) -> u8 {" + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 4 + line_stop: 4 + col_start: 12 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 4 + line_stop: 4 + col_start: 5 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 3 + line_stop: 5 + col_start: 41 + col_stop: 2 + path: "" + content: "function x(x: u32, public y: i32) -> u8 {\n ...\n}" + span: + line_start: 3 + line_stop: 5 + col_start: 1 + col_stop: 2 + path: "" + content: "function x(x: u32, public y: i32) -> u8 {\n ...\n}" + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(public x: u32, y: i32) -> u8 {\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(public x: u32, y: i32) -> u8 {\\\"}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":19,\\\"col_stop\\\":20,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(public x: u32, y: i32) -> u8 {\\\"}\"}" + mode: Public + type_: + IntegerType: U32 + span: + line_start: 7 + line_stop: 7 + col_start: 19 + col_stop: 20 + path: "" + content: "function x(public x: u32, y: i32) -> u8 {" + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":27,\\\"col_stop\\\":28,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x(public x: u32, y: i32) -> u8 {\\\"}\"}" + mode: Private + type_: + IntegerType: I32 + span: + line_start: 7 + line_stop: 7 + col_start: 27 + col_stop: 28 + path: "" + content: "function x(public x: u32, y: i32) -> u8 {" + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 8 + line_stop: 8 + col_start: 12 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 8 + line_stop: 8 + col_start: 5 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 7 + line_stop: 9 + col_start: 41 + col_stop: 2 + path: "" + content: "function x(public x: u32, y: i32) -> u8 {\n ...\n}" + span: + line_start: 7 + line_stop: 9 + col_start: 1 + col_stop: 2 + path: "" + content: "function x(public x: u32, y: i32) -> u8 {\n ...\n}" diff --git a/tests/expectations/parser/parser/functions/return.leo.out b/tests/expectations/parser/parser/functions/return.leo.out new file mode 100644 index 0000000000..8fd3f027c2 --- /dev/null +++ b/tests/expectations/parser/parser/functions/return.leo.out @@ -0,0 +1,49 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x() -> u32 {\\\"}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function x() -> u32 {\\\"}\"}" + input: [] + output: + IntegerType: U32 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 4 + line_stop: 4 + col_start: 12 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 4 + line_stop: 4 + col_start: 5 + col_stop: 15 + path: "" + content: " return 0u8;" + span: + line_start: 3 + line_stop: 5 + col_start: 21 + col_stop: 2 + path: "" + content: "function x() -> u32 {\n ...\n}" + span: + line_start: 3 + line_stop: 5 + col_start: 1 + col_stop: 2 + path: "" + content: "function x() -> u32 {\n ...\n}" diff --git a/tests/expectations/parser/parser/functions/test_keyword_fail.leo.out b/tests/expectations/parser/parser/functions/test_keyword_fail.leo.out new file mode 100644 index 0000000000..22e16133ed --- /dev/null +++ b/tests/expectations/parser/parser/functions/test_keyword_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370015]: \"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/parser/inputs/input_const.leo.out b/tests/expectations/parser/parser/inputs/input_const.leo.out new file mode 100644 index 0000000000..724f69e2ec --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_const.leo.out @@ -0,0 +1,343 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Constant + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const a: bool = true;\\\"}\"}" + value: + Value: + Boolean: + - "true" + - span: + line_start: 4 + line_stop: 4 + col_start: 18 + col_stop: 22 + path: "" + content: "const a: bool = true;" + span: + line_start: 4 + line_stop: 4 + col_start: 10 + col_stop: 14 + path: "" + content: "const a: bool = true;" + - mode: Constant + type_: + IntegerType: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const b: u8 = 2u8;\\\"}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 5 + line_stop: 5 + col_start: 18 + col_stop: 21 + path: "" + content: "const b: u8 = 2u8;" + span: + line_start: 5 + line_stop: 5 + col_start: 10 + col_stop: 12 + path: "" + content: "const b: u8 = 2u8;" + - mode: Constant + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"line_start\\\":6,\\\"line_stop\\\":6,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const c: field = 0field;\\\"}\"}" + value: + Value: + Field: + - "0" + - span: + line_start: 6 + line_stop: 6 + col_start: 18 + col_stop: 24 + path: "" + content: "const c: field = 0field;" + span: + line_start: 6 + line_stop: 6 + col_start: 10 + col_stop: 15 + path: "" + content: "const c: field = 0field;" + - mode: Constant + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const d: group = (0, 1)group;\\\"}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + line_start: 7 + line_stop: 7 + col_start: 19 + col_stop: 20 + path: "" + content: "const d: group = (0, 1)group;" + y: + Number: + - "1" + - span: + line_start: 7 + line_stop: 7 + col_start: 22 + col_stop: 23 + path: "" + content: "const d: group = (0, 1)group;" + span: + line_start: 7 + line_stop: 7 + col_start: 18 + col_stop: 29 + path: "" + content: "const d: group = (0, 1)group;" + span: + line_start: 7 + line_stop: 7 + col_start: 10 + col_stop: 15 + path: "" + content: "const d: group = (0, 1)group;" + - mode: Constant + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"line_start\\\":8,\\\"line_stop\\\":8,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;\\\"}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + line_start: 8 + line_stop: 8 + col_start: 20 + col_stop: 83 + path: "" + content: "const e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + span: + line_start: 8 + line_stop: 8 + col_start: 10 + col_stop: 17 + path: "" + content: "const e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + - mode: Constant + type_: + IntegerType: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const f: i8 = -2i8;\\\"}\"}" + value: + Unary: + inner: + Value: + Integer: + - I8 + - "2" + - span: + line_start: 9 + line_stop: 9 + col_start: 19 + col_stop: 22 + path: "" + content: "const f: i8 = -2i8;" + op: Negate + span: + line_start: 9 + line_stop: 9 + col_start: 18 + col_stop: 22 + path: "" + content: "const f: i8 = -2i8;" + span: + line_start: 9 + line_stop: 9 + col_start: 10 + col_stop: 12 + path: "" + content: "const f: i8 = -2i8;" + span: + line_start: 3 + line_stop: 3 + col_start: 2 + col_stop: 6 + path: "" + content: "[main]" + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"line_start\\\":12,\\\"line_stop\\\":12,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r0: bool = true;\\\"}\"}" + value: + Value: + Boolean: + - "true" + - span: + line_start: 12 + line_stop: 12 + col_start: 13 + col_stop: 17 + path: "" + content: "r0: bool = true;" + span: + line_start: 12 + line_stop: 12 + col_start: 5 + col_stop: 9 + path: "" + content: "r0: bool = true;" + - mode: Private + type_: + IntegerType: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"line_start\\\":13,\\\"line_stop\\\":13,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r1: u8 = 2u8;\\\"}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 13 + line_stop: 13 + col_start: 13 + col_stop: 16 + path: "" + content: "r1: u8 = 2u8;" + span: + line_start: 13 + line_stop: 13 + col_start: 5 + col_stop: 7 + path: "" + content: "r1: u8 = 2u8;" + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r2: field = 0field;\\\"}\"}" + value: + Value: + Field: + - "0" + - span: + line_start: 14 + line_stop: 14 + col_start: 13 + col_stop: 19 + path: "" + content: "r2: field = 0field;" + span: + line_start: 14 + line_stop: 14 + col_start: 5 + col_stop: 10 + path: "" + content: "r2: field = 0field;" + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"line_start\\\":15,\\\"line_stop\\\":15,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r3: group = (0, 1)group;\\\"}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + line_start: 15 + line_stop: 15 + col_start: 14 + col_stop: 15 + path: "" + content: "r3: group = (0, 1)group;" + y: + Number: + - "1" + - span: + line_start: 15 + line_stop: 15 + col_start: 17 + col_stop: 18 + path: "" + content: "r3: group = (0, 1)group;" + span: + line_start: 15 + line_stop: 15 + col_start: 13 + col_stop: 24 + path: "" + content: "r3: group = (0, 1)group;" + span: + line_start: 15 + line_stop: 15 + col_start: 5 + col_stop: 10 + path: "" + content: "r3: group = (0, 1)group;" + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"line_start\\\":16,\\\"line_stop\\\":16,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;\\\"}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + line_start: 16 + line_stop: 16 + col_start: 15 + col_stop: 78 + path: "" + content: "r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + span: + line_start: 16 + line_stop: 16 + col_start: 5 + col_stop: 12 + path: "" + content: "r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + - mode: Private + type_: + IntegerType: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"line_start\\\":17,\\\"line_stop\\\":17,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r4: i8 = -1i8;\\\"}\"}" + value: + Unary: + inner: + Value: + Integer: + - I8 + - "1" + - span: + line_start: 17 + line_stop: 17 + col_start: 11 + col_stop: 14 + path: "" + content: "r4: i8 = -1i8;" + op: Negate + span: + line_start: 17 + line_stop: 17 + col_start: 10 + col_stop: 14 + path: "" + content: "r4: i8 = -1i8;" + span: + line_start: 17 + line_stop: 17 + col_start: 5 + col_stop: 7 + path: "" + content: "r4: i8 = -1i8;" + span: + line_start: 11 + line_stop: 11 + col_start: 2 + col_stop: 11 + path: "" + content: "[registers]" diff --git a/tests/expectations/parser/parser/inputs/input_constant.leo.out b/tests/expectations/parser/parser/inputs/input_constant.leo.out new file mode 100644 index 0000000000..14bf25cf8a --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_constant.leo.out @@ -0,0 +1,343 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Constant + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"constant a: bool = true;\\\"}\"}" + value: + Value: + Boolean: + - "true" + - span: + line_start: 4 + line_stop: 4 + col_start: 21 + col_stop: 25 + path: "" + content: "constant a: bool = true;" + span: + line_start: 4 + line_stop: 4 + col_start: 13 + col_stop: 17 + path: "" + content: "constant a: bool = true;" + - mode: Constant + type_: + IntegerType: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"constant b: u8 = 2u8;\\\"}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 5 + line_stop: 5 + col_start: 21 + col_stop: 24 + path: "" + content: "constant b: u8 = 2u8;" + span: + line_start: 5 + line_stop: 5 + col_start: 13 + col_stop: 15 + path: "" + content: "constant b: u8 = 2u8;" + - mode: Constant + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"line_start\\\":6,\\\"line_stop\\\":6,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"constant c: field = 0field;\\\"}\"}" + value: + Value: + Field: + - "0" + - span: + line_start: 6 + line_stop: 6 + col_start: 21 + col_stop: 27 + path: "" + content: "constant c: field = 0field;" + span: + line_start: 6 + line_stop: 6 + col_start: 13 + col_stop: 18 + path: "" + content: "constant c: field = 0field;" + - mode: Constant + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"constant d: group = (0, 1)group;\\\"}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + line_start: 7 + line_stop: 7 + col_start: 22 + col_stop: 23 + path: "" + content: "constant d: group = (0, 1)group;" + y: + Number: + - "1" + - span: + line_start: 7 + line_stop: 7 + col_start: 25 + col_stop: 26 + path: "" + content: "constant d: group = (0, 1)group;" + span: + line_start: 7 + line_stop: 7 + col_start: 21 + col_stop: 32 + path: "" + content: "constant d: group = (0, 1)group;" + span: + line_start: 7 + line_stop: 7 + col_start: 13 + col_stop: 18 + path: "" + content: "constant d: group = (0, 1)group;" + - mode: Constant + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"line_start\\\":8,\\\"line_stop\\\":8,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"constant e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;\\\"}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + line_start: 8 + line_stop: 8 + col_start: 23 + col_stop: 86 + path: "" + content: "constant e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + span: + line_start: 8 + line_stop: 8 + col_start: 13 + col_stop: 20 + path: "" + content: "constant e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + - mode: Constant + type_: + IntegerType: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"constant f: i8 = -2i8;\\\"}\"}" + value: + Unary: + inner: + Value: + Integer: + - I8 + - "2" + - span: + line_start: 9 + line_stop: 9 + col_start: 22 + col_stop: 25 + path: "" + content: "constant f: i8 = -2i8;" + op: Negate + span: + line_start: 9 + line_stop: 9 + col_start: 21 + col_stop: 25 + path: "" + content: "constant f: i8 = -2i8;" + span: + line_start: 9 + line_stop: 9 + col_start: 13 + col_stop: 15 + path: "" + content: "constant f: i8 = -2i8;" + span: + line_start: 3 + line_stop: 3 + col_start: 2 + col_stop: 6 + path: "" + content: "[main]" + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"line_start\\\":12,\\\"line_stop\\\":12,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r0: bool = true;\\\"}\"}" + value: + Value: + Boolean: + - "true" + - span: + line_start: 12 + line_stop: 12 + col_start: 13 + col_stop: 17 + path: "" + content: "r0: bool = true;" + span: + line_start: 12 + line_stop: 12 + col_start: 5 + col_stop: 9 + path: "" + content: "r0: bool = true;" + - mode: Private + type_: + IntegerType: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"line_start\\\":13,\\\"line_stop\\\":13,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r1: u8 = 2u8;\\\"}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 13 + line_stop: 13 + col_start: 13 + col_stop: 16 + path: "" + content: "r1: u8 = 2u8;" + span: + line_start: 13 + line_stop: 13 + col_start: 5 + col_stop: 7 + path: "" + content: "r1: u8 = 2u8;" + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r2: field = 0field;\\\"}\"}" + value: + Value: + Field: + - "0" + - span: + line_start: 14 + line_stop: 14 + col_start: 13 + col_stop: 19 + path: "" + content: "r2: field = 0field;" + span: + line_start: 14 + line_stop: 14 + col_start: 5 + col_stop: 10 + path: "" + content: "r2: field = 0field;" + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"line_start\\\":15,\\\"line_stop\\\":15,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r3: group = (0, 1)group;\\\"}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + line_start: 15 + line_stop: 15 + col_start: 14 + col_stop: 15 + path: "" + content: "r3: group = (0, 1)group;" + y: + Number: + - "1" + - span: + line_start: 15 + line_stop: 15 + col_start: 17 + col_stop: 18 + path: "" + content: "r3: group = (0, 1)group;" + span: + line_start: 15 + line_stop: 15 + col_start: 13 + col_stop: 24 + path: "" + content: "r3: group = (0, 1)group;" + span: + line_start: 15 + line_stop: 15 + col_start: 5 + col_stop: 10 + path: "" + content: "r3: group = (0, 1)group;" + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"line_start\\\":16,\\\"line_stop\\\":16,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;\\\"}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + line_start: 16 + line_stop: 16 + col_start: 15 + col_stop: 78 + path: "" + content: "r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + span: + line_start: 16 + line_stop: 16 + col_start: 5 + col_stop: 12 + path: "" + content: "r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + - mode: Private + type_: + IntegerType: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"line_start\\\":17,\\\"line_stop\\\":17,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r4: i8 = -1i8;\\\"}\"}" + value: + Unary: + inner: + Value: + Integer: + - I8 + - "1" + - span: + line_start: 17 + line_stop: 17 + col_start: 11 + col_stop: 14 + path: "" + content: "r4: i8 = -1i8;" + op: Negate + span: + line_start: 17 + line_stop: 17 + col_start: 10 + col_stop: 14 + path: "" + content: "r4: i8 = -1i8;" + span: + line_start: 17 + line_stop: 17 + col_start: 5 + col_stop: 7 + path: "" + content: "r4: i8 = -1i8;" + span: + line_start: 11 + line_stop: 11 + col_start: 2 + col_stop: 11 + path: "" + content: "[registers]" diff --git a/tests/expectations/parser/parser/inputs/input_constant_public_fail.leo.out b/tests/expectations/parser/parser/inputs/input_constant_public_fail.leo.out new file mode 100644 index 0000000000..f618c2ebbb --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_constant_public_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Input +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'ident', got 'public'\n --> test:4:10\n |\n 4 | constant public a: bool = true; \n | ^^^^^^" diff --git a/tests/expectations/parser/parser/inputs/input_fail.leo.out b/tests/expectations/parser/parser/inputs/input_fail.leo.out new file mode 100644 index 0000000000..5f8bf95de3 --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_fail.leo.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/parser/inputs/input_public.leo.out b/tests/expectations/parser/parser/inputs/input_public.leo.out new file mode 100644 index 0000000000..bc227b0b1c --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_public.leo.out @@ -0,0 +1,343 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Public + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":4,\\\"line_stop\\\":4,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"public a: bool = true; \\\"}\"}" + value: + Value: + Boolean: + - "true" + - span: + line_start: 4 + line_stop: 4 + col_start: 19 + col_stop: 23 + path: "" + content: "public a: bool = true; " + span: + line_start: 4 + line_stop: 4 + col_start: 11 + col_stop: 15 + path: "" + content: "public a: bool = true; " + - mode: Public + type_: + IntegerType: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":5,\\\"line_stop\\\":5,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"public b: u8 = 2u8; \\\"}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 5 + line_stop: 5 + col_start: 19 + col_stop: 22 + path: "" + content: "public b: u8 = 2u8; " + span: + line_start: 5 + line_stop: 5 + col_start: 11 + col_stop: 13 + path: "" + content: "public b: u8 = 2u8; " + - mode: Public + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"line_start\\\":6,\\\"line_stop\\\":6,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"public c: field = 0field; \\\"}\"}" + value: + Value: + Field: + - "0" + - span: + line_start: 6 + line_stop: 6 + col_start: 19 + col_stop: 25 + path: "" + content: "public c: field = 0field; " + span: + line_start: 6 + line_stop: 6 + col_start: 11 + col_stop: 16 + path: "" + content: "public c: field = 0field; " + - mode: Public + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"line_start\\\":7,\\\"line_stop\\\":7,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"public d: group = (0, 1)group; \\\"}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + line_start: 7 + line_stop: 7 + col_start: 20 + col_stop: 21 + path: "" + content: "public d: group = (0, 1)group; " + y: + Number: + - "1" + - span: + line_start: 7 + line_stop: 7 + col_start: 23 + col_stop: 24 + path: "" + content: "public d: group = (0, 1)group; " + span: + line_start: 7 + line_stop: 7 + col_start: 19 + col_stop: 30 + path: "" + content: "public d: group = (0, 1)group; " + span: + line_start: 7 + line_stop: 7 + col_start: 11 + col_stop: 16 + path: "" + content: "public d: group = (0, 1)group; " + - mode: Public + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"line_start\\\":8,\\\"line_stop\\\":8,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"public e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;\\\"}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + line_start: 8 + line_stop: 8 + col_start: 21 + col_stop: 84 + path: "" + content: "public e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + span: + line_start: 8 + line_stop: 8 + col_start: 11 + col_stop: 18 + path: "" + content: "public e: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + - mode: Public + type_: + IntegerType: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"line_start\\\":9,\\\"line_stop\\\":9,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"public f: i8 = -2i8;\\\"}\"}" + value: + Unary: + inner: + Value: + Integer: + - I8 + - "2" + - span: + line_start: 9 + line_stop: 9 + col_start: 20 + col_stop: 23 + path: "" + content: "public f: i8 = -2i8;" + op: Negate + span: + line_start: 9 + line_stop: 9 + col_start: 19 + col_stop: 23 + path: "" + content: "public f: i8 = -2i8;" + span: + line_start: 9 + line_stop: 9 + col_start: 11 + col_stop: 13 + path: "" + content: "public f: i8 = -2i8;" + span: + line_start: 3 + line_stop: 3 + col_start: 2 + col_stop: 6 + path: "" + content: "[main]" + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"line_start\\\":12,\\\"line_stop\\\":12,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r0: bool = true; \\\"}\"}" + value: + Value: + Boolean: + - "true" + - span: + line_start: 12 + line_stop: 12 + col_start: 13 + col_stop: 17 + path: "" + content: "r0: bool = true; " + span: + line_start: 12 + line_stop: 12 + col_start: 5 + col_stop: 9 + path: "" + content: "r0: bool = true; " + - mode: Private + type_: + IntegerType: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"line_start\\\":13,\\\"line_stop\\\":13,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r1: u8 = 2u8; \\\"}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + line_start: 13 + line_stop: 13 + col_start: 13 + col_stop: 16 + path: "" + content: "r1: u8 = 2u8; " + span: + line_start: 13 + line_stop: 13 + col_start: 5 + col_stop: 7 + path: "" + content: "r1: u8 = 2u8; " + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"line_start\\\":14,\\\"line_stop\\\":14,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r2: field = 0field; \\\"}\"}" + value: + Value: + Field: + - "0" + - span: + line_start: 14 + line_stop: 14 + col_start: 13 + col_stop: 19 + path: "" + content: "r2: field = 0field; " + span: + line_start: 14 + line_stop: 14 + col_start: 5 + col_stop: 10 + path: "" + content: "r2: field = 0field; " + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"line_start\\\":15,\\\"line_stop\\\":15,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r3: group = (0, 1)group; \\\"}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + line_start: 15 + line_stop: 15 + col_start: 14 + col_stop: 15 + path: "" + content: "r3: group = (0, 1)group; " + y: + Number: + - "1" + - span: + line_start: 15 + line_stop: 15 + col_start: 17 + col_stop: 18 + path: "" + content: "r3: group = (0, 1)group; " + span: + line_start: 15 + line_stop: 15 + col_start: 13 + col_stop: 24 + path: "" + content: "r3: group = (0, 1)group; " + span: + line_start: 15 + line_stop: 15 + col_start: 5 + col_stop: 10 + path: "" + content: "r3: group = (0, 1)group; " + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"line_start\\\":16,\\\"line_stop\\\":16,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;\\\"}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + line_start: 16 + line_stop: 16 + col_start: 15 + col_stop: 78 + path: "" + content: "r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + span: + line_start: 16 + line_stop: 16 + col_start: 5 + col_stop: 12 + path: "" + content: "r4: address = aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8;" + - mode: Private + type_: + IntegerType: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"line_start\\\":17,\\\"line_stop\\\":17,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"r4: i8 = -1i8;\\\"}\"}" + value: + Unary: + inner: + Value: + Integer: + - I8 + - "1" + - span: + line_start: 17 + line_stop: 17 + col_start: 11 + col_stop: 14 + path: "" + content: "r4: i8 = -1i8;" + op: Negate + span: + line_start: 17 + line_stop: 17 + col_start: 10 + col_stop: 14 + path: "" + content: "r4: i8 = -1i8;" + span: + line_start: 17 + line_stop: 17 + col_start: 5 + col_stop: 7 + path: "" + content: "r4: i8 = -1i8;" + span: + line_start: 11 + line_stop: 11 + col_start: 2 + col_stop: 11 + path: "" + content: "[registers]" diff --git a/tests/expectations/parser/parser/inputs/input_public_constant_fail.leo.out b/tests/expectations/parser/parser/inputs/input_public_constant_fail.leo.out new file mode 100644 index 0000000000..a1a24549d6 --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_public_constant_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Input +expectation: Fail +outputs: + - "Error [EPAR0370042]: 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/parser/program/backslash_eof.leo.out b/tests/expectations/parser/parser/program/backslash_eof.leo.out new file mode 100644 index 0000000000..9fe177028c --- /dev/null +++ b/tests/expectations/parser/parser/program/backslash_eof.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370030]: Could not lex the following content: `\\`." diff --git a/tests/expectations/parser/parser/program/bidi_comment_2_fail.leo.out b/tests/expectations/parser/parser/program/bidi_comment_2_fail.leo.out new file mode 100644 index 0000000000..7a30e47e4a --- /dev/null +++ b/tests/expectations/parser/parser/program/bidi_comment_2_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370044]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/program/bidi_comment_fail.leo.out b/tests/expectations/parser/parser/program/bidi_comment_fail.leo.out new file mode 100644 index 0000000000..7a30e47e4a --- /dev/null +++ b/tests/expectations/parser/parser/program/bidi_comment_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370044]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/program/dollar_eof.leo.out b/tests/expectations/parser/parser/program/dollar_eof.leo.out new file mode 100644 index 0000000000..1d418a4b25 --- /dev/null +++ b/tests/expectations/parser/parser/program/dollar_eof.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370030]: Could not lex the following content: `$`." diff --git a/tests/expectations/parser/parser/program/escape_u8_eof.leo.out b/tests/expectations/parser/parser/program/escape_u8_eof.leo.out new file mode 100644 index 0000000000..2973be8cc8 --- /dev/null +++ b/tests/expectations/parser/parser/program/escape_u8_eof.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370030]: Could not lex the following content: `\\1u8`." diff --git a/tests/expectations/parser/parser/program/hex_eof.leo.out b/tests/expectations/parser/parser/program/hex_eof.leo.out new file mode 100644 index 0000000000..f8cd3c63e8 --- /dev/null +++ b/tests/expectations/parser/parser/program/hex_eof.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370036]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/program/pipe_eof.leo.out b/tests/expectations/parser/parser/program/pipe_eof.leo.out new file mode 100644 index 0000000000..5c1018440c --- /dev/null +++ b/tests/expectations/parser/parser/program/pipe_eof.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370023]: Expected more characters to lex but found none." diff --git a/tests/expectations/parser/parser/program/q_eof.leo.out b/tests/expectations/parser/parser/program/q_eof.leo.out new file mode 100644 index 0000000000..185a49721f --- /dev/null +++ b/tests/expectations/parser/parser/program/q_eof.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370025]: Expected a closed string but found ``." diff --git a/tests/expectations/parser/parser/program/sq_eof.leo.out b/tests/expectations/parser/parser/program/sq_eof.leo.out new file mode 100644 index 0000000000..5c1018440c --- /dev/null +++ b/tests/expectations/parser/parser/program/sq_eof.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370023]: Expected more characters to lex but found none." diff --git a/tests/expectations/parser/parser/program/tilde_eof.leo.out b/tests/expectations/parser/parser/program/tilde_eof.leo.out new file mode 100644 index 0000000000..02b455d02b --- /dev/null +++ b/tests/expectations/parser/parser/program/tilde_eof.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370030]: Could not lex the following content: `~`." diff --git a/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.leo.out b/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.leo.out new file mode 100644 index 0000000000..5c1018440c --- /dev/null +++ b/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370023]: Expected more characters to lex but found none." diff --git a/tests/expectations/parser/parser/serialize/one_plus_one.leo.out b/tests/expectations/parser/parser/serialize/one_plus_one.leo.out new file mode 100644 index 0000000000..a03a921c9c --- /dev/null +++ b/tests/expectations/parser/parser/serialize/one_plus_one.leo.out @@ -0,0 +1,29 @@ +--- +namespace: Serialize +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function main() -> u8 {\\\"}\"}": + identifier: "{\"name\":\"main\",\"span\":\"{\\\"line_start\\\":3,\\\"line_stop\\\":3,\\\"col_start\\\":10,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"function main() -> u8 {\\\"}\"}" + input: [] + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Binary: + left: + Value: + Integer: + - U8 + - "1" + right: + Value: + Integer: + - U8 + - "1" + op: Add diff --git a/tests/expectations/parser/parser/serialize/parser_error.leo.out b/tests/expectations/parser/parser/serialize/parser_error.leo.out new file mode 100644 index 0000000000..62f5bf28f9 --- /dev/null +++ b/tests/expectations/parser/parser/serialize/parser_error.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Serialize +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected 'function', 'test' -- got 'invalid'\n --> test:3:1\n |\n 3 | invalid\n | ^^^^^^^" diff --git a/tests/expectations/parser/parser/statement/assign.leo.out b/tests/expectations/parser/parser/statement/assign.leo.out new file mode 100644 index 0000000000..b87db92545 --- /dev/null +++ b/tests/expectations/parser/parser/statement/assign.leo.out @@ -0,0 +1,89 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x = expr;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 2 + path: "" + content: x = expr; + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: x = expr; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x = x+y;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 2 + path: "" + content: x = x+y; + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x = x+y;\\\"}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x = x+y;\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: x = x+y; + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: x = x+y; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x = x();\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 2 + path: "" + content: x = x(); + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x = x();\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 8 + path: "" + content: x = x(); + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: x = x(); diff --git a/tests/expectations/parser/parser/statement/assign_fail.leo.out b/tests/expectations/parser/parser/statement/assign_fail.leo.out new file mode 100644 index 0000000000..f41b61429d --- /dev/null +++ b/tests/expectations/parser/parser/statement/assign_fail.leo.out @@ -0,0 +1,18 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::y = y;\n | ^" + - "Error [EPAR0370032]: Could not parse the implicit value: 5.\n --> test:1:1\n |\n 1 | 5 = y;\n | ^" + - "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | x + x = y;\n | ^^^^^" + - "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | -x = y;\n | ^^" + - "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | !x = y;\n | ^^" + - "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | a? x : x = y;\n | ^^^^^^^^" + - "Error [EPAR0370005]: expected ; -- got 'as'\n --> test:1:3\n |\n 1 | x as u32 = y;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [x, x, x] = y;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [x; 3] = y;\n | ^" + - "Error [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:1\n |\n 1 | (x, x, x) = y;\n | ^^^^^^^^^" + - "Error [EPAR0370005]: expected ; -- got '{'\n --> test:1:3\n |\n 1 | x {x: y, y: z} = y;\n | ^" + - "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | x() = y;\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got 'y'\n --> test:1:3\n |\n 1 | x.y() = y;\n | ^" + - "Error [EPAR0370030]: Could not lex the following content: `🦀 = y;`." diff --git a/tests/expectations/parser/parser/statement/block.leo.out b/tests/expectations/parser/parser/statement/block.leo.out new file mode 100644 index 0000000000..c469fbdf47 --- /dev/null +++ b/tests/expectations/parser/parser/statement/block.leo.out @@ -0,0 +1,147 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Block: + statements: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 3 + path: "" + content: "{}" + - Block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 2 + line_stop: 2 + col_start: 8 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 2 + line_stop: 2 + col_start: 1 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 1 + line_stop: 3 + col_start: 1 + col_stop: 2 + path: "" + content: "{\n ...\n}" + - Block: + statements: + - Block: + statements: [] + span: + line_start: 1 + line_stop: 1 + col_start: 2 + col_stop: 4 + path: "" + content: "{{}}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: "{{}}" + - Block: + statements: + - Block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 3 + line_stop: 3 + col_start: 8 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 3 + line_stop: 3 + col_start: 1 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 2 + line_stop: 4 + col_start: 1 + col_stop: 2 + path: "" + content: "{\n ...\n}" + span: + line_start: 1 + line_stop: 5 + col_start: 1 + col_stop: 2 + path: "" + content: "{\n ...\n ...\n ...\n}" + - Block: + statements: + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":2,\\\"line_stop\\\":2,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if x {\\\"}\"}" + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 3 + line_stop: 3 + col_start: 8 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 3 + line_stop: 3 + col_start: 1 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 2 + line_stop: 4 + col_start: 6 + col_stop: 2 + path: "" + content: "if x {\n ...\n}" + next: ~ + span: + line_start: 2 + line_stop: 4 + col_start: 1 + col_stop: 2 + path: "" + content: "if x {\n ...\n}" + span: + line_start: 1 + line_stop: 5 + col_start: 1 + col_stop: 2 + path: "" + content: "{\n ...\n ...\n ...\n}" diff --git a/tests/expectations/parser/parser/statement/conditional.leo.out b/tests/expectations/parser/parser/statement/conditional.leo.out new file mode 100644 index 0000000000..2b4a24e511 --- /dev/null +++ b/tests/expectations/parser/parser/statement/conditional.leo.out @@ -0,0 +1,248 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if x {\\\"}\"}" + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 2 + line_stop: 2 + col_start: 8 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 2 + line_stop: 2 + col_start: 1 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 1 + line_stop: 3 + col_start: 6 + col_stop: 2 + path: "" + content: "if x {\n ...\n}" + next: ~ + span: + line_start: 1 + line_stop: 3 + col_start: 1 + col_stop: 2 + path: "" + content: "if x {\n ...\n}" + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if (x) {\\\"}\"}" + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 2 + line_stop: 2 + col_start: 8 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 2 + line_stop: 2 + col_start: 1 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 1 + line_stop: 3 + col_start: 8 + col_stop: 2 + path: "" + content: "if (x) {\n ...\n}" + next: ~ + span: + line_start: 1 + line_stop: 3 + col_start: 1 + col_stop: 2 + path: "" + content: "if (x) {\n ...\n}" + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if (x) {} else {}\\\"}\"}" + block: + statements: [] + span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 10 + path: "" + content: "if (x) {} else {}" + next: + Block: + statements: [] + span: + line_start: 1 + line_stop: 1 + col_start: 16 + col_stop: 18 + path: "" + content: "if (x) {} else {}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "if (x) {} else {}" + - Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if x+y {} else if x+z {} else {}\\\"}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if x+y {} else if x+z {} else {}\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 4 + col_stop: 7 + path: "" + content: "if x+y {} else if x+z {} else {}" + block: + statements: [] + span: + line_start: 1 + line_stop: 1 + col_start: 8 + col_stop: 10 + path: "" + content: "if x+y {} else if x+z {} else {}" + next: + Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":19,\\\"col_stop\\\":20,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if x+y {} else if x+z {} else {}\\\"}\"}" + right: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":21,\\\"col_stop\\\":22,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if x+y {} else if x+z {} else {}\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: "if x+y {} else if x+z {} else {}" + block: + statements: [] + span: + line_start: 1 + line_stop: 1 + col_start: 23 + col_stop: 25 + path: "" + content: "if x+y {} else if x+z {} else {}" + next: + Block: + statements: [] + span: + line_start: 1 + line_stop: 1 + col_start: 31 + col_stop: 33 + path: "" + content: "if x+y {} else if x+z {} else {}" + span: + line_start: 1 + line_stop: 1 + col_start: 16 + col_stop: 33 + path: "" + content: "if x+y {} else if x+z {} else {}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 33 + path: "" + content: "if x+y {} else if x+z {} else {}" + - Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if x+y {\\\"}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"if x+y {\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 4 + col_stop: 7 + path: "" + content: "if x+y {" + block: + statements: + - Expression: + expression: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"line_start\\\":2,\\\"line_stop\\\":2,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"expr;\\\"}\"}" + span: + line_start: 2 + line_stop: 2 + col_start: 1 + col_stop: 5 + path: "" + content: expr; + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 3 + line_stop: 3 + col_start: 8 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 3 + line_stop: 3 + col_start: 1 + col_stop: 11 + path: "" + content: return 0u8; + span: + line_start: 1 + line_stop: 4 + col_start: 8 + col_stop: 2 + path: "" + content: "if x+y {\n ...\n ...\n}" + next: ~ + span: + line_start: 1 + line_stop: 4 + col_start: 1 + col_stop: 2 + path: "" + content: "if x+y {\n ...\n ...\n}" diff --git a/tests/expectations/parser/parser/statement/conditional_fail.leo.out b/tests/expectations/parser/parser/statement/conditional_fail.leo.out new file mode 100644 index 0000000000..1150138dbb --- /dev/null +++ b/tests/expectations/parser/parser/statement/conditional_fail.leo.out @@ -0,0 +1,5 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:23\n |\n 1 | if true {} else let x = 2;\n | ^" diff --git a/tests/expectations/parser/parser/statement/console.leo.out b/tests/expectations/parser/parser/statement/console.leo.out new file mode 100644 index 0000000000..ac03e47b00 --- /dev/null +++ b/tests/expectations/parser/parser/statement/console.leo.out @@ -0,0 +1,149 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Console: + function: + Assert: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"console.assert(x);\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: console.assert(x); + - Console: + function: + Error: + string: + - Scalar: 123 + - Scalar: 125 + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":21,\\\"col_stop\\\":22,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"console.error(\\\\\\\"{}\\\\\\\", x);\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 23 + path: "" + content: "console.error(\"{}\", x);" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 23 + path: "" + content: "console.error(\"{}\", x);" + - Console: + function: + Error: + string: + - Scalar: 123 + - Scalar: 125 + - Scalar: 123 + - Scalar: 125 + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":23,\\\"col_stop\\\":24,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"console.error(\\\\\\\"{}{}\\\\\\\", x, y);\\\"}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":26,\\\"col_stop\\\":27,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"console.error(\\\\\\\"{}{}\\\\\\\", x, y);\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 28 + path: "" + content: "console.error(\"{}{}\", x, y);" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 28 + path: "" + content: "console.error(\"{}{}\", x, y);" + - Console: + function: + Error: + string: + - Scalar: 120 + parameters: [] + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 19 + path: "" + content: "console.error(\"x\");" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "console.error(\"x\");" + - Console: + function: + Log: + string: + - Scalar: 123 + - Scalar: 125 + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":19,\\\"col_stop\\\":20,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"console.log(\\\\\\\"{}\\\\\\\", x);\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 12 + col_stop: 21 + path: "" + content: "console.log(\"{}\", x);" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 21 + path: "" + content: "console.log(\"{}\", x);" + - Console: + function: + Log: + string: + - Scalar: 123 + - Scalar: 125 + - Scalar: 123 + - Scalar: 125 + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":21,\\\"col_stop\\\":22,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"console.log(\\\\\\\"{}{}\\\\\\\", x, y);\\\"}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":24,\\\"col_stop\\\":25,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"console.log(\\\\\\\"{}{}\\\\\\\", x, y);\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 12 + col_stop: 26 + path: "" + content: "console.log(\"{}{}\", x, y);" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 26 + path: "" + content: "console.log(\"{}{}\", x, y);" + - Console: + function: + Log: + string: + - Scalar: 120 + parameters: [] + span: + line_start: 1 + line_stop: 1 + col_start: 12 + col_stop: 17 + path: "" + content: "console.log(\"x\");" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "console.log(\"x\");" diff --git a/tests/expectations/parser/parser/statement/console_fail.leo.out b/tests/expectations/parser/parser/statement/console_fail.leo.out new file mode 100644 index 0000000000..af7d33fe51 --- /dev/null +++ b/tests/expectations/parser/parser/statement/console_fail.leo.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370044]: Unicode bidi override code point encountered." + - "Error [EPAR0370009]: unexpected string: expected 'formatted string', got '1'\n --> test:1:13\n |\n 1 | console.log(1);\n | ^" + - "Error [EPAR0370007]: unexpected identifier: expected 'assert', 'error', 'log' -- got 'test'\n --> test:1:9\n |\n 1 | console.test();\n | ^^^^" diff --git a/tests/expectations/parser/parser/statement/definition.leo.out b/tests/expectations/parser/parser/statement/definition.leo.out new file mode 100644 index 0000000000..7e5a3f1037 --- /dev/null +++ b/tests/expectations/parser/parser/statement/definition.leo.out @@ -0,0 +1,399 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = expr;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = expr;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u16 = x+y;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u16 = x+y;" + type_: + IntegerType: U16 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u16 = x+y;\\\"}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u16 = x+y;\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: "let x: u16 = x+y;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u16 = x+y;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = x();\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = x();" + type_: + IntegerType: U8 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = x();\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 16 + path: "" + content: "let x: u8 = x();" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "let x: u8 = x();" + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: i8 = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 8 + path: "" + content: "const x: i8 = expr;" + type_: + IntegerType: I8 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":15,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: i8 = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "const x: i8 = expr;" + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: i16 = x+y;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 8 + path: "" + content: "const x: i16 = x+y;" + type_: + IntegerType: I16 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: i16 = x+y;\\\"}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: i16 = x+y;\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 16 + col_stop: 19 + path: "" + content: "const x: i16 = x+y;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "const x: i16 = x+y;" + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: i8 = x();\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 8 + path: "" + content: "const x: i8 = x();" + type_: + IntegerType: I8 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":15,\\\"col_stop\\\":16,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: i8 = x();\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 15 + col_stop: 18 + path: "" + content: "const x: i8 = x();" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "const x: i8 = x();" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u32 = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u32 = expr;" + type_: + IntegerType: U32 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":14,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u32 = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u32 = expr;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u32 = x+y;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u32 = x+y;" + type_: + IntegerType: U32 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u32 = x+y;\\\"}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u32 = x+y;\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: "let x: u32 = x+y;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u32 = x+y;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u32 = x();\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u32 = x();" + type_: + IntegerType: U32 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":14,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u32 = x();\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: "let x: u32 = x();" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u32 = x();" + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: u32 = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 8 + path: "" + content: "const x: u32 = expr;" + type_: + IntegerType: U32 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":16,\\\"col_stop\\\":20,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: u32 = expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 20 + path: "" + content: "const x: u32 = expr;" + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: u32 = x+y;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 8 + path: "" + content: "const x: u32 = x+y;" + type_: + IntegerType: U32 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: u32 = x+y;\\\"}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: u32 = x+y;\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 16 + col_stop: 19 + path: "" + content: "const x: u32 = x+y;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "const x: u32 = x+y;" + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: u32 = x();\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 7 + col_stop: 8 + path: "" + content: "const x: u32 = x();" + type_: + IntegerType: U32 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":16,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"const x: u32 = x();\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 16 + col_stop: 19 + path: "" + content: "const x: u32 = x();" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "const x: u32 = x();" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: address = aleo15u4r0gzjtqzepkgurgn7p3u5kkhs9p74rx6aun3uh2s5std6759svgmg53;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: address = aleo15u4r0gzjtqzepkgurgn7p3u5kkhs9p74rx6aun3uh2s5std6759svgmg53;" + type_: Address + value: + Value: + Address: + - aleo15u4r0gzjtqzepkgurgn7p3u5kkhs9p74rx6aun3uh2s5std6759svgmg53 + - span: + line_start: 1 + line_stop: 1 + col_start: 18 + col_stop: 81 + path: "" + content: "let x: address = aleo15u4r0gzjtqzepkgurgn7p3u5kkhs9p74rx6aun3uh2s5std6759svgmg53;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 81 + path: "" + content: "let x: address = aleo15u4r0gzjtqzepkgurgn7p3u5kkhs9p74rx6aun3uh2s5std6759svgmg53;" diff --git a/tests/expectations/parser/parser/statement/definition_fail.leo.out b/tests/expectations/parser/parser/statement/definition_fail.leo.out new file mode 100644 index 0000000000..48074c2ff5 --- /dev/null +++ b/tests/expectations/parser/parser/statement/definition_fail.leo.out @@ -0,0 +1,48 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x = expr;\n | ^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:11\n |\n 1 | let mut x = expr;\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x = ();\n | ^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:11\n |\n 1 | let mut x = ();\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x = x+y;\n | ^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:11\n |\n 1 | let mut x = x+y;\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x = (x,y);\n | ^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:11\n |\n 1 | let mut x = (x,y);\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x = x();\n | ^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:11\n |\n 1 | let mut x = x();\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x = expr;\n | ^^^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:13\n |\n 1 | const mut x = expr;\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x = ();\n | ^^^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:13\n |\n 1 | const mut x = ();\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x = x+y;\n | ^^^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:13\n |\n 1 | const mut x = x+y;\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x = (x,y);\n | ^^^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:13\n |\n 1 | const mut x = (x,y);\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x = x();\n | ^^^^^^^^^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:13\n |\n 1 | const mut x = x();\n | ^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x: u32 = expr;\n | ^^^^^^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x: u32 = ();\n | ^^^^^^^\nError [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:18\n |\n 1 | let mut x: u32 = ();\n | ^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x: u32 = x+y;\n | ^^^^^^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x: u32 = (x,y);\n | ^^^^^^^\nError [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:18\n |\n 1 | let mut x: u32 = (x,y);\n | ^^^^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | let mut x: u32 = x();\n | ^^^^^^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x: u32 = expr;\n | ^^^^^^^^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x: u32 = ();\n | ^^^^^^^^^\nError [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:20\n |\n 1 | const mut x: u32 = ();\n | ^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x: u32 = x+y;\n | ^^^^^^^^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x: u32 = (x,y);\n | ^^^^^^^^^\nError [EPAR0370005]: expected A valid expression. -- got 'A tuple expression.'\n --> test:1:20\n |\n 1 | const mut x: u32 = (x,y);\n | ^^^^^" + - "Error [EPAR0370014]: let mut = ... is deprecated. `let` keyword implies mutabality by default.\n --> test:1:1\n |\n 1 | const mut x: u32 = x();\n | ^^^^^^^^^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got ','\n --> test:1:10\n |\n 1 | let (x,y,,) = ();\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got ','\n --> test:1:6\n |\n 1 | let (,x,y) = ();\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got ','\n --> test:1:8\n |\n 1 | let (x,,y) = ();\n | ^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8; (2,,)] = [[0,0], [0,0]];\n | ^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got 'const'\n --> test:1:8\n |\n 1 | let x: const = expr;\n | ^^^^^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got 'let'\n --> test:1:10\n |\n 1 | const x: let = expr;\n | ^^^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got 'mut'\n --> test:1:8\n |\n 1 | let x: mut = expr;\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got ''\n --> test:1:1\n |\n 1 | let\n | ^^^" + - "Error [EPAR0370005]: expected : -- got ''\n --> test:1:5\n |\n 1 | let x\n | ^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got ''\n --> test:1:6\n |\n 1 | let x:\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = (a, y]);\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '='\n --> test:1:5\n |\n 1 | let = 1u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got ';'\n --> test:1:4\n |\n 1 | let;\n | ^" + - "Error [EPAR0370005]: expected : -- got '1'\n --> test:1:7\n |\n 1 | let x 1u8;\n | ^" + - "Error [EPAR0370005]: expected = -- got ';'\n --> test:1:10\n |\n 1 | let x: u8;\n | ^" + - "Error [EPAR0370005]: expected = -- got ''\n --> test:1:8\n |\n 1 | let x: u8\n | ^^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got '='\n --> test:1:8\n |\n 1 | let x: = 1;\n | ^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8] = 1;\n | ^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8;\n | ^" + - "Error [EPAR0370005]: expected 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128', 'field', 'group', 'address', 'bool', 'char' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8; 1u8] = [1,\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:15\n |\n 1 | let dbg: u8 = ];\n | ^" + - "Error [EPAR0370030]: Could not lex the following content: `🦀: u8 = 0;`." + - "Error [EPAR0370039]: do not put parens around single variable names\n --> test:1:6\n |\n 1 | let (x) = ...;\n | ^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:9\n |\n 1 | let (x) = ...;\n | ^" + - "Error [EPAR0370039]: do not put parens around single variable names\n --> test:1:6\n |\n 1 | let (x,) = ...;\n | ^\nError [EPAR0370005]: expected : -- got '='\n --> test:1:10\n |\n 1 | let (x,) = ...;\n | ^" diff --git a/tests/expectations/parser/parser/statement/expression.leo.out b/tests/expectations/parser/parser/statement/expression.leo.out new file mode 100644 index 0000000000..06cbb5ad23 --- /dev/null +++ b/tests/expectations/parser/parser/statement/expression.leo.out @@ -0,0 +1,56 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Expression: + expression: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: expr; + - Expression: + expression: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x+y;\\\"}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":3,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x+y;\\\"}\"}" + op: Add + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: x+y; + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: x+y; + - Expression: + expression: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x();\\\"}\"}" + arguments: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: x(); + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: x(); diff --git a/tests/expectations/parser/parser/statement/expression_fail.leo.out b/tests/expectations/parser/parser/statement/expression_fail.leo.out new file mode 100644 index 0000000000..e6d0ae895d --- /dev/null +++ b/tests/expectations/parser/parser/statement/expression_fail.leo.out @@ -0,0 +1,10 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:2\n |\n 1 | (];\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [);\n | ^" + - "Error [EPAR0370030]: Could not lex the following content: `\\y;`." + - "Error [EPAR0370041]: Found the char `;`, but expected `|`" + - "Error [EPAR0370005]: expected ; -- got '['\n --> test:1:2\n |\n 1 | x[};\n | ^" + - "Error [EPAR0370005]: expected ) -- got ']'\n --> test:1:6\n |\n 1 | (x, y];\n | ^" diff --git a/tests/expectations/parser/parser/statement/hex_int_fail.leo.out b/tests/expectations/parser/parser/statement/hex_int_fail.leo.out new file mode 100644 index 0000000000..dde7d447e2 --- /dev/null +++ b/tests/expectations/parser/parser/statement/hex_int_fail.leo.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370036]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370036]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370036]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/statement/iteration.leo.out b/tests/expectations/parser/parser/statement/iteration.leo.out new file mode 100644 index 0000000000..274ddb2488 --- /dev/null +++ b/tests/expectations/parser/parser/statement/iteration.leo.out @@ -0,0 +1,231 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"for x: u8 in 0u8..7u8 {}\\\"}\"}" + type_: + IntegerType: U8 + start: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 1 + line_stop: 1 + col_start: 14 + col_stop: 17 + path: "" + content: "for x: u8 in 0u8..7u8 {}" + stop: + Value: + Integer: + - U8 + - "7" + - span: + line_start: 1 + line_stop: 1 + col_start: 19 + col_stop: 22 + path: "" + content: "for x: u8 in 0u8..7u8 {}" + inclusive: false + block: + statements: [] + span: + line_start: 1 + line_stop: 1 + col_start: 23 + col_stop: 25 + path: "" + content: "for x: u8 in 0u8..7u8 {}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 25 + path: "" + content: "for x: u8 in 0u8..7u8 {}" + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"for x: i64 in 0i64..7i64 {\\\"}\"}" + type_: + IntegerType: I64 + start: + Value: + Integer: + - I64 + - "0" + - span: + line_start: 1 + line_stop: 1 + col_start: 15 + col_stop: 19 + path: "" + content: "for x: i64 in 0i64..7i64 {" + stop: + Value: + Integer: + - I64 + - "7" + - span: + line_start: 1 + line_stop: 1 + col_start: 21 + col_stop: 25 + path: "" + content: "for x: i64 in 0i64..7i64 {" + inclusive: false + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 2 + line_stop: 2 + col_start: 8 + col_stop: 11 + path: "" + content: return 1u8; + span: + line_start: 2 + line_stop: 2 + col_start: 1 + col_stop: 11 + path: "" + content: return 1u8; + span: + line_start: 1 + line_stop: 3 + col_start: 26 + col_stop: 2 + path: "" + content: "for x: i64 in 0i64..7i64 {\n ...\n}" + span: + line_start: 1 + line_stop: 3 + col_start: 1 + col_stop: 2 + path: "" + content: "for x: i64 in 0i64..7i64 {\n ...\n}" + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"for x: field in 0field..99u8 {\\\"}\"}" + type_: Field + start: + Value: + Field: + - "0" + - span: + line_start: 1 + line_stop: 1 + col_start: 17 + col_stop: 23 + path: "" + content: "for x: field in 0field..99u8 {" + stop: + Value: + Integer: + - U8 + - "99" + - span: + line_start: 1 + line_stop: 1 + col_start: 25 + col_stop: 29 + path: "" + content: "for x: field in 0field..99u8 {" + inclusive: false + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 2 + line_stop: 2 + col_start: 8 + col_stop: 11 + path: "" + content: return 1u8; + span: + line_start: 2 + line_stop: 2 + col_start: 1 + col_stop: 11 + path: "" + content: return 1u8; + span: + line_start: 1 + line_stop: 3 + col_start: 30 + col_stop: 2 + path: "" + content: "for x: field in 0field..99u8 {\n ...\n}" + span: + line_start: 1 + line_stop: 3 + col_start: 1 + col_stop: 2 + path: "" + content: "for x: field in 0field..99u8 {\n ...\n}" + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"for x: bool in 0u8..Self {\\\"}\"}" + type_: Boolean + start: + Value: + Integer: + - U8 + - "0" + - span: + line_start: 1 + line_stop: 1 + col_start: 16 + col_stop: 19 + path: "" + content: "for x: bool in 0u8..Self {" + stop: + Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":21,\\\"col_stop\\\":25,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"for x: bool in 0u8..Self {\\\"}\"}" + inclusive: false + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "1" + - span: + line_start: 2 + line_stop: 2 + col_start: 8 + col_stop: 11 + path: "" + content: return 1u8; + span: + line_start: 2 + line_stop: 2 + col_start: 1 + col_stop: 11 + path: "" + content: return 1u8; + span: + line_start: 1 + line_stop: 3 + col_start: 26 + col_stop: 2 + path: "" + content: "for x: bool in 0u8..Self {\n ...\n}" + span: + line_start: 1 + line_stop: 3 + col_start: 1 + col_stop: 2 + path: "" + content: "for x: bool in 0u8..Self {\n ...\n}" diff --git a/tests/expectations/parser/parser/statement/let_mut_recover.leo.out b/tests/expectations/parser/parser/statement/let_mut_recover.leo.out new file mode 100644 index 0000000000..acb14a5c3f --- /dev/null +++ b/tests/expectations/parser/parser/statement/let_mut_recover.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> test:3:16\n |\n 3 | function foo() {\n | ^" diff --git a/tests/expectations/parser/parser/statement/return.leo.out b/tests/expectations/parser/parser/statement/return.leo.out new file mode 100644 index 0000000000..581eca080f --- /dev/null +++ b/tests/expectations/parser/parser/statement/return.leo.out @@ -0,0 +1,34 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Return: + expression: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":8,\\\"col_stop\\\":12,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"return expr;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 12 + path: "" + content: return expr; + - Return: + expression: + Value: + Integer: + - U8 + - "5" + - span: + line_start: 2 + line_stop: 2 + col_start: 1 + col_stop: 4 + path: "" + content: 5u8; + span: + line_start: 1 + line_stop: 2 + col_start: 1 + col_stop: 4 + path: "" + content: "return\n5u8;" diff --git a/tests/expectations/parser/parser/statement/return_fail.leo.out b/tests/expectations/parser/parser/statement/return_fail.leo.out new file mode 100644 index 0000000000..945e961690 --- /dev/null +++ b/tests/expectations/parser/parser/statement/return_fail.leo.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ''\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" + - "Error [EPAR0370032]: Could not parse the implicit value: 5.\n --> test:1:8\n |\n 1 | return 5\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:2:1\n |\n 2 | if x {}\n | ^^" diff --git a/tests/expectations/parser/parser/unreachable/define.leo.out b/tests/expectations/parser/parser/unreachable/define.leo.out new file mode 100644 index 0000000000..3c3046ebcc --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/define.leo.out @@ -0,0 +1,50 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ';'\n --> test:1:1\n |\n 1 | ; x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '.'\n --> test:1:1\n |\n 1 | . x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:8\n |\n 1 | import x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ','\n --> test:1:1\n |\n 1 | , x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '['\n --> test:1:1\n |\n 1 | [ x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ']'\n --> test:1:1\n |\n 1 | ] x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ''\n --> test:1:11\n |\n 1 | { x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '}'\n --> test:1:1\n |\n 1 | } x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ) -- got '='\n --> test:1:5\n |\n 1 | ( x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ')'\n --> test:1:1\n |\n 1 | ) x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ':'\n --> test:1:1\n |\n 1 | : x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ':'\n --> test:1:1\n |\n 1 | :: x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '?'\n --> test:1:1\n |\n 1 | ? x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '_'\n --> test:1:1\n |\n 1 | _ x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:1\n |\n 1 | = x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '=='\n --> test:1:1\n |\n 1 | == x = 10u8;\n | ^^" + - "Error [EPAR0370011]: invalid assignment target\n --> test:1:1\n |\n 1 | ! x = 10u8;\n | ^^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '!='\n --> test:1:1\n |\n 1 | != x = 10u8;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '>'\n --> test:1:1\n |\n 1 | > x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '>='\n --> test:1:1\n |\n 1 | >= x = 10u8;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '<'\n --> test:1:1\n |\n 1 | < x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '<='\n --> test:1:1\n |\n 1 | <= x = 10u8;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '>'\n --> test:1:1\n |\n 1 | > x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '..'\n --> test:1:1\n |\n 1 | .. x = 10u8;\n | ^^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:4\n |\n 1 | as x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected . -- got 'x'\n --> test:1:9\n |\n 1 | console x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | for x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected { -- got '='\n --> test:1:6\n |\n 1 | if x = 10u8;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'else'\n --> test:1:1\n |\n 1 | else x = 10u8;\n | ^^^^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:4\n |\n 1 | i8 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:5\n |\n 1 | i16 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:5\n |\n 1 | i32 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:5\n |\n 1 | i64 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:6\n |\n 1 | i128 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:4\n |\n 1 | u8 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:5\n |\n 1 | u16 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:5\n |\n 1 | u32 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:5\n |\n 1 | u64 x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:6\n |\n 1 | u128 x = 10u8;\n | ^" + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370005]: expected ; -- got '='\n --> test:1:10\n |\n 1 | return x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:6\n |\n 1 | self x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:6\n |\n 1 | Self x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:6\n |\n 1 | true x = 10u8;\n | ^" + - "Error [EPAR0370005]: expected ; -- got 'x'\n --> test:1:7\n |\n 1 | false x = 10u8;\n | ^" + - "Error [EPAR0370032]: Could not parse the implicit value: 0.\n --> test:1:1\n |\n 1 | 0 x = 10u8;\n | ^" diff --git a/tests/expectations/parser/parser/unreachable/eat_ident.leo.out b/tests/expectations/parser/parser/unreachable/eat_ident.leo.out new file mode 100644 index 0000000000..5c1018440c --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/eat_ident.leo.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370023]: Expected more characters to lex but found none." diff --git a/tests/expectations/parser/parser/unreachable/eat_int.leo.out b/tests/expectations/parser/parser/unreachable/eat_int.leo.out new file mode 100644 index 0000000000..881cd8dfbe --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/eat_int.leo.out @@ -0,0 +1,56 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '-'\n --> test:1:3\n |\n 1 | x.-12\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_.\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_import\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_,\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_*\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_+\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_-\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_/\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_[\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_{\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_(\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_)\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_:\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_::\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_?\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0__\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_==\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_!\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_!=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_>\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_>=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_<\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_<=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_>\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_..\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_as\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_console\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_const\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_let\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_for\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_if\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_else\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i8\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i16\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i32\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i64\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i128\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u8\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u16\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u32\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u64\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u128\n | ^" + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_return\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_self\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_Self\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_true\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '0'\n --> test:1:3\n |\n 1 | x.0_false\n | ^" diff --git a/tests/expectations/parser/parser/unreachable/equality_and_order_expression.leo.out b/tests/expectations/parser/parser/unreachable/equality_and_order_expression.leo.out new file mode 100644 index 0000000000..2fb078335f --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/equality_and_order_expression.leo.out @@ -0,0 +1,56 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 ; {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 . {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 import {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 , {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 * {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 + {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 - {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 / {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 [ {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 ] {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 { {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 } {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 ( {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 ) {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 : {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 :: {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 ? {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 _ {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 = {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 == {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 ! {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 != {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 > {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 >= {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 < {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 <= {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 > {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 .. {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 as {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 console {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 const {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 let {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 for {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 if {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 else {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 i8 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 i16 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 i32 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 i64 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 i128 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 u8 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 u16 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 u32 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 u64 {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 u128 {}\n | ^^" + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 return {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 self {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 Self {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 true {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 false {}\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'if'\n --> test:1:1\n |\n 1 | if 10 0 {}\n | ^^" diff --git a/tests/expectations/parser/parser/unreachable/expect_ident.leo.out b/tests/expectations/parser/parser/unreachable/expect_ident.leo.out new file mode 100644 index 0000000000..8041c9b1fd --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/expect_ident.leo.out @@ -0,0 +1,56 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::;\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::.\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::import\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::,\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::*\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::+\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::-\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::/\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::[\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::]\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::{\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::}\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::(\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::)\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x:::\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::::\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::?\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::_\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::=\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::==\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::!\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::!=\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::>\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::>=\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::<\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::<=\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::>\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::..\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::as\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::console\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::const\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::let\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::for\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::if\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::else\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::i8\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::i16\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::i32\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::i64\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::i128\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::u8\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::u16\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::u32\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::u64\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::u128\n | ^" + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::return\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::self\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::Self\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::true\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::false\n | ^" + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::0\n | ^" diff --git a/tests/expectations/parser/parser/unreachable/math_op_fail.leo.out b/tests/expectations/parser/parser/unreachable/math_op_fail.leo.out new file mode 100644 index 0000000000..43623c7643 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/math_op_fail.leo.out @@ -0,0 +1,59 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a ; b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a import b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a , b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a [ b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a ] b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a { b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a } b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a ( b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a ) b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a : b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a ? b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a _ b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a = b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a ! b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a .. b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a console b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a const b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a let b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a for b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a if b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a else b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a i8 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a i16 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a i32 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a i64 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a i128 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a u8 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a u16 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a u32 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a u64 b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a u128 b;\n | ^" + - "Error [EPAR0370023]: Expected more characters to lex but found none." + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a return b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a self b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a Self b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a true b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a false b;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a 0 b;\n | ^" + - "did not consume all input: '=' @ 1:3-4\n'b' @ 1:4-5\n';' @ 1:5-6\n" + - "Error [EPAR0370009]: unexpected string: expected 'int or ident', got '='\n --> test:1:3\n |\n 1 | x.=b;\n | ^" + - "Error [EPAR0370005]: expected ; -- got ','\n --> test:1:2\n |\n 1 | x,=b; // 43\n | ^" + - "Error [EPAR0370005]: expected ; -- got '['\n --> test:1:2\n |\n 1 | x[=b;\n | ^" + - "Error [EPAR0370005]: expected ; -- got ']'\n --> test:1:2\n |\n 1 | x]=b;\n | ^" + - "Error [EPAR0370005]: expected ; -- got '{'\n --> test:1:2\n |\n 1 | x{=b;\n | ^" + - "Error [EPAR0370005]: expected ; -- got '}'\n --> test:1:2\n |\n 1 | x}=b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ';'\n --> test:1:4\n |\n 1 | x=(;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ')'\n --> test:1:3\n |\n 1 | x=);\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ':'\n --> test:1:3\n |\n 1 | x=:;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got ':'\n --> test:1:3\n |\n 1 | x=::;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:3\n |\n 1 | x?=b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:4\n |\n 1 | x!==b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:4\n |\n 1 | x>==b;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> test:1:4\n |\n 1 | x<==b;\n | ^" + - "Error [EPAR0370005]: expected ; -- got '..'\n --> test:1:2\n |\n 1 | x..=b;\n | ^^" + - "Error [EPAR0370023]: Expected more characters to lex but found none." diff --git a/tests/expectations/parser/parser/unreachable/math_op_pass.leo.out b/tests/expectations/parser/parser/unreachable/math_op_pass.leo.out new file mode 100644 index 0000000000..56e4be83a3 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/math_op_pass.leo.out @@ -0,0 +1,800 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a == b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a == b;" + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a == b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a == b;\\\"}\"}" + op: Eq + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 19 + path: "" + content: "let x: u8 = a == b;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "let x: u8 = a == b;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a != b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a != b;" + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a != b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a != b;\\\"}\"}" + op: Ne + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 19 + path: "" + content: "let x: u8 = a != b;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "let x: u8 = a != b;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a > b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a > b;" + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a > b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":17,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a > b;\\\"}\"}" + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 18 + path: "" + content: "let x: u8 = a > b;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = a > b;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a >= b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a >= b;" + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a >= b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a >= b;\\\"}\"}" + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 19 + path: "" + content: "let x: u8 = a >= b;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "let x: u8 = a >= b;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a < b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a < b;" + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a < b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":17,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a < b;\\\"}\"}" + op: Lt + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 18 + path: "" + content: "let x: u8 = a < b;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = a < b;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a <= b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a <= b;" + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a <= b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a <= b;\\\"}\"}" + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 19 + path: "" + content: "let x: u8 = a <= b;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "let x: u8 = a <= b;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a > b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a > b;" + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":14,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a > b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":17,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a > b;\\\"}\"}" + op: Gt + span: + line_start: 1 + line_stop: 1 + col_start: 13 + col_stop: 18 + path: "" + content: "let x: u8 = a > b;" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = a > b;" + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x_\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x_=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 3 + path: "" + content: x_=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x_=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x_=b; + - Expression: + expression: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x==b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x==b;\\\"}\"}" + op: Eq + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x==b; + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x==b; + - Expression: + expression: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x!=b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x!=b;\\\"}\"}" + op: Ne + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x!=b; + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x!=b; + - Expression: + expression: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x>=b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x>=b;\\\"}\"}" + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x>=b; + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x>=b; + - Expression: + expression: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x<=b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x<=b;\\\"}\"}" + op: Le + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x<=b; + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x<=b; + - Expression: + expression: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x>=b;\\\"}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x>=b;\\\"}\"}" + op: Ge + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x>=b; + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x>=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xconsole\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xconsole=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: xconsole=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":10,\\\"col_stop\\\":11,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xconsole=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 11 + path: "" + content: xconsole=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xconst\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xconst=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xconst=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xconst=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: xconst=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xlet\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xlet=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: xlet=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xlet=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xlet=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xfor\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xfor=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: xfor=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xfor=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xfor=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xif\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xif=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: xif=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xif=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: xif=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xelse\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xelse=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: xelse=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xelse=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: xelse=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi8\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi8=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: xi8=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi8=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: xi8=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi16\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi16=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: xi16=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi16=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xi16=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi32\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi32=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: xi32=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi32=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xi32=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi64\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi64=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: xi64=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi64=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xi64=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi128\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi128=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: xi128=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xi128=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: xi128=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu8\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":4,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu8=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 4 + path: "" + content: xu8=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu8=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: xu8=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu16\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu16=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: xu16=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu16=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xu16=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu32=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: xu32=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu32=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xu32=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu64\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu64=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: xu64=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu64=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xu64=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu128\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu128=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: xu128=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xu128=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: xu128=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xreturn\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xreturn=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: xreturn=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":9,\\\"col_stop\\\":10,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xreturn=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 10 + path: "" + content: xreturn=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xtrue\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xtrue=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 6 + path: "" + content: xtrue=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":7,\\\"col_stop\\\":8,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xtrue=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 8 + path: "" + content: xtrue=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xfalse\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":7,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xfalse=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 7 + path: "" + content: xfalse=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":8,\\\"col_stop\\\":9,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"xfalse=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 9 + path: "" + content: xfalse=b; + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x0\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":3,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x0=b;\\\"}\"}" + accesses: [] + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 3 + path: "" + content: x0=b; + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":4,\\\"col_stop\\\":5,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"x0=b;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 5 + path: "" + content: x0=b; diff --git a/tests/expectations/parser/parser/unreachable/postfix_fail.leo.out b/tests/expectations/parser/parser/unreachable/postfix_fail.leo.out new file mode 100644 index 0000000000..fed5d32151 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/postfix_fail.leo.out @@ -0,0 +1,24 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a;;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a.;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a,;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a[;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a];\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a{;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a};\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a);\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a:;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a?;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a=;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a==;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a!;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a!=;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a>;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a>=;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a<;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a<=;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a>;\n | ^" + - "Error [EPAR0370005]: expected : -- got '='\n --> test:1:7\n |\n 1 | let x = a..;\n | ^" diff --git a/tests/expectations/parser/parser/unreachable/postfix_pass.leo.out b/tests/expectations/parser/parser/unreachable/postfix_pass.leo.out new file mode 100644 index 0000000000..f274e7c5f3 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/postfix_pass.leo.out @@ -0,0 +1,598 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Expression: + expression: + Value: + String: + - [] + - span: + line_start: 0 + line_stop: 0 + col_start: 0 + col_stop: 0 + path: "" + content: "" + span: + line_start: 0 + line_stop: 0 + col_start: 0 + col_stop: 0 + path: "" + content: "" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aimport;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = aimport;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aimport\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":20,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aimport;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 20 + path: "" + content: "let x: u8 = aimport;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a_;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a_;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"a_\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a_;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: "let x: u8 = a_;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aas;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = aas;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aas\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":16,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aas;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "let x: u8 = aas;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aconsole;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = aconsole;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aconsole\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":21,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aconsole;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 21 + path: "" + content: "let x: u8 = aconsole;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aconst;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = aconst;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aconst\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aconst;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "let x: u8 = aconst;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = alet;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = alet;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"alet\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = alet;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = alet;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = afor;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = afor;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"afor\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = afor;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = afor;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aif;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = aif;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aif\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":16,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aif;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "let x: u8 = aif;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aelse;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = aelse;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aelse\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aelse;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = aelse;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai8;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = ai8;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai8\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":16,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai8;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "let x: u8 = ai8;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai16;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = ai16;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai16\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai16;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = ai16;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai32;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = ai32;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai32\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai32;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = ai32;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai64;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = ai64;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai64\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai64;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = ai64;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai128;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = ai128;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai128\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = ai128;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = ai128;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au8;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = au8;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au8\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":16,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au8;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 16 + path: "" + content: "let x: u8 = au8;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au16;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = au16;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au16\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au16;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = au16;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au32;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = au32;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au32\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au32;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = au32;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au64;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = au64;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au64\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":17,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au64;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 17 + path: "" + content: "let x: u8 = au64;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au128;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = au128;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au128\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = au128;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = au128;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = areturn;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = areturn;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"areturn\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":20,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = areturn;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 20 + path: "" + content: "let x: u8 = areturn;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aself;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = aself;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aself\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aself;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = aself;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aSelf;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = aSelf;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aSelf\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = aSelf;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = aSelf;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = atrue;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = atrue;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"atrue\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":18,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = atrue;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 18 + path: "" + content: "let x: u8 = atrue;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = afalse;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = afalse;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"afalse\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":19,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = afalse;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 19 + path: "" + content: "let x: u8 = afalse;" + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":5,\\\"col_stop\\\":6,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a0;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 5 + col_stop: 6 + path: "" + content: "let x: u8 = a0;" + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"a0\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":13,\\\"col_stop\\\":15,\\\"path\\\":\\\"\\\",\\\"content\\\":\\\"let x: u8 = a0;\\\"}\"}" + span: + line_start: 1 + line_stop: 1 + col_start: 1 + col_stop: 15 + path: "" + content: "let x: u8 = a0;" diff --git a/tests/parser/functions/const_function.leo b/tests/parser/functions/const_function.leo deleted file mode 100644 index 41ca577764..0000000000 --- a/tests/parser/functions/const_function.leo +++ /dev/null @@ -1,8 +0,0 @@ -/* -namespace: Parse -expectation: Pass -*/ - -const function x() -> u8 { - return 0u8; -} diff --git a/tests/parser/functions/const_function_fail.leo b/tests/parser/functions/const_function_fail.leo deleted file mode 100644 index 1da7e79739..0000000000 --- a/tests/parser/functions/const_function_fail.leo +++ /dev/null @@ -1,6 +0,0 @@ -/* -namespace: Parse -expectation: Fail -*/ - -const