diff --git a/compiler/core/src/algorithms/mod.rs b/compiler/core/src/algorithms/mod.rs index 37916b9d29..33f24204e2 100644 --- a/compiler/core/src/algorithms/mod.rs +++ b/compiler/core/src/algorithms/mod.rs @@ -20,7 +20,7 @@ use leo_span::{sym, Symbol}; use indexmap::IndexSet; /// A core library circuit -#[derive(Clone, PartialEq, Eq, Serialize, Deserialize)] +#[derive(Clone, PartialEq, Eq)] pub enum CoreCircuit { BHP256, BHP512, diff --git a/tests/expectations/compiler/compiler/address/branch.out b/tests/expectations/compiler/compiler/address/branch.out new file mode 100644 index 0000000000..ad8f31c8fc --- /dev/null +++ b/tests/expectations/compiler/compiler/address/branch.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c7315faf1ac3ceeb90260e64e4a411a27a8aa732892a64c15f49e81adf464beb + initial_ast: a2e6b33ed645f7e94b0f4ba40a107543075f53ed5f896072e03d53fbc0ed6462 + symbol_table: a712053d471b6165809fc2b4f717282ea5590a2cfaeae8a630c8a3250478d179 diff --git a/tests/expectations/compiler/compiler/address/equal.out b/tests/expectations/compiler/compiler/address/equal.out new file mode 100644 index 0000000000..5da8cb5b56 --- /dev/null +++ b/tests/expectations/compiler/compiler/address/equal.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: dc6b4b00185dd6c1f2b83a1bfae619c1d6e3f68ac0f1d3d87ae3bd0ed5caf083 + - initial_input_ast: 73a38568160c3d2be402043d04ccdc2290abe27647bc81c4bd50367834c206cf + initial_ast: afd8bb3f641e3b6020e6ecc30b4db3848409190b5a12e3ddff3f289051ccdce2 + symbol_table: 18395a136ea969d319cc4c12c59bb7a590a1b11339375240700d7c87f26b1d5d diff --git a/tests/expectations/compiler/compiler/address/ternary.out b/tests/expectations/compiler/compiler/address/ternary.out new file mode 100644 index 0000000000..ec1fc96dbd --- /dev/null +++ b/tests/expectations/compiler/compiler/address/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b6371958e735320861c84ed514f258ae8a9858b34615364b2f9ebbaa2aaadd8c + - initial_input_ast: d384cfea1a36220e9ea4e246ece89d8fffa320f90aeeb85660bc445ab62a0829 + initial_ast: d8a742c349763f7a2a55520aa196514e1536491cfb84adcfb0965b05a0c8af49 + symbol_table: 82f5e85488d21fdf066d318b2c31504f4fd77b98747286b4a030c2e2a568e5d6 diff --git a/tests/expectations/compiler/compiler/boolean/and.out b/tests/expectations/compiler/compiler/boolean/and.out new file mode 100644 index 0000000000..6cc8147801 --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e6457724e4c3bb27eca30df861f711f962ac47fb0e7d0b9dc959be0feaeb7763 + - initial_input_ast: c8d27a86795a6d56815a681066b7f462f5476be6d56ec910b74d90c60d8b3cc9 + - initial_input_ast: 4ff2fb01e2d10a59bf4fcd1ed3b510c6860167dbd3bd4d099c6b8a78d2a767af + - initial_input_ast: 96ddbb84cba723df65571d6537a303189e6274389593980996fd7ee50eab996e + initial_ast: 8e4ab3450ec4ffbdba78fc0e1450c319bf538fd716af967419c8ce116ccd3d0e + symbol_table: 85ba598c10628c776b426b4ff60a5c7ea7d1d58211763c0b088f87965529c12f diff --git a/tests/expectations/compiler/compiler/boolean/conditional.out b/tests/expectations/compiler/compiler/boolean/conditional.out new file mode 100644 index 0000000000..00ae247fae --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/conditional.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e7e9fd77647ac56ed68e547bfb8d0c767313030072a510ec138027ffb62fc368 + - initial_input_ast: e43c024d6fad8a7a04672fa318936703a4798699283f7b66d9383d52acc104a0 + - initial_input_ast: 695d879ad212b23fb3e91fae782c701c5f0469bbcaabdcfc6e5dcadc5b7e6c9a + - initial_input_ast: 390e951d2b90cf150acd9bc6eeeffbc3a8d7af3ce3781f14ebdce3f1054de4c8 + initial_ast: 1bc51ad96d1960a2f90f003cbf8588d0bbd2fb18f4c7be6a9452a7c26e0fdead + symbol_table: 4fd4e476609947028fbffe357ffb9d962e96c30a9abe3677d75675ae37b12587 diff --git a/tests/expectations/compiler/compiler/boolean/equal.out b/tests/expectations/compiler/compiler/boolean/equal.out new file mode 100644 index 0000000000..35fa7cbad1 --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/equal.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e6457724e4c3bb27eca30df861f711f962ac47fb0e7d0b9dc959be0feaeb7763 + - initial_input_ast: c8d27a86795a6d56815a681066b7f462f5476be6d56ec910b74d90c60d8b3cc9 + - initial_input_ast: 4ff2fb01e2d10a59bf4fcd1ed3b510c6860167dbd3bd4d099c6b8a78d2a767af + - initial_input_ast: 96ddbb84cba723df65571d6537a303189e6274389593980996fd7ee50eab996e + initial_ast: d135ca0877ca63f6c31be572178a69508de9cfb81e258c4aec425861241f84c3 + symbol_table: ffcddad7271fd96b863ba3f1446dd9c0021f3fb4ead31942fac8de11d5af1817 diff --git a/tests/expectations/compiler/compiler/boolean/not_equal.out b/tests/expectations/compiler/compiler/boolean/not_equal.out new file mode 100644 index 0000000000..3c1512f5de --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/not_equal.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e6457724e4c3bb27eca30df861f711f962ac47fb0e7d0b9dc959be0feaeb7763 + - initial_input_ast: c8d27a86795a6d56815a681066b7f462f5476be6d56ec910b74d90c60d8b3cc9 + - initial_input_ast: 4ff2fb01e2d10a59bf4fcd1ed3b510c6860167dbd3bd4d099c6b8a78d2a767af + - initial_input_ast: 96ddbb84cba723df65571d6537a303189e6274389593980996fd7ee50eab996e + initial_ast: 42cf44d6821d7bd9d2c0222d2a673df9ff9c199f583e79a8b15b8eec53e2aea0 + symbol_table: 99728cc6a571e63083031cb630c010cd10c32360086df0494297645d08cf82c2 diff --git a/tests/expectations/compiler/compiler/boolean/or.out b/tests/expectations/compiler/compiler/boolean/or.out new file mode 100644 index 0000000000..8ca188407a --- /dev/null +++ b/tests/expectations/compiler/compiler/boolean/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e6457724e4c3bb27eca30df861f711f962ac47fb0e7d0b9dc959be0feaeb7763 + - initial_input_ast: c8d27a86795a6d56815a681066b7f462f5476be6d56ec910b74d90c60d8b3cc9 + - initial_input_ast: 4ff2fb01e2d10a59bf4fcd1ed3b510c6860167dbd3bd4d099c6b8a78d2a767af + - initial_input_ast: 96ddbb84cba723df65571d6537a303189e6274389593980996fd7ee50eab996e + initial_ast: 6738dda9dfa2cce86f92f9d28e0e0750870156f6b5d6146d063baa221f88df3f + symbol_table: 6dad9c49c0429f77053df4b683bcc9c8f863000e03f2c1b5936c6c98c24c6476 diff --git a/tests/expectations/compiler/compiler/char/invalid_char.out b/tests/expectations/compiler/compiler/char/invalid_char.out new file mode 100644 index 0000000000..f613fa7eb1 --- /dev/null +++ b/tests/expectations/compiler/compiler/char/invalid_char.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `''`.\n" diff --git a/tests/expectations/compiler/compiler/char/neq.out b/tests/expectations/compiler/compiler/char/neq.out new file mode 100644 index 0000000000..5eb96aa6b1 --- /dev/null +++ b/tests/expectations/compiler/compiler/char/neq.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n" diff --git a/tests/expectations/compiler/compiler/char/out.out b/tests/expectations/compiler/compiler/char/out.out new file mode 100644 index 0000000000..4be801f013 --- /dev/null +++ b/tests/expectations/compiler/compiler/char/out.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `'z'`.\n" diff --git a/tests/expectations/compiler/compiler/char/string.out b/tests/expectations/compiler/compiler/char/string.out new file mode 100644 index 0000000000..a2139d1077 --- /dev/null +++ b/tests/expectations/compiler/compiler/char/string.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a7361387d9919bb2857c23ee47cc37c63f0c7cbbb7e7c92b700e2c33403fb4eb + initial_ast: 911cec412ed52ce0bc44a7ebb5e1d0e6f7a954c6718e75f06e6715e298b3c8bb + symbol_table: 4a29c4b5af2ad1879798454b95b7dd04ae7ecd48289c5f3e7a1e19eaf3921c3b diff --git a/tests/expectations/compiler/compiler/console/assert.out b/tests/expectations/compiler/compiler/console/assert.out new file mode 100644 index 0000000000..abdde4fb3e --- /dev/null +++ b/tests/expectations/compiler/compiler/console/assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9698e866b0330be095c65ca93f17ed5fe3d31c61d5622eaf54c774d79d3b6950 + initial_ast: 392ae835e23813bebc9247f2dea3c54d171840b66cbb3fb6f323be1cc39cf5dc + symbol_table: 91cf14380bad96c722953f9731f62aa8717e83951902dd6106bad45d34883e9e diff --git a/tests/expectations/compiler/compiler/console/conditional_assert.out b/tests/expectations/compiler/compiler/console/conditional_assert.out new file mode 100644 index 0000000000..4a7a6f5b86 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/conditional_assert.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e9253dc5764d8870dc6842860993ce0b2495925b3bdb18891b7c4aa67fe0a81d + - initial_input_ast: 3153e33ab1630d74ad221b5ce6d5e50c17fb86d91a2aae4ce67b46fec12c1ef4 + initial_ast: 7c4a3ed293ab61f90336b928a4acb55f1110a6b8b8e756e2c3f91b227d29b670 + symbol_table: eb7d67bd533250d35ac68d5247bb6dc11b1aa3c78144e6642fad61e0cf36780b diff --git a/tests/expectations/compiler/compiler/console/error.out b/tests/expectations/compiler/compiler/console/error.out new file mode 100644 index 0000000000..bc290deea9 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/error.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6b9e5227fdce9f916cd2398ea85c2d7e7b2f7d706bfa730b8cd1acdeb3f168cd + initial_ast: bc7585d64765e570d5b1679250f105b2d57b2d94166ed88b06a22bfeaef0fdbf + symbol_table: defa532673c067b1029a2cb28e1ceb49c7f6f99afbc670d886d2db938168d424 diff --git a/tests/expectations/compiler/compiler/console/log.out b/tests/expectations/compiler/compiler/console/log.out new file mode 100644 index 0000000000..9d17df7c1d --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 89959164cbf734ac0d261c7459b9c1214eb2f4b3ab9ec57a0b22db487d6537e4 + initial_ast: 25f4b353ead7c3435761c93e92900ef85f978e1a4ed2298f239ea396594361d6 + symbol_table: 1114eb323c8af79b301823753b911c49af1498481ad93b054c6330f00539dcdc diff --git a/tests/expectations/compiler/compiler/console/log_conditional.out b/tests/expectations/compiler/compiler/console/log_conditional.out new file mode 100644 index 0000000000..d10b38a0fe --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_conditional.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4132cf36ac66f6b23e249f81b5c2aafa58e4e5e945920cc29752edc5d6d8057f + - initial_input_ast: 586ed72429932a1aafcd0f8eed983a4babff8eada9c028b88bbeef24dab1cbc0 + initial_ast: f8315b82b0a05e0e69fb8b0342b46cbee976ec20d62e0edd2f066bf51acd81d6 + symbol_table: 6df0605a8770c3002b2f6dfff805332c774cd382d68860fa029a51c01dfca6e1 diff --git a/tests/expectations/compiler/compiler/console/log_fail.out b/tests/expectations/compiler/compiler/console/log_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_fail.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.out b/tests/expectations/compiler/compiler/console/log_input.out new file mode 100644 index 0000000000..a6a0a0d4ad --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_input.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5411bd17943bb0aa7b0bb27e8b38f57fd27f06f2080b13a32eee50c53de66f6c + initial_ast: 32e39793865272af182a2cd74c9c337587bcc7e736748b1ab2de58b3c7e1973e + symbol_table: 21187c3fcd8b5c1377772413f1aedc33d9b4fa34a6d43425b5b9a403ac44cf1b diff --git a/tests/expectations/compiler/compiler/console/log_parameter.out b/tests/expectations/compiler/compiler/console/log_parameter.out new file mode 100644 index 0000000000..c81234a61d --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_parameter.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 18e8a4118829470d3150268bbf8d298954e1f566ea2d42ed9f3660dc25c23fcc + initial_ast: 5fc267c1e4a6c7f631816a0b4002a775cb16fb99bd1d3f5f77057050570ce061 + symbol_table: 4f4561e0804f02ca6cd58fd37cca46531d6a86fb4f6a3dea46c67c3a13e045dd diff --git a/tests/expectations/compiler/compiler/console/log_parameter_many.out b/tests/expectations/compiler/compiler/console/log_parameter_many.out new file mode 100644 index 0000000000..b4619612b8 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_parameter_many.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: caa45de3b412d749048b9be732a4593f3094c671701093103f580817a741acbb + initial_ast: a2db21567eb5e4d8c867af3946fc83c97a8d5573afcdf291f0141afb1ba8292c + symbol_table: 57cd0f756819d90c70fc09987ac1bbf2ddf31c7a72cbfd98b8b56a6fc7705581 diff --git a/tests/expectations/compiler/compiler/console/log_parameter_unkown_fail.out b/tests/expectations/compiler/compiler/console/log_parameter_unkown_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_parameter_unkown_fail.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_string.out b/tests/expectations/compiler/compiler/console/log_string.out new file mode 100644 index 0000000000..64ebaf7814 --- /dev/null +++ b/tests/expectations/compiler/compiler/console/log_string.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'formatted static_string', got 'hello'\n --> compiler-test:5:17\n |\n 5 | console.log(hello);\n | ^^^^^" diff --git a/tests/expectations/compiler/compiler/core/account/compute_key.out b/tests/expectations/compiler/compiler/core/account/compute_key.out new file mode 100644 index 0000000000..eca162d447 --- /dev/null +++ b/tests/expectations/compiler/compiler/core/account/compute_key.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 0d3f6d046e06638ff0a22e142982cc29c349117dcbd722cb6334cd66c2be3219 + symbol_table: 533169a9c16acf0947feb73f24400d339173893e0691d7d6bc262f9a3cc6dcce diff --git a/tests/expectations/compiler/compiler/core/account/private_key.out b/tests/expectations/compiler/compiler/core/account/private_key.out new file mode 100644 index 0000000000..5afbd342f2 --- /dev/null +++ b/tests/expectations/compiler/compiler/core/account/private_key.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: c4b937afc608d8a4aeab6a0daba79a66e651237ca6268d0fc4a183092ee8908b + symbol_table: d2e68d11f0c2bacb8e8dc3e2131c8ce8ed3246b2f2798d24666080ae1c8de2bb diff --git a/tests/expectations/compiler/compiler/core/account/record.out b/tests/expectations/compiler/compiler/core/account/record.out new file mode 100644 index 0000000000..0d7228b33e --- /dev/null +++ b/tests/expectations/compiler/compiler/core/account/record.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: bc3f30018bab5d022864d1e9224600af6a1601e362392831f2df670d28757626 + symbol_table: c97101911c52e7e13511a056edbbfbb45a7460b70d9eb40787790d96e9759881 diff --git a/tests/expectations/compiler/compiler/core/account/signature.out b/tests/expectations/compiler/compiler/core/account/signature.out new file mode 100644 index 0000000000..fc9441a654 --- /dev/null +++ b/tests/expectations/compiler/compiler/core/account/signature.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 7e9b3271337d1985002f48c9f6798650414b5bbd2a3f3b3fb6af450568c3261e + symbol_table: 951448c8c85b3ea9013ca01d10acf398b733c871e0283af29493620db422c83e diff --git a/tests/expectations/compiler/compiler/core/account/view_key.out b/tests/expectations/compiler/compiler/core/account/view_key.out new file mode 100644 index 0000000000..ea08b4178e --- /dev/null +++ b/tests/expectations/compiler/compiler/core/account/view_key.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: ccfb34b6626d3a257fdd09a912ee7ac12550e75f7a14950cc9e1ae3867bc1b12 + symbol_table: 6a2947d1d7af5c250ea9e5f02c70b08143d840377d3f4794bb6e605236d477e5 diff --git a/tests/expectations/compiler/compiler/core/algorithms/poseidon.out b/tests/expectations/compiler/compiler/core/algorithms/poseidon.out new file mode 100644 index 0000000000..57450ece00 --- /dev/null +++ b/tests/expectations/compiler/compiler/core/algorithms/poseidon.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: ffea1f8b75a3b70278c4a5c44e73229a094f173cedb289425a72222b84ec289d + symbol_table: 60346efb6af3df0487aa077b29387e80e2be0c429e831460100cfea88f9877e6 diff --git a/tests/expectations/compiler/compiler/core/invalid_input_ident_fail.out b/tests/expectations/compiler/compiler/core/invalid_input_ident_fail.out new file mode 100644 index 0000000000..f6c5b1b7ef --- /dev/null +++ b/tests/expectations/compiler/compiler/core/invalid_input_ident_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372012]: The type DNE is not a valid built in type.\n --> compiler-test:4:27\n |\n 4 | function main(public dne: DNE, a: bool) -> bool {\n | ^^^\n" diff --git a/tests/expectations/compiler/compiler/definition/out_of_order.out b/tests/expectations/compiler/compiler/definition/out_of_order.out new file mode 100644 index 0000000000..45e1cb2efe --- /dev/null +++ b/tests/expectations/compiler/compiler/definition/out_of_order.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4a7171bfd4cb5b69729e26e4c6b0915f261d3f51b2937d8de5009069f56abfc1 + initial_ast: 1b835098e62d2dd40c820b49114bb71f86c84e8b5a842ead7aa651103ceb651e + symbol_table: 18c4e80dbb6add0a75bd0f6968cd3216e3023f383a17679f892b32e24cf2cd77 diff --git a/tests/expectations/compiler/compiler/definition/use_decl_variable_as_assign_fail.out b/tests/expectations/compiler/compiler/definition/use_decl_variable_as_assign_fail.out new file mode 100644 index 0000000000..bdb6857553 --- /dev/null +++ b/tests/expectations/compiler/compiler/definition/use_decl_variable_as_assign_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372004]: Unknown variable `b`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = b;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/field/add.out b/tests/expectations/compiler/compiler/field/add.out new file mode 100644 index 0000000000..c9600c8b31 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 770cad45d17364fd3acd19fb67c66ea8f58ea54c5c42386d1a0fe02f241e9f2b + initial_ast: 0aebc18388f6ceed8c1d813152ec6392bf687a814d3ae6d63ae10b50420c1a43 + symbol_table: ab937c57964d900b6931dc3cea2c6cc6bd68fefe9accae8ef8fd879e788d0cb7 diff --git a/tests/expectations/compiler/compiler/field/div.out b/tests/expectations/compiler/compiler/field/div.out new file mode 100644 index 0000000000..b17aa53c06 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3b1682d80f44da8eb1ea0d1236b5b9be15f7d4792fe7f31139a4362b2952d6a0 + initial_ast: 924a3905b44bfea2a10118e4c0336a596b6981a7b06ea39f71daac7000e5cf9c + symbol_table: e0b1cda1db6ea8c9f71a6cd9f76a041387e633b0eb652a3382e56ac48aec5adc diff --git a/tests/expectations/compiler/compiler/field/eq.out b/tests/expectations/compiler/compiler/field/eq.out new file mode 100644 index 0000000000..c6cd4b19d3 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1d6d705c0d5363431af8b58173f1061d4315c4ffe9ae175d6dd1c7ea2a01488f + initial_ast: 3546a10b24a6a53ee07d298e7dbbed5122bd9d0c973613296a94189d9e57f246 + symbol_table: 2685013e472435f156a9de89e73adfedb6e0b214a0fc09b235c453885e644746 diff --git a/tests/expectations/compiler/compiler/field/field.out b/tests/expectations/compiler/compiler/field/field.out new file mode 100644 index 0000000000..b4ea86e2f5 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/field.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ccecfe74d5a1f89e892c982f5bf5bb59e094ade3b745b615ab1dcdc31b43dcd7 + initial_ast: 6a00c3fe77606f34d449fa1c4f8975612edab5c066de791629cbf8c8cb61f289 + symbol_table: 61dabf815d0a52853b5933812e28a24dc2cc71a0196ab334e9f36621f6528669 diff --git a/tests/expectations/compiler/compiler/field/mul.out b/tests/expectations/compiler/compiler/field/mul.out new file mode 100644 index 0000000000..e525885035 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 770cad45d17364fd3acd19fb67c66ea8f58ea54c5c42386d1a0fe02f241e9f2b + initial_ast: c05e588dae9e5f6e7e1c2d16d08629af8d287b453796b21de89b25d40970ec1b + symbol_table: 51cac1a817eead5ffdce703f843e85cdd2ab3ac6ddcb1868fc299ce470aacfb8 diff --git a/tests/expectations/compiler/compiler/field/negate.out b/tests/expectations/compiler/compiler/field/negate.out new file mode 100644 index 0000000000..3f73bdf1a4 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/negate.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a2440344211fa1dec9858bba8ae80c44b17dcf10d6d75bf639bd9019de97a843 + initial_ast: c2122be4da96294b4ce4bca5d239176c6bb98765248c767dd41352b6b95888c8 + symbol_table: 2daa5df91bfa772cfaec061d0b52b9663df25e1c2018fefd9a72b878e9f347a0 diff --git a/tests/expectations/compiler/compiler/field/no_space_between_literal.out b/tests/expectations/compiler/compiler/field/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/no_space_between_literal.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.out b/tests/expectations/compiler/compiler/field/pow.out new file mode 100644 index 0000000000..29b0a4d7f3 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/pow.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ff3a3f5067b97fc7ac387dbfbb940a8c04f5755783dbf848f661d1962a594bb3 + initial_ast: 23a0dad3f44569081d0c2c788294753013f617772622e5b4e96cd62850a03a3b + symbol_table: 137dd2867c357412b9e5d9dfb51e9e82998217d06f1e07d95999c5c7f312affc diff --git a/tests/expectations/compiler/compiler/field/sub.out b/tests/expectations/compiler/compiler/field/sub.out new file mode 100644 index 0000000000..fbe583f826 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3b1682d80f44da8eb1ea0d1236b5b9be15f7d4792fe7f31139a4362b2952d6a0 + initial_ast: 44033abf4e0e2d174cc770b32f903b8a1d4505ee4cbfdcfca3ad1f885071123e + symbol_table: a462d7481d4ae6611c332491239401d32ed2dd110042de237495731107048b4e diff --git a/tests/expectations/compiler/compiler/field/ternary.out b/tests/expectations/compiler/compiler/field/ternary.out new file mode 100644 index 0000000000..8b5fd84243 --- /dev/null +++ b/tests/expectations/compiler/compiler/field/ternary.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c3b606138d1dc5f4dc541ddc113fb7d6e07cad4cbd1f382fcc0f9b8517077448 + initial_ast: b3c731d5b84eec276e7f142f589405dfa2d8e38157d789c204acaed291edc6ff + symbol_table: 8efd055a1ca3e84e7af524acdb2d517b1d31c773fb5d0d9045eaaab2112fe184 diff --git a/tests/expectations/compiler/compiler/function/conditional_return.out b/tests/expectations/compiler/compiler/function/conditional_return.out new file mode 100644 index 0000000000..97cf54651e --- /dev/null +++ b/tests/expectations/compiler/compiler/function/conditional_return.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 138147dfed32a1089f1d6a4ce19ef4f5278dcdbc2012c432ab460bc0601aaa11 + initial_ast: 1c957ff165af19ab244d1bc9855c9cd245a45602248516d916e323dbfc861f47 + symbol_table: df0627c52620cf6e30c96450283a76175c4d1a49dc7ffed195a02e3cdde5ed89 diff --git a/tests/expectations/compiler/compiler/function/duplicate_definition_fail.out b/tests/expectations/compiler/compiler/function/duplicate_definition_fail.out new file mode 100644 index 0000000000..2611b147e4 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/duplicate_definition_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372014]: function `main` shadowed by\n --> compiler-test:8:1\n |\n 8 | function main(y: bool) -> bool {\n 9 | console.log(\"{}\", 2u8);\n 10 | return y; \n 11 | }\n | ^\n" diff --git a/tests/expectations/compiler/compiler/function/duplicate_parameter_fail.out b/tests/expectations/compiler/compiler/function/duplicate_parameter_fail.out new file mode 100644 index 0000000000..3663d75963 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/duplicate_parameter_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372015]: variable `a` shadowed by\n --> compiler-test:3:23\n |\n 3 | function main(a: u32, a: u32) -> u32 {\n | ^\n" diff --git a/tests/expectations/compiler/compiler/function/iteration.out b/tests/expectations/compiler/compiler/function/iteration.out new file mode 100644 index 0000000000..5c2ce6e3c0 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/iteration.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 78b65cde248c05f4abfe2d3cf794fbd44de082303631db7e3002aa724099fee1 + initial_ast: 32baf53a93f4c65aa96be164fb1d7ea3b611340e6d5e7b1ee4f0c852efe5c8a1 + symbol_table: 738974bc93d03e230299143f22c4a8cb38e0962af93e19728f74a6bb8d25a6d0 diff --git a/tests/expectations/compiler/compiler/function/iteration_repeated.out b/tests/expectations/compiler/compiler/function/iteration_repeated.out new file mode 100644 index 0000000000..48db80bdc6 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/iteration_repeated.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 14d0aff05a3b8673ac44d18a969bd03157e19a724ebe2b6e805fdc82aa1e070d + initial_ast: ddc98689a76296f035d6ae14e467c3a68050bb6bfacbcf55a349fe4441011083 + symbol_table: 69b32d3a21ca899d23b9eba6603ce9eea7191eb9a7a893e28ef3fcc6b355a4ff diff --git a/tests/expectations/compiler/compiler/function/no_return_fail.out b/tests/expectations/compiler/compiler/function/no_return_fail.out new file mode 100644 index 0000000000..5d353c4f04 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/no_return_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372013]: The function main has no return statement.\n --> compiler-test:3:1\n |\n 3 | function main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/compiler/function/repeated.out b/tests/expectations/compiler/compiler/function/repeated.out new file mode 100644 index 0000000000..e6ef6bed12 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/repeated.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5b2906e1b93966fe1b141bb06b4aa45f7a6e60ae0c0895b96cf870eb246e98b4 + initial_ast: 0c1ab684ff51a2b52916570b816761060c361d202f81698ae8608bb785a453b4 + symbol_table: 6b9e0d6f8517252051117e01937bb64597c6ee78726e8e03579161084f37303f diff --git a/tests/expectations/compiler/compiler/function/return.out b/tests/expectations/compiler/compiler/function/return.out new file mode 100644 index 0000000000..0bd0e3a6eb --- /dev/null +++ b/tests/expectations/compiler/compiler/function/return.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1ee96076151487dc5e1988331d53506585dd380909cbeab8c32d3f6e6913456d + initial_ast: ae8cfc6c935d6b293214d82a84be9f135a3894c4eedc0b8c9d96316e00ef0015 + symbol_table: 9a6f8767701001d0691ff622fada6be3d30c274590d54f847ddb76d7b3da543a diff --git a/tests/expectations/compiler/compiler/function/scope_fail.out b/tests/expectations/compiler/compiler/function/scope_fail.out new file mode 100644 index 0000000000..cf561c6ce6 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/scope_fail.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.out b/tests/expectations/compiler/compiler/function/shadow_function_with_input_fail.out new file mode 100644 index 0000000000..e9566ff145 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/shadow_function_with_input_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372014]: function `hi` shadowed by\n --> compiler-test:7:17\n |\n 7 | function tester(hi: u8) -> u8 {\n | ^^\n" diff --git a/tests/expectations/compiler/compiler/function/shadow_parameter_fail.out b/tests/expectations/compiler/compiler/function/shadow_parameter_fail.out new file mode 100644 index 0000000000..ed9c2b60bd --- /dev/null +++ b/tests/expectations/compiler/compiler/function/shadow_parameter_fail.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.out b/tests/expectations/compiler/compiler/function/undefined_fail.out new file mode 100644 index 0000000000..bb6fe46457 --- /dev/null +++ b/tests/expectations/compiler/compiler/function/undefined_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> compiler-test:4:5\n |\n 4 | my_function();\n | ^^^^^^^^^^^^^^" diff --git a/tests/expectations/compiler/compiler/group/add.out b/tests/expectations/compiler/compiler/group/add.out new file mode 100644 index 0000000000..132d8e9aab --- /dev/null +++ b/tests/expectations/compiler/compiler/group/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f4e1b23f37abb9bcb386ddfd37ee066395d8e84f8ace0f4eb467264131e89fb0 + initial_ast: 7109d173cdd239abf5f0f717e669e300cf7bd4b3bde2158a17d1f16c1b154276 + symbol_table: 915e736b00c979abe896125d986ff41cf16e028842f89cae6440998f85304351 diff --git a/tests/expectations/compiler/compiler/group/assert_eq.out b/tests/expectations/compiler/compiler/group/assert_eq.out new file mode 100644 index 0000000000..843a45819c --- /dev/null +++ b/tests/expectations/compiler/compiler/group/assert_eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a183384b085186e92efdf0ccd221ba0f3de6e75cffc5610ed583ccd95aa4adcb + initial_ast: b6e75e27703bf6b6af69de95f9c22ef2033db46227f5658a9f2e88c33a169b1d + symbol_table: fb66c9abb24c6c1bb79dd5fe9e9b78f293292fb3fab04ede561f866c6dc41f8c diff --git a/tests/expectations/compiler/compiler/group/both_sign_high.out b/tests/expectations/compiler/compiler/group/both_sign_high.out new file mode 100644 index 0000000000..cdfb31dd48 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/both_sign_high.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 947cab0ff6523744676bcf2b5d610c963f5dc1ba18f52e12eb9313914e81ccef + symbol_table: 9a61702119ebc681917d7cb7e40ecafa00354849326bf1182635f27a28da35e9 diff --git a/tests/expectations/compiler/compiler/group/both_sign_inferred.out b/tests/expectations/compiler/compiler/group/both_sign_inferred.out new file mode 100644 index 0000000000..e0542ff760 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/both_sign_inferred.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: da7a9bfecd63ce811480fa7eed9bdc4bc6223c957e7e12fdbcd69a84d48da1ad + symbol_table: e4a96223c049893c904a90f24d069592b33fc137de0f4816cf92089e63663693 diff --git a/tests/expectations/compiler/compiler/group/both_sign_low.out b/tests/expectations/compiler/compiler/group/both_sign_low.out new file mode 100644 index 0000000000..37d1d739fd --- /dev/null +++ b/tests/expectations/compiler/compiler/group/both_sign_low.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 740946ba4379c80d6c5b63848b8738b8ec3c44c414ccbba68be7d321c86232b7 + symbol_table: 1817d91b99941ddc2590c6a2777ad8f7d4ba26a8b2a3baa3932f1a08eb540206 diff --git a/tests/expectations/compiler/compiler/group/eq.out b/tests/expectations/compiler/compiler/group/eq.out new file mode 100644 index 0000000000..843a45819c --- /dev/null +++ b/tests/expectations/compiler/compiler/group/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a183384b085186e92efdf0ccd221ba0f3de6e75cffc5610ed583ccd95aa4adcb + initial_ast: b6e75e27703bf6b6af69de95f9c22ef2033db46227f5658a9f2e88c33a169b1d + symbol_table: fb66c9abb24c6c1bb79dd5fe9e9b78f293292fb3fab04ede561f866c6dc41f8c diff --git a/tests/expectations/compiler/compiler/group/input.out b/tests/expectations/compiler/compiler/group/input.out new file mode 100644 index 0000000000..58bda7878e --- /dev/null +++ b/tests/expectations/compiler/compiler/group/input.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: eed84b746db9633cd5314c8b23def7c95672f4696824e7504877baa8f62b52ac + initial_ast: b6e75e27703bf6b6af69de95f9c22ef2033db46227f5658a9f2e88c33a169b1d + symbol_table: fb66c9abb24c6c1bb79dd5fe9e9b78f293292fb3fab04ede561f866c6dc41f8c diff --git a/tests/expectations/compiler/compiler/group/mult_by_group_fail.out b/tests/expectations/compiler/compiler/group/mult_by_group_fail.out new file mode 100644 index 0000000000..17bc264a35 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/mult_by_group_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372002]: Found type `group` but type `scalar` was expected\n --> compiler-test:4:26\n |\n 4 | return (_, _)group * a;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/group/mult_by_scalar.out b/tests/expectations/compiler/compiler/group/mult_by_scalar.out new file mode 100644 index 0000000000..8e0bb0e878 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/mult_by_scalar.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1c07a704862cbf7d7938c51d6d840c9ee713f3b6f661a60cca2a81ef3e55efa2 + initial_ast: 0d225dc5aee0995ca7c84bdefd9be8fe473ea14876f55c4ac05f95c58b8393e6 + symbol_table: ae21cfdc16589d2cdf89c4aabece75367892087e76793cd0d7d62c9a04fa511c diff --git a/tests/expectations/compiler/compiler/group/negate.out b/tests/expectations/compiler/compiler/group/negate.out new file mode 100644 index 0000000000..905f580ef8 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/negate.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c1a7cb2ec07ebfdcd1f7c0785b389e30ed16055a766d036354e52574a21fa8d9 + initial_ast: 491aa1b9665527f07687444cb882f1ae5d363ca3b024f9cc3de36027ec37fce4 + symbol_table: 5f48052c64667bf793d8b6c22db7f867a88c1dfbb9341e53b970d6bb9bf3a11f diff --git a/tests/expectations/compiler/compiler/group/no_space_between_literal.out b/tests/expectations/compiler/compiler/group/no_space_between_literal.out new file mode 100644 index 0000000000..42c6c5e8cd --- /dev/null +++ b/tests/expectations/compiler/compiler/group/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370004]: Unexpected white space between terms (0,1) and group\n --> compiler-test:4:25\n |\n 4 | const g: group = (0,1) group;\n | ^" diff --git a/tests/expectations/compiler/compiler/group/one.out b/tests/expectations/compiler/compiler/group/one.out new file mode 100644 index 0000000000..cbce347a64 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/one.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: ecc46ecae6d85317f8c1657c9653b7e39105b91aca6756df431f6a7bd203c10a + symbol_table: 1459210791fd0aae2827b2b7c3fd438e7a8315b290e23cbfe365b4214d5cd284 diff --git a/tests/expectations/compiler/compiler/group/point.out b/tests/expectations/compiler/compiler/group/point.out new file mode 100644 index 0000000000..67f722e31f --- /dev/null +++ b/tests/expectations/compiler/compiler/group/point.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 076729824ebf59b52b6ca66cc20cffcf311d7739738ed307af7936ba923c70ac + symbol_table: ac8c4425959cf548f2f0edc8aa637b1d827394f11fe2c10ecef366a803fe30a2 diff --git a/tests/expectations/compiler/compiler/group/point_input.out b/tests/expectations/compiler/compiler/group/point_input.out new file mode 100644 index 0000000000..a6f307a0ba --- /dev/null +++ b/tests/expectations/compiler/compiler/group/point_input.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2d76ce81281d5077442c5e6c12b13e536a037f0bb469492ecf0b77191b3ded14 + initial_ast: 2989b1ba743c2fa15efe1ee5837ea2bf34dd19894799190387facdb1a4c0cdee + symbol_table: b914736fbf23a1386a58c96fd9011214dd8a7393446dad3222c8551d8db979e6 diff --git a/tests/expectations/compiler/compiler/group/positive_and_negative.out b/tests/expectations/compiler/compiler/group/positive_and_negative.out new file mode 100644 index 0000000000..d44f7d7c44 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/positive_and_negative.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: d6c9dc3a6a1f55be58c871ce0c2cd5df0c27756ce6f1502277293894b531e969 + symbol_table: 7e69e6875d7b047f525e435533e6b299da0779cd28edbf4190f2b701c79d74fb diff --git a/tests/expectations/compiler/compiler/group/sub.out b/tests/expectations/compiler/compiler/group/sub.out new file mode 100644 index 0000000000..b4530e0fa1 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f4e1b23f37abb9bcb386ddfd37ee066395d8e84f8ace0f4eb467264131e89fb0 + initial_ast: 97ab784d4cdbb80329f8284003c821fa956e5b4913277813136217849815200d + symbol_table: 4bbffbffd675aec67af4ce2fbf803ec463900233ce1ad4049c7bb8092650859a diff --git a/tests/expectations/compiler/compiler/group/ternary.out b/tests/expectations/compiler/compiler/group/ternary.out new file mode 100644 index 0000000000..dfb3991527 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/ternary.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a18a82ee746e1fd1f9c6c09c36b055f9d3b44a17dd778c5081f9258d6bb9f3ae + initial_ast: bfe7dcd87fa958e67087b7b29d802e77ccb3001d9c487744867e7442628bbb60 + symbol_table: 52a5d14e586868e2465abde3c15f47d151290737d408944c1474483e3050e399 diff --git a/tests/expectations/compiler/compiler/group/x_and_y.out b/tests/expectations/compiler/compiler/group/x_and_y.out new file mode 100644 index 0000000000..8c6d8401ed --- /dev/null +++ b/tests/expectations/compiler/compiler/group/x_and_y.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: ba4bea7f4452a9a369ed5abb21cf7409f850125dff959f10ba211e50419f8d89 + symbol_table: f33f5b0c84aac58327880b146c570d74ed3118e93247b4a05680ae2c451db5b1 diff --git a/tests/expectations/compiler/compiler/group/x_sign_high.out b/tests/expectations/compiler/compiler/group/x_sign_high.out new file mode 100644 index 0000000000..d5fbaf7152 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/x_sign_high.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 5857efaf620a19b42463f90fc00a309a7c89c31e4a5b664b2bdd1c42161e777b + symbol_table: 2d0db26fa84f8daad71afd4420718043de1c97757ae4fe4fa78e9874891d1d80 diff --git a/tests/expectations/compiler/compiler/group/x_sign_inferred.out b/tests/expectations/compiler/compiler/group/x_sign_inferred.out new file mode 100644 index 0000000000..a216ce686a --- /dev/null +++ b/tests/expectations/compiler/compiler/group/x_sign_inferred.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 99888f61e01f330edf5125f530a706a2f059ad311f9ffe23c81e0aa1ea017ca9 + symbol_table: c20979f64468655131a488980c1de31384fd7ff35561ed569c3db6f2d0bc19cc diff --git a/tests/expectations/compiler/compiler/group/x_sign_low.out b/tests/expectations/compiler/compiler/group/x_sign_low.out new file mode 100644 index 0000000000..dc1a4fb8c9 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/x_sign_low.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 4063f3a3011beeb3e26e60b63f5f7f384aed795cf47525f8f472dea81a82745f + symbol_table: f450d14b0bb862b0bec4a5f8d41eb92f7cf951dee469505fb20dbfa25972eb7b diff --git a/tests/expectations/compiler/compiler/group/y_sign_high.out b/tests/expectations/compiler/compiler/group/y_sign_high.out new file mode 100644 index 0000000000..c04d472726 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/y_sign_high.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 69ba2a183dfec5347e20a835d55b4d5e164f35f5491a9bbf1ddff9f5db45e8c6 + symbol_table: 52760622da95d189f6e707df97fc6bba4216fa59022a4ae79d840b9c05fdf5b1 diff --git a/tests/expectations/compiler/compiler/group/y_sign_inferred.out b/tests/expectations/compiler/compiler/group/y_sign_inferred.out new file mode 100644 index 0000000000..66dd1749b5 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/y_sign_inferred.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: ed195facf91180b4f72a7c005aab4b66d00200b19987e01c2ef3de59b20b5e57 + symbol_table: d3bf69e78619e63bc1c56c1efe49712b226f5d477e1c42491d0b31e24d5a98a7 diff --git a/tests/expectations/compiler/compiler/group/y_sign_low.out b/tests/expectations/compiler/compiler/group/y_sign_low.out new file mode 100644 index 0000000000..7031e6b62a --- /dev/null +++ b/tests/expectations/compiler/compiler/group/y_sign_low.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: fd74afd5b64ad33e1e375b4db7d2f6aac7d8aaeb4406b97a8ccb3364b2129d5a + symbol_table: 026430e928e2236167d6587cb1885784f30bbc916f75d3a0f42fa7a3f2c6978b diff --git a/tests/expectations/compiler/compiler/group/zero.out b/tests/expectations/compiler/compiler/group/zero.out new file mode 100644 index 0000000000..466b24b5d3 --- /dev/null +++ b/tests/expectations/compiler/compiler/group/zero.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: no input + initial_ast: 0785d70c3be288aad6535bd949196a051c12b66b6f748008f84b2db69f68ace5 + symbol_table: b181fa2d3c50419dbdaadbe2e91aa4a3e17baa614b0635f9ce6fa7367ead48eb diff --git a/tests/expectations/compiler/compiler/input_files/program_input/main.out b/tests/expectations/compiler/compiler/input_files/program_input/main.out new file mode 100644 index 0000000000..c4246d4dc0 --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input/main.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 14d3cbbf97803da5b6c304e7b5ec5adcbb1583db29ba46aef485df97e7d54aaa + initial_ast: 0d2e5c56b05a5a8bc911fa071c3e2cf5bc9ebec76e9c881a19160068535d92bc + symbol_table: cac29305ef425fae4d6addd2f4718f0a5c17e9289e36ed0800f05029aec41725 diff --git a/tests/expectations/compiler/compiler/input_files/program_input/main_field.out b/tests/expectations/compiler/compiler/input_files/program_input/main_field.out new file mode 100644 index 0000000000..128f8eda0b --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input/main_field.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6b5a9d8d422831ea438486b32bea3f5b984e06dd7ab21cd8e14f4dab04b6cac7 + initial_ast: 442940c65e88241ba031f1e1d77ed1abbd6ea2418374fb39fd4690086e0251c8 + symbol_table: 14be7abd0daa58df1a7860e592d0e74a3342a7e02220e9dcf314e5241b2e335a diff --git a/tests/expectations/compiler/compiler/input_files/program_input/main_group.out b/tests/expectations/compiler/compiler/input_files/program_input/main_group.out new file mode 100644 index 0000000000..03baf97250 --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input/main_group.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6f437f7d8d7d2ade6347d666d899514d67cbc9442f6697267235138beacc9520 + initial_ast: 6e3644183a2d8dc034fea42afbb70c7f4b7ae0ea0380dd6b6a22253fc6886081 + symbol_table: 3b68eff86b45e4f940b0a1031e19a64178b0bf802acb59f3b743e664f3010876 diff --git a/tests/expectations/compiler/compiler/input_files/program_input_constants/main.out b/tests/expectations/compiler/compiler/input_files/program_input_constants/main.out new file mode 100644 index 0000000000..dc36001689 --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input_constants/main.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b26b209013041060043f6269635f9af934cc06c0f8384a8b0e6b10df0d3f5cb9 + initial_ast: 14be345ec32ce30f6920b83e8c54210e61923bbc57d88d4d8ca4bd444ea2b1e5 + symbol_table: 4c358989979d4d1695377272c96dfdd2b542d8a51d7287cd5f49648bb41cc80c diff --git a/tests/expectations/compiler/compiler/input_files/program_input_constants/main_field.out b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_field.out new file mode 100644 index 0000000000..af8bb167a5 --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_field.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5e5c64a973dc52d01bab0d99b8c0160256e08eb11074d86d8041d8347c0183c7 + initial_ast: a7399ec37b57c655aa388f88f0a14df056f2e4cade74f638b43e69775efb51d7 + symbol_table: cdc88125facd852bdece13f8d69d58b91ef178c446853d5fdacfff157754a617 diff --git a/tests/expectations/compiler/compiler/input_files/program_input_constants/main_group.out b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_group.out new file mode 100644 index 0000000000..0a5d45ea8d --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_group.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 77f1441a2d0e4b8830223e25c06f97c34a9bcf98bdc97ecfca3d00472cab4c92 + initial_ast: 8278e81e45c99a4650f3723b63227fbeed735ac1f82ba59f017202b4004665ed + symbol_table: 55bc8e2b9a06ca5c79234cece0340bb5ce3f83cb7929357e53398adcb279d93c diff --git a/tests/expectations/compiler/compiler/input_files/program_input_constants/main_multiple.out b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_multiple.out new file mode 100644 index 0000000000..e944ca1b9a --- /dev/null +++ b/tests/expectations/compiler/compiler/input_files/program_input_constants/main_multiple.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b9e3c34f642651adf69796a7619a504427dcc3ff7733e5a8925dd31bb1677e9a + initial_ast: 314c2343d15bc5676eb5669e9a7a193936ce32ea4f2c7a1ab10719202314e4ee + symbol_table: 7b106dad757b786994e20ab7d77ad40365d2425d70977eac8163802fcdcf4806 diff --git a/tests/expectations/compiler/compiler/integers/i128/add.out b/tests/expectations/compiler/compiler/integers/i128/add.out new file mode 100644 index 0000000000..33f3dc3ed8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bc7b8f4d7b989dc43d4fd55b9682cc77d2984e841678f57fdf605ff2c168861e + initial_ast: 07374055a6d078ecbf9f3c76a3c63cef7b529a583333afc655d1f7b22c8fd054 + symbol_table: 75a7b5f068d1a3aa4525940a14a052bd4821c0bd3c0d4a8c097d51fedbc7da70 diff --git a/tests/expectations/compiler/compiler/integers/i128/console_assert.out b/tests/expectations/compiler/compiler/integers/i128/console_assert.out new file mode 100644 index 0000000000..8ab20c2a8f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 539ffcc6201d34ff3e699671d520e5fd6344a2ca8268c8351d7e9c707d8339d2 + initial_ast: e684deb39dd4d7d41b1d5062f5f025df84d1998d16a59871d53f211dd9d9cce2 + symbol_table: 7cc5d72ca93dcbdcf6845170e300c67d2ae24453cdec6681d1d76d6734abd52c diff --git a/tests/expectations/compiler/compiler/integers/i128/div.out b/tests/expectations/compiler/compiler/integers/i128/div.out new file mode 100644 index 0000000000..b7c5a8ecc3 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ee172614c7f65202cea0ef58ece4a000d22ff2ecca413bf31ad38683c9b4d85e + initial_ast: ae2ef5614de8c31c25df7bb8cea87eb00ac8c154fb4a0ead71dfc306dc836b66 + symbol_table: ba4421a012de91b2502d9fc6e58c7197ad1f98197ae9680e3398b80b57cc8e21 diff --git a/tests/expectations/compiler/compiler/integers/i128/eq.out b/tests/expectations/compiler/compiler/integers/i128/eq.out new file mode 100644 index 0000000000..394bbfe824 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d849a1509e204680cd676c85564c4945549b5b758969f13fd54c0829f6c7e1c0 + initial_ast: 44bd05c77cfb936ae6363fd532803e6939b0893d887d4e85b205ab3517ecfefa + symbol_table: 147e5a1e6562c81e3e4c24404b43c292203e1b73d16d8518a98d85e264493c6a diff --git a/tests/expectations/compiler/compiler/integers/i128/ge.out b/tests/expectations/compiler/compiler/integers/i128/ge.out new file mode 100644 index 0000000000..2f83ab5294 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5482379ffdd5eb5f96e55e91bc41680d9730b22b7c3930a08ac0695578c9a1db + - initial_input_ast: 0e7fa8784578e26d2c0f05a8aee2f23d7930078ab97dd2252832450ca9cd50eb + initial_ast: 34205fe1be6a3579c7ea80795a0af3d98f4b11bebcc8d504dffb2adccc6fbbd9 + symbol_table: e4e1e6a3c081171d2c6496456462773696a38fdc4d55a65ca4abf762905f21a3 diff --git a/tests/expectations/compiler/compiler/integers/i128/gt.out b/tests/expectations/compiler/compiler/integers/i128/gt.out new file mode 100644 index 0000000000..b4bc661283 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c7a69306fb22539be155f8c31e9d1d0cfaefb35c6d6fe447316421408d126d82 + - initial_input_ast: f06eb33da0612e0927563d34af8823d655c5f033ebb2426d7d2a5fb2c7691cee + initial_ast: 1b01fc5c167c9957c4f631fcf1e494444822f748f3abcc977d13263a0a74cb9f + symbol_table: a11f905fe22b3bda39f07d2c754bf100378792d241ca40bd359dcdd47029842f diff --git a/tests/expectations/compiler/compiler/integers/i128/le.out b/tests/expectations/compiler/compiler/integers/i128/le.out new file mode 100644 index 0000000000..86671f25d1 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5482379ffdd5eb5f96e55e91bc41680d9730b22b7c3930a08ac0695578c9a1db + - initial_input_ast: 586889c97fa271198358a40227efffae06f141c9f79f3479e03dd01a99003fad + initial_ast: c6c5e9ba70c8a9de7b3ab115d1197a013aeff953ac5cb33909619b13a1940f1c + symbol_table: 90b37187127e239cb80064d52ea9f22677534633df8dd9edbf33f959ec37816e diff --git a/tests/expectations/compiler/compiler/integers/i128/lt.out b/tests/expectations/compiler/compiler/integers/i128/lt.out new file mode 100644 index 0000000000..72535f61f1 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 70eaacd52d656c1871fb3fc2e0fa9427ba1c677c0e66a99596c3b223b76b36e7 + - initial_input_ast: 126c75bc526b0ae168cccc25e3794140aba4d4962cf3b5561d6d510dc0f15d4c + initial_ast: 66cb035a3d249a394e8dbbe19cbc02f5cddb844a78bc80c838c7cab191fe9701 + symbol_table: e997aaaf93a01bb0b4e30eb468cfe78a5956f9401aca6bacdae452bd4c00760f diff --git a/tests/expectations/compiler/compiler/integers/i128/max.out b/tests/expectations/compiler/compiler/integers/i128/max.out new file mode 100644 index 0000000000..eedf26cb02 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a74c1b7af568d593690e7ba3823c660f7163e5d90d8bbace6f742eb7da1ae6ff + initial_ast: 4b6b0f531e10e817673ce71103fcf10b032c20d05321f66b3601a0000636c9f9 + symbol_table: 495dfe6db0ab7c20e48db8c10ffd3da7ef50ec17e4db98f8d9b1ed4aa2fd177c diff --git a/tests/expectations/compiler/compiler/integers/i128/max_fail.out b/tests/expectations/compiler/compiler/integers/i128/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/max_fail.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.out b/tests/expectations/compiler/compiler/integers/i128/min.out new file mode 100644 index 0000000000..47c8ff4cc1 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f96b60255571f1dfe682e966e680fd3b250f9b1f7ec99ee0834357e7674e8e28 + initial_ast: a341c3e0b227c976b2c4e3f2071ea79b4477f9e8f5a0175a242482fc9e0fe6fe + symbol_table: 0138140a2caf579059df162c1a92b527056414a2396550814c3c84bd12d7cf21 diff --git a/tests/expectations/compiler/compiler/integers/i128/min_fail.out b/tests/expectations/compiler/compiler/integers/i128/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/min_fail.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.out b/tests/expectations/compiler/compiler/integers/i128/mul.out new file mode 100644 index 0000000000..97b5e64487 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 51a13bfc8843ca3425062e8bca777961536fb9e73ecdf2ea5729b78ae288c3db + initial_ast: 275429c58b52b8d80540eeeffe81ea7182132b42bbcbf9314eb6d87cedf769e7 + symbol_table: fa9c7261b63b0d768f87a8065354877126ba1738feac8f3e672e5d7965197fb5 diff --git a/tests/expectations/compiler/compiler/integers/i128/ne.out b/tests/expectations/compiler/compiler/integers/i128/ne.out new file mode 100644 index 0000000000..fbca6781a8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: dcde1df8d9dcebf8e74fbefaf3a97441be64d6e7bf7eaf11a326a22d2a2510ee + - initial_input_ast: 43c4dedc8b3f4521c214c77f25fadbf5b7f7c699a202d0a5f7f50a147fcfba74 + initial_ast: c9f475f9bad29101a941423e97e83757441cc28efa410434f9ae27839f07bafa + symbol_table: 6df84e8c35b17fadf07a0cc4f163b2ff8bbbe55cbba53cd83d65cba2db965ece diff --git a/tests/expectations/compiler/compiler/integers/i128/negate.out b/tests/expectations/compiler/compiler/integers/i128/negate.out new file mode 100644 index 0000000000..2ac40bda3f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/negate.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1590bd28396faac2c093467acaa2337cf06d48eefd498e2b954d33374d0ac66e + - initial_input_ast: aee25dcd9d478791ef2f2978eed74c9dab3a45ba3d5fe3016a97674490416df1 + initial_ast: fbb42eff2dd3ea8ef4e74f998d10ba76ea3dfb4f5789484fc876bc54c8b582f9 + symbol_table: f43a32ec834f7d09347e6c6b1d625486e7633485be2331a46acb573d79a4cc76 diff --git a/tests/expectations/compiler/compiler/integers/i128/negate_min.out b/tests/expectations/compiler/compiler/integers/i128/negate_min.out new file mode 100644 index 0000000000..6221561fe6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/negate_min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a7f4916705593c961ac55adbd9fedfaf9014ff51d6abe44601d6612958da8385 + initial_ast: 7c3a671b9e3615c476a244b42dfda36db9c0d58db7d8b124290e4872844daaca + symbol_table: d5d7187bc4868636bebb87a40e06a058925bef5401c8f45b7f104c7b6b19f939 diff --git a/tests/expectations/compiler/compiler/integers/i128/negate_zero.out b/tests/expectations/compiler/compiler/integers/i128/negate_zero.out new file mode 100644 index 0000000000..06e87f898f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/negate_zero.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 923ee3c36de197882fb5f42ba7f9c9cf7678bd1fde528dd2e0c7d5e82baf2658 + initial_ast: c6047f16f9defc76ee2f9c44f01ebc00c7b9f72a7d25f0ee518e7fd8b3f5c4dd + symbol_table: 16c331ccf043feb4297a0852c91009c7f8a5c49014909b341e924ae0c5ed0057 diff --git a/tests/expectations/compiler/compiler/integers/i128/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/i128/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/no_space_between_literal.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/pow_fail.out b/tests/expectations/compiler/compiler/integers/i128/pow_fail.out new file mode 100644 index 0000000000..f75370206a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/pow_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i128`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i128/sub.out b/tests/expectations/compiler/compiler/integers/i128/sub.out new file mode 100644 index 0000000000..dc92ba8e8c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e46079b8a7a9057a5ca358833d1e96586051b7f38040f7f967113a3c6dcd0483 + initial_ast: e4c37027d24f38f95598bdc92a184b6ac411eb63addfecc5869b5d241f5732d5 + symbol_table: bfa588d2110f19026945c27f89b0b0c82c42bb370f253bb769909bf10191e06c diff --git a/tests/expectations/compiler/compiler/integers/i128/ternary.out b/tests/expectations/compiler/compiler/integers/i128/ternary.out new file mode 100644 index 0000000000..7e4ddfa55e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i128/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 65fdcdff7ecde6f2dbce288006719080aab352a975e52c12f9585eecea975686 + - initial_input_ast: 11ddda7e55d53afd56bd90f309df6cee97180791c7e0580641f49dca0f3ad7a7 + initial_ast: 4de7b18747a3626dc77775180ad482caff806b2a6cf88318956471407bf000a7 + symbol_table: 8a9672e411a204d821d48c0052000104cfb79332a41230151c5b2068c43beeba diff --git a/tests/expectations/compiler/compiler/integers/i16/add.out b/tests/expectations/compiler/compiler/integers/i16/add.out new file mode 100644 index 0000000000..e6e041f19b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8f8a36339feb052e94e5c5d0bc21e9591c972c331794a9b5ce050d66f9e8ac08 + initial_ast: b869cd86791b366b69f05ea45ea7d37bf002fbbee22a6b08b319f9be9bf43597 + symbol_table: a2a5374e27f9e4175bda35feddefc989dbee536a9a9323184d77da8f29c22439 diff --git a/tests/expectations/compiler/compiler/integers/i16/console_assert.out b/tests/expectations/compiler/compiler/integers/i16/console_assert.out new file mode 100644 index 0000000000..98a18ac061 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7488816e883b21a7361468f10e16daf54396b1c8f21847c4183d0c91c8c79953 + initial_ast: d24648724406b90c1de2b9361bd80216082a2d7bc08613861cd84718c82f1b5f + symbol_table: 18b080b998dff3e057abe7078fb659d100695bd7e39e2252f42d610ffbffbf5a diff --git a/tests/expectations/compiler/compiler/integers/i16/div.out b/tests/expectations/compiler/compiler/integers/i16/div.out new file mode 100644 index 0000000000..a904733fcf --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0a56eb124ccbb44e24efb84366e46da6f80cece6c44beabec729d956530d9779 + initial_ast: 22557d30c694c0b0e91c73a967422e8f8ec668125008e1157d49cda1bf5558bd + symbol_table: 251b05bcad187289e88a5e9a91f7bb733190b42e85ea68a27b28a3eef4d911da diff --git a/tests/expectations/compiler/compiler/integers/i16/eq.out b/tests/expectations/compiler/compiler/integers/i16/eq.out new file mode 100644 index 0000000000..a6f3832ecf --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 31360e58a25738afe090a468da05bc2824ee26f0a113e65291b4d4da08a284f0 + initial_ast: edbc2daca6bb579a2f1b35b86eebd5f9e39768f8e3cc5ee4c92f2a2dd672af3d + symbol_table: a7d6cc1e90bf64c4a27dcbbd7458019771ac4ababc9609b97b5896490fcecb3f diff --git a/tests/expectations/compiler/compiler/integers/i16/ge.out b/tests/expectations/compiler/compiler/integers/i16/ge.out new file mode 100644 index 0000000000..0c394a4aca --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8ffeb6aa4bf6fec72f6bee744173313e59093d1325083a5549434b45dacbedb3 + - initial_input_ast: 8608dad228214cc298c100dea03a3d522b3be83f4bc48d4e16b0588beeedeec4 + initial_ast: 15336749ef464f7629578ad1da6d87a5c94c9a844c8c333b349f86e5e62ec4de + symbol_table: 6104aab3b1b41b2b4695b5d4769e45b9e4908b8a4de5b5efca4d848257442bf4 diff --git a/tests/expectations/compiler/compiler/integers/i16/gt.out b/tests/expectations/compiler/compiler/integers/i16/gt.out new file mode 100644 index 0000000000..6007c078f5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f53474a073061d1429ed995aafe5c1d4dc325543fe7481e8aed52d3e0165472c + - initial_input_ast: f904aa987360b0d6555f20a23ada29316b0f5dabc5fe324bc63ad370c8184d73 + initial_ast: e050abc2d6e8a404b96d2abea06aab386991334de50f563f48e14ca24f163000 + symbol_table: 317fbb7bd126c05485ea4fa9ae0d3ab0712cc7a4a932a3ec373c71b53c2eb1c6 diff --git a/tests/expectations/compiler/compiler/integers/i16/le.out b/tests/expectations/compiler/compiler/integers/i16/le.out new file mode 100644 index 0000000000..7781c0aa48 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8ffeb6aa4bf6fec72f6bee744173313e59093d1325083a5549434b45dacbedb3 + - initial_input_ast: 57ab274d7e52398c67da9e5076dfc654b542af684256f11c9b320f36d219142e + initial_ast: 291c20f2e13b42745dc8c7b44891bbab130b724fa4734a96d9337807c1164491 + symbol_table: d6c41198cfb4aa74a7e868493e0f1f729a14b444d7c4c8e52dad0549a3d2406e diff --git a/tests/expectations/compiler/compiler/integers/i16/lt.out b/tests/expectations/compiler/compiler/integers/i16/lt.out new file mode 100644 index 0000000000..b4ae1cec21 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 384dd543940ee38ba7cb7a6eedbb9e0366070c8909f3e858f628da4a8e7f4795 + - initial_input_ast: 6681e8c849aebf1cc4ba413fed280d197acea129dbb1df8a9768925546fedf70 + initial_ast: e6a44b63da2e6d70110b81ffad2b2ee38814f9baae5a19893bbd2bd12a0107c6 + symbol_table: 1665ab35fbce1d5c3d83bafe311bd810bc5ac8aae9ea78b7a25ff5618d7f3342 diff --git a/tests/expectations/compiler/compiler/integers/i16/max.out b/tests/expectations/compiler/compiler/integers/i16/max.out new file mode 100644 index 0000000000..76458862d2 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 94dbdf6d3728d65315d6266b74115f89ce260941099e81fd3518e03b31e76c24 + initial_ast: 006eec1cf9ffc0cac995a93b0ce69b763f4a9b63c58030203c0fef5b9e1032f8 + symbol_table: 7ddbef5b930cdce68ed97ed630ba0270c0ca53469404d7193ebab7923c171b9d diff --git a/tests/expectations/compiler/compiler/integers/i16/max_fail.out b/tests/expectations/compiler/compiler/integers/i16/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/max_fail.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.out b/tests/expectations/compiler/compiler/integers/i16/min.out new file mode 100644 index 0000000000..b38c5612e9 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a0a37fb9e4072a9bbc28be29894a9f0a3ed0ac123990819f30460a83b52100c5 + initial_ast: 653e9b5748de5efa8ee378e8873f759ae7cab5e7d9070cd420c0e3951d898f2d + symbol_table: c055ae68a50138d22ec1203aa51a919ab72b680d836a2344c6aaabc4dcd238cd diff --git a/tests/expectations/compiler/compiler/integers/i16/min_fail.out b/tests/expectations/compiler/compiler/integers/i16/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/min_fail.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.out b/tests/expectations/compiler/compiler/integers/i16/mul.out new file mode 100644 index 0000000000..ff5623649f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: eb572e984fd7ec4b4430b960f1f8a8eb359ff308ae010f8aead5175c19f48a37 + initial_ast: 3ab1c6f4b724ebd5775fdb29630b9c5b976961d41d215ce31a1a90ca1c949c6d + symbol_table: cabf141530ad80c7281474580d8b372b045f2c05d141467755a4073ad1319ec4 diff --git a/tests/expectations/compiler/compiler/integers/i16/ne.out b/tests/expectations/compiler/compiler/integers/i16/ne.out new file mode 100644 index 0000000000..35e7007c11 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 746c39ffb4c9ea811eee070ac2350aa68db0a111566de31b02c39cc7f458da53 + - initial_input_ast: b7ee1e3384f0916b931f72ce83b830d328511263210ea42d89d3f264d33e741f + initial_ast: e471222556c892e1fe10660f24a793473d5d2975ca0151ab705804b6b360a84c + symbol_table: 5a63b6a441ad209c46c963c0b2c8d22f5b0cac06878111ba85a465781bf709a1 diff --git a/tests/expectations/compiler/compiler/integers/i16/negate.out b/tests/expectations/compiler/compiler/integers/i16/negate.out new file mode 100644 index 0000000000..099e17ce53 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/negate.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0dcea5b9b7684d27b129c8e15c393886b29cf649a557469973632eac3ead3fcf + - initial_input_ast: 4b853f15033814b92442ba77509df6ccff42ded7e84767d66f805aa2101ba673 + initial_ast: e6d527f134ba45e580a248e9dae401f7f71eaa5dd3c41548600fd10a8ac830ca + symbol_table: 58ebb5880bfd3f03b8e478649debaaea4d0c991797c6ee03736306ebde1911e1 diff --git a/tests/expectations/compiler/compiler/integers/i16/negate_min_fail.out b/tests/expectations/compiler/compiler/integers/i16/negate_min_fail.out new file mode 100644 index 0000000000..a53a2056e0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/negate_min_fail.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 88296c4e90c80b248fea96e1a816d21a81e0b97574c79a9e8bb60667070877e4 + initial_ast: 483d6b3c22ea268a9708d50d1a0b2bb25008d7e56061158f3ec2988f0fdbf378 + symbol_table: 3f25d73945c78bfe592ce34d1d25692ac9ef2f78a4de4c1b269a85e0b0c9eb07 diff --git a/tests/expectations/compiler/compiler/integers/i16/negate_zero.out b/tests/expectations/compiler/compiler/integers/i16/negate_zero.out new file mode 100644 index 0000000000..e39b795dfe --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/negate_zero.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b6d101397f4a313cffd45a3c4f0e1fce6e2bc1a9c7a7c5e632e9be21d6d6bc85 + initial_ast: edce64717075ec21f231bfb68e72cd2ca1ee8bbf5eab805729d1f9fe66439231 + symbol_table: e75c57060143b086106291be77bcb92a635af8c16b27f1f862d85d5d573f323d diff --git a/tests/expectations/compiler/compiler/integers/i16/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/i16/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/no_space_between_literal.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.out b/tests/expectations/compiler/compiler/integers/i16/pow_fail.out new file mode 100644 index 0000000000..6a0e90b5a1 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/pow_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i16`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i16/sub.out b/tests/expectations/compiler/compiler/integers/i16/sub.out new file mode 100644 index 0000000000..48f980bb31 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e590410e9bcefb525919ae70dcfb5cab7bd007fb04f3baf5af6d353db78c0b1c + initial_ast: 3f1690cb0dc84ce45dfa66417c90c9be57369288de1c83ec6bbaf7575feae55b + symbol_table: 6f46b9c5c3fd51a4e9ba3a28bc768c1b770a471abc353696d6afba246cb81377 diff --git a/tests/expectations/compiler/compiler/integers/i16/ternary.out b/tests/expectations/compiler/compiler/integers/i16/ternary.out new file mode 100644 index 0000000000..8bb66bc961 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i16/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: beb4a3127afdb6dbd476619f923b1059d526074724d61f6334632b453c5bd37f + - initial_input_ast: 7b6668fe8ed063667a4855817e510453df6d54975455644beefb447815d9aa92 + initial_ast: 36d350451b3be6c9b38f3b095fc7a0f7a4d11e4b3c007a14fd350e6cd032b323 + symbol_table: b9eca2816364b509f8748ffde93edbf654285648e1557ed28380754d8a07d0b8 diff --git a/tests/expectations/compiler/compiler/integers/i32/add.out b/tests/expectations/compiler/compiler/integers/i32/add.out new file mode 100644 index 0000000000..15b74c3cc3 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: eb41a21f5a0b0cea9589243a858fdc66f91774a1e30f9769384c5ffcc82d3748 + initial_ast: 1b3646ec051ebdd0571a6cc5e54dd88b494c24cd2c197045c413894dadcad587 + symbol_table: 91d57b027d297a7a36e4b4f28ea920fe85ae43d6560d67615b3306e7a81bdefa diff --git a/tests/expectations/compiler/compiler/integers/i32/console_assert.out b/tests/expectations/compiler/compiler/integers/i32/console_assert.out new file mode 100644 index 0000000000..90bdbc6e4e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bf70b57faa2b489aaeacd736fdb3400e70b9d81554bd7a63679fc072086c9cfd + initial_ast: f10907e6afbcd4f39d9c6397f684fb9e461d9b95863f22a177784121d3f79fdd + symbol_table: 17f43dfe4ccb14b86cc30382fa7ee7c9fb222d599c657e344165f6deda58719f diff --git a/tests/expectations/compiler/compiler/integers/i32/div.out b/tests/expectations/compiler/compiler/integers/i32/div.out new file mode 100644 index 0000000000..bcfa8ac13f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 651ad255513e0a0213b92027c0e5d1172a786583f9b70844a95793b72c7944e3 + initial_ast: 7cfd4cf2770cc577919934a24a8741844c365c2662852da408fb2b48536cd601 + symbol_table: 9e3afbcb5f6e608103adde426ca8d31f26afaf41a96bcf62f11eaf2c35c837a5 diff --git a/tests/expectations/compiler/compiler/integers/i32/eq.out b/tests/expectations/compiler/compiler/integers/i32/eq.out new file mode 100644 index 0000000000..e8637754aa --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7b7095a0091c987107da507db19783551e50a6fb1db32edb6a068299fbb14fa1 + initial_ast: 4da18080cbf0f3f41dc8b853c4ee55e8020fbfe248c0c292ba4f8d043118baae + symbol_table: 538ff52363f252b0e406b83165be287d74649fb3acc59d17d148b57efcbb7ea5 diff --git a/tests/expectations/compiler/compiler/integers/i32/ge.out b/tests/expectations/compiler/compiler/integers/i32/ge.out new file mode 100644 index 0000000000..916b0650bf --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 192f63078564083f0311df6bec7fa365ad3a59bc4c07dd1800171f2f98ddb681 + - initial_input_ast: 5b9dda05b3fdec7482acc81549abe8559e6e25fd81846af005db746ae4138f32 + initial_ast: 19e32d308bdcbe330ef03b1f6940dee0806a8acb4fc3c8aae5f6e2df4ac9bf1e + symbol_table: 7e321a2262e86b60e929f769ece38c494a863ac520cf00d7015e1ca084f7e8dc diff --git a/tests/expectations/compiler/compiler/integers/i32/gt.out b/tests/expectations/compiler/compiler/integers/i32/gt.out new file mode 100644 index 0000000000..c5ecdc8efc --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 54c8ae21ad089e47320e859b21f7e3de702ea5aa8cd557348a5ce67927ec41c5 + - initial_input_ast: 7312c2718325680c9e882679e97da29e696d0eba505d481dd646f0ab95e8c837 + initial_ast: 2011bf78585b33d3e4cf6d15c2f5e78cbe560164de5500498ccdb1992057189f + symbol_table: 7ac2113c2d402d49671b93a45d60db9ed711845e20d33921825259a424ce7907 diff --git a/tests/expectations/compiler/compiler/integers/i32/le.out b/tests/expectations/compiler/compiler/integers/i32/le.out new file mode 100644 index 0000000000..2ffa283624 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 192f63078564083f0311df6bec7fa365ad3a59bc4c07dd1800171f2f98ddb681 + - initial_input_ast: 4d033520bc6b5cbebcbde0c94098bd216eb9407dab6fe88ba6ffb37fd5855729 + initial_ast: 67da90bcb1cf631e17c4e8532a586ce821a016f70d519febc8d27e468561b529 + symbol_table: 54ad5f9fe1f54c24a41935e19f8d64aa9a67db5b115044683e82fb002467c7a6 diff --git a/tests/expectations/compiler/compiler/integers/i32/lt.out b/tests/expectations/compiler/compiler/integers/i32/lt.out new file mode 100644 index 0000000000..7cba32d7b3 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 58ba8b6fc401bd9170e7a6e9a065961624c460c6d2fc733da54b06476f43f4c9 + - initial_input_ast: f327282e227c7f902489b632a71a6372b653de6e073042569341ada771ccd7af + initial_ast: baeb8485c3dd4abc78da1a07b1847933d49d68a0628b86e94efb72f41caf77ca + symbol_table: 5916d5680354d3a029cc048d2c23b7e574d1ead928b6ead7d761f185174ae3a2 diff --git a/tests/expectations/compiler/compiler/integers/i32/max.out b/tests/expectations/compiler/compiler/integers/i32/max.out new file mode 100644 index 0000000000..9118f0bc61 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b6d101397f4a313cffd45a3c4f0e1fce6e2bc1a9c7a7c5e632e9be21d6d6bc85 + initial_ast: a04d2df1ebcad737ab1e03d5e6b12b6df0892bf745850d0d5acb62cb59f163c6 + symbol_table: b01b9d0b6652648f07617710ffec4f95f3739fa9972d8590fb0f525b38208f1e diff --git a/tests/expectations/compiler/compiler/integers/i32/max_fail.out b/tests/expectations/compiler/compiler/integers/i32/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/max_fail.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.out b/tests/expectations/compiler/compiler/integers/i32/min.out new file mode 100644 index 0000000000..c501c39d3e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 601cd2adf1b53f979c684cc500985ba9ca3b519f3233640f93fe79736af8da7d + initial_ast: 683e024a050b5c96c2fe60a3d4d4cc3ff5da5eb8983be3d2028cab9bf7996275 + symbol_table: 5108df812b06aa69113b9d7bd3638a3d9eeb587a586857daec49fde6e8926695 diff --git a/tests/expectations/compiler/compiler/integers/i32/min_fail.out b/tests/expectations/compiler/compiler/integers/i32/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/min_fail.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.out b/tests/expectations/compiler/compiler/integers/i32/mul.out new file mode 100644 index 0000000000..212466dca4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 49426986c17f3bccf413ac24ebcdb82ec1dcd6f627db9c48726e0ecce535279c + initial_ast: 5e07edbe3d9d0cb4a197c0d3f50728c6749389efae49b82f4a026a8c104a8bc2 + symbol_table: 97809796dd33bedd6b3823929aae64b52eead71dd648720a66d33d8d1a49dd93 diff --git a/tests/expectations/compiler/compiler/integers/i32/ne.out b/tests/expectations/compiler/compiler/integers/i32/ne.out new file mode 100644 index 0000000000..7a2e521ea9 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 13961fc39086263249d3eb299c3bb62af742ef855f8498c36f72ee9b97da1586 + - initial_input_ast: 64d526f0dc86f21ad3da514fe2a1ec9456d5a75f04d2e3d30ca831dc8c974abb + initial_ast: acbc9b1bc845f51e1fab0706653740f027b1f921d4a2df8eb4ba7025040550a0 + symbol_table: 08f02d52e567049dffdd1fed04e03a7f205a6c39b456e9ab9ead6a94aaa8d7f5 diff --git a/tests/expectations/compiler/compiler/integers/i32/negate.out b/tests/expectations/compiler/compiler/integers/i32/negate.out new file mode 100644 index 0000000000..e9f36ba35a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/negate.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: dda27b33484761626653009bf43ee7815242ab8b00c91eba845b6dde2ecd0998 + - initial_input_ast: 2c957d7e6b4f7fb54c982092064f932d76afcdb96a10b99f9a39dd485cd17e09 + initial_ast: 1487e617ff9efe4c253eb92d4157ed1dc0ec05f382ecc1c284f68054b039f3f1 + symbol_table: eeb81dc442a9962c4af0650f25ac1b41611c2dddc87c27aa986e6e0179bd5bfa diff --git a/tests/expectations/compiler/compiler/integers/i32/negate_min.out b/tests/expectations/compiler/compiler/integers/i32/negate_min.out new file mode 100644 index 0000000000..4ddf7d8255 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/negate_min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a21868246c36e4325607d5efb14d1f8b85fac3cca07e97a27849863fe3c0ca1e + initial_ast: 7d7f753ec283252e57a947c7009ca72245572f88727d2645891cf8da9a6ed9ac + symbol_table: 5b5d6200c702aabe152a2e345837922d1dace86e91ef0878fc3db00a63904229 diff --git a/tests/expectations/compiler/compiler/integers/i32/negate_zero.out b/tests/expectations/compiler/compiler/integers/i32/negate_zero.out new file mode 100644 index 0000000000..84f87a0c1b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/negate_zero.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b6d101397f4a313cffd45a3c4f0e1fce6e2bc1a9c7a7c5e632e9be21d6d6bc85 + initial_ast: 1c66668bfd7089e1beca5415d342336ba6c9d42392a7a45c32eba2773f51c542 + symbol_table: e4322091e554934f93e743f47ef99bd0bcae6a70ee214cbc6fb4f7849a95f287 diff --git a/tests/expectations/compiler/compiler/integers/i32/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/i32/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/no_space_between_literal.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/pow_fail.out b/tests/expectations/compiler/compiler/integers/i32/pow_fail.out new file mode 100644 index 0000000000..b5ed1e71b0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/pow_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i32`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i32/sub.out b/tests/expectations/compiler/compiler/integers/i32/sub.out new file mode 100644 index 0000000000..7f9d72c37d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4642ab7923c76f506d1685ef8fce26e07a718982d2a213379e31b4fb2c9f67e1 + initial_ast: ad55d6d9e395b2def76a7e6189ec3a600abbbc12b65878b668f869e44e9ade4a + symbol_table: 3cdb40addf49907ad044d01873be938299bcf55d573d843de205ea7198635f94 diff --git a/tests/expectations/compiler/compiler/integers/i32/ternary.out b/tests/expectations/compiler/compiler/integers/i32/ternary.out new file mode 100644 index 0000000000..b3ff8c111a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i32/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b02494fb9cbcfda522792af1577860dfadf3754503bf184247787616cc684b3f + - initial_input_ast: 6aa84d0b1271ee10aa5fd3d2123f793c8d3663e1ef5bc8bd709602a5f7f2bb05 + initial_ast: 3c335651b8022514466d79e85c6c500f0abacfe9582bd407857789cd11e7bb45 + symbol_table: a6325dccaa62e33b218094d162d688034d983faf12a56ed0e97d5511e8006cd4 diff --git a/tests/expectations/compiler/compiler/integers/i64/add.out b/tests/expectations/compiler/compiler/integers/i64/add.out new file mode 100644 index 0000000000..8df7f647ee --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6e966811e2bf235a62319227398ea147c7a5f92fbbf2bee2393d245e6567d269 + initial_ast: a4aaa16ad2f02dde089066fe74a78413a372672a563e9cd63503c274e355660a + symbol_table: a068224c7eec1e805932f5dd588782f88bd2fd9ba4172b756244cfdc5267d881 diff --git a/tests/expectations/compiler/compiler/integers/i64/console_assert.out b/tests/expectations/compiler/compiler/integers/i64/console_assert.out new file mode 100644 index 0000000000..96eb62dce9 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a5253584ea13138ed5d9be29fae36fdb0fa4a954af387aa33abd8b105fdc9220 + initial_ast: 09ec608f41abd9d671935f29c1cd7e201f33215833e4183f55a2fe79cf9afc21 + symbol_table: 9c3b609e8ceeac0eab0242d4c82170ef38b8d0fcac6fec9c0d832add3a24b8bb diff --git a/tests/expectations/compiler/compiler/integers/i64/div.out b/tests/expectations/compiler/compiler/integers/i64/div.out new file mode 100644 index 0000000000..a5b3dce07f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c6b9ef1a1b814c2f7f531a829e698704764f028fc5a54c353ccad0cbc9879be6 + initial_ast: 4b98bdfa2620aaa5b98c134919ed5337914cc9f51855e162270f304c3509dfc8 + symbol_table: 3a23086d4f62440c9d0cda4504b5ed5e3f25b3c9e0eee866e1e5fa392e285a48 diff --git a/tests/expectations/compiler/compiler/integers/i64/eq.out b/tests/expectations/compiler/compiler/integers/i64/eq.out new file mode 100644 index 0000000000..58719b1134 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 902cab6e2595a4adf8d852f1b821d4722fa0f577b4484a9f3520802fe8e7f9da + initial_ast: 8557928254d8c21c7e2058ae0d413a3565b37ce582ef10bbaee610c5b5c126c2 + symbol_table: c7504422b6fa6207defa0f0c39ffb1b474c517bb07955c3320ab6c58d83dbe50 diff --git a/tests/expectations/compiler/compiler/integers/i64/ge.out b/tests/expectations/compiler/compiler/integers/i64/ge.out new file mode 100644 index 0000000000..1153fe0ab5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8ef54decac5d24c7e13a879378b5dd3b647158161d2f61338fb50126b83aaf48 + - initial_input_ast: cb1c35c7526c112ed10db7e151429758bbf70503600abfcd04a721be78d602dd + initial_ast: 58ae9fd4af59b85c1d4b7dd164303187636ec319737fbe69e1dbdb79271c9804 + symbol_table: aee3e3e9f417d8582d8b6c7e857a03eaf1875d3fdde7e9dcb385bc36d3d2d815 diff --git a/tests/expectations/compiler/compiler/integers/i64/gt.out b/tests/expectations/compiler/compiler/integers/i64/gt.out new file mode 100644 index 0000000000..758b3c8049 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b8713d208c969d37a63f66f5c7ada885a64c858ef3bb2845c60c6aaf365044d + - initial_input_ast: 5ac01e6c15dc0c065b0954824c76badc94b79ad2fa95a63a5d9f938d37f97b77 + initial_ast: 3d74f258de200191d6ca014f3ebf770f84eb80733bc5e15297ace778ba7465c4 + symbol_table: 5f72bb98b06d7990ec3e64d35d898073c5570400b875909ede0989d68927a114 diff --git a/tests/expectations/compiler/compiler/integers/i64/le.out b/tests/expectations/compiler/compiler/integers/i64/le.out new file mode 100644 index 0000000000..7a513e32d7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8ef54decac5d24c7e13a879378b5dd3b647158161d2f61338fb50126b83aaf48 + - initial_input_ast: e351ef4a54f11045f91c0805889a6f4582013d349e43e1892ee09cbecd44a9f6 + initial_ast: 60bf797d4a8e46d0d1f725e0b895efa6477b45a8ea7eff027e5ba9f4a9f3c3f8 + symbol_table: f0d564e882accf8aba27b45cbae1ea8b2f799a95d9cfe301ecd4982b820847b7 diff --git a/tests/expectations/compiler/compiler/integers/i64/lt.out b/tests/expectations/compiler/compiler/integers/i64/lt.out new file mode 100644 index 0000000000..abe6a01ab6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 135191eed617a62ebba5ffd81f1ec98e3346e87a612222678e4cb6c06fb99fd4 + - initial_input_ast: 8bfb062c39e51d49e0676139a4eef60ab1c00de89f067fe14d048ffac52c5252 + initial_ast: 0639333eba431ee73648e8d9a802db5e10cae59258e0bd3c157fe457213a6ca8 + symbol_table: ea55fe93a40dfe155d585f4222db22e8ead527eb2ad652e48d601077fc0ccda6 diff --git a/tests/expectations/compiler/compiler/integers/i64/max.out b/tests/expectations/compiler/compiler/integers/i64/max.out new file mode 100644 index 0000000000..7e5f48c95f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d86c902c588b89aa397e434ba690bf12ab7b0b459fd7e140f082689456f87b48 + initial_ast: 9e2f989fc005f820c0333173a1c1db0e5dfd049c50f0be46709d3b369605594a + symbol_table: cb2212564ae3ed70755444f5c57b4ce7c53622e64150f6a15531f97b73dc7f68 diff --git a/tests/expectations/compiler/compiler/integers/i64/max_fail.out b/tests/expectations/compiler/compiler/integers/i64/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/max_fail.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.out b/tests/expectations/compiler/compiler/integers/i64/min.out new file mode 100644 index 0000000000..8f4f6c2a47 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4be495421ace98fff4d408986b837383a54ca42ce4ac7b0448fc568496e70993 + initial_ast: 94b04d43dba8c44bd983cde6f104ad0acc1e8419152f71f92c28057d02c10b1e + symbol_table: 2cdba8ac70dcc9d7f69a8ee1612dceca6b574043a4ebdd1b468786a271136ad6 diff --git a/tests/expectations/compiler/compiler/integers/i64/min_fail.out b/tests/expectations/compiler/compiler/integers/i64/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/min_fail.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.out b/tests/expectations/compiler/compiler/integers/i64/mul.out new file mode 100644 index 0000000000..92d6d01bde --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cf837d4f210c65db52ce917dcc4eb738c3d3a5c34f632584a5f0590bcffc84ab + initial_ast: df201d064de97f5159dc972b93ff4b84206047722c9ce25554b7eef548a0a244 + symbol_table: dd0d83c0bf95fc5db6f10896c03a8f2928cdce655f025bf831bfe831896ed770 diff --git a/tests/expectations/compiler/compiler/integers/i64/ne.out b/tests/expectations/compiler/compiler/integers/i64/ne.out new file mode 100644 index 0000000000..cca140d628 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: df435ccd83d57635f2c18108dbb6dd1617567ff9e6a12a47302d6424f4c3540a + - initial_input_ast: 5fa964d108baa06301a9d7784da6d1a9d567036987c7207bb500a1f0ec945409 + initial_ast: f115cf62490b73b195fc75ac977786c450be243c2fddab88ef4435631b05a0c1 + symbol_table: 9f12ef2d29fa2b770a4f653b98bddf47532ba5e4db8a2bfcdee4bea9a0a5ca1f diff --git a/tests/expectations/compiler/compiler/integers/i64/negate.out b/tests/expectations/compiler/compiler/integers/i64/negate.out new file mode 100644 index 0000000000..f7a6e20d33 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/negate.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1fb7487a10339474629456ba643050cea01b42c198fa71fc8cba0188c4656822 + - initial_input_ast: 12365a1300abf4af796d2e5e761127e13d6e333e17ca63020eb4f78fa4977a89 + initial_ast: 7e734992a702686fe2fc22ff9fac91c0b4db8ea4be9b54ac37f7e6ad161152dc + symbol_table: 2d5608c50a692eb8cf4d5ba824ee8c852553f0149f8f07fbb3b90b9f2edd43ba diff --git a/tests/expectations/compiler/compiler/integers/i64/negate_min.out b/tests/expectations/compiler/compiler/integers/i64/negate_min.out new file mode 100644 index 0000000000..6e98c1e4a6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/negate_min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6021d4e9a4c181bf4e44518f5e8693ae49e79a36cd5e7dae4ca1fce383753ccb + initial_ast: 45a8eb1a74c018d68f8311775f099ea83746f86f56d17a5d3c88615f05ca3484 + symbol_table: f906ba4cecba6ab5cfa4a1885c6c9727169eddf8b57c1f2624f4c521b4cf26e2 diff --git a/tests/expectations/compiler/compiler/integers/i64/negate_zero.out b/tests/expectations/compiler/compiler/integers/i64/negate_zero.out new file mode 100644 index 0000000000..98235a874f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/negate_zero.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b6d101397f4a313cffd45a3c4f0e1fce6e2bc1a9c7a7c5e632e9be21d6d6bc85 + initial_ast: a7adf208ec0899bd13ae4bdcc6f67211976b3438b5ece14a343b16f383447056 + symbol_table: 2cc8ee55234106278ad79440cba5023a1bcab591dce962649005c8c6d575b9fe diff --git a/tests/expectations/compiler/compiler/integers/i64/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/i64/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/no_space_between_literal.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/pow_fail.out b/tests/expectations/compiler/compiler/integers/i64/pow_fail.out new file mode 100644 index 0000000000..6f6365b32c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/pow_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i64`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i64/sub.out b/tests/expectations/compiler/compiler/integers/i64/sub.out new file mode 100644 index 0000000000..8d731e468b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e0fcc321608132d125da191fa74c5082b446791519e2f91c120495a1b440a77e + initial_ast: 04066970593aa644ae37df5e12ab27f199bf9c49985d74f9cefba65eb87a5b64 + symbol_table: c8bd1266577970427c416d0d3b0e742025e9d57714754f5f754b2c35b86e08c1 diff --git a/tests/expectations/compiler/compiler/integers/i64/ternary.out b/tests/expectations/compiler/compiler/integers/i64/ternary.out new file mode 100644 index 0000000000..1246c80a3c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i64/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3db1b5e7c052de07edad033e19f5ade259245f161f7a0763951c8bd364109838 + - initial_input_ast: 0710684ef40ef026329f2be234b12c7e7f76522b637d70db656b208038eac255 + initial_ast: 33a63f44654f1d38cc148f07fb7e3d31371e26eefc50fc8b9a8e202ad9f3668a + symbol_table: bb5174054ce865f7162a08ad98663e071ce7ce7cddeea62410f63eb174f50180 diff --git a/tests/expectations/compiler/compiler/integers/i8/add.out b/tests/expectations/compiler/compiler/integers/i8/add.out new file mode 100644 index 0000000000..3385f6d46b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0a6f670f5dabbe16296ccdfb83366c2ae59432059003c64d1e6141e658f49cc3 + initial_ast: 63e2aafe9fb89024ad67fb1718bb06769c34704d5980f6ef641c895fedc11782 + symbol_table: 8e0b9ea83bee50df3f311a5b17320cbfd292664cde1ab1b3edf889776a75ec07 diff --git a/tests/expectations/compiler/compiler/integers/i8/console_assert.out b/tests/expectations/compiler/compiler/integers/i8/console_assert.out new file mode 100644 index 0000000000..f03451c14b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0a96b86454464bac33e281e58220559a8898407b3e77df33c85f893a9f57e311 + initial_ast: 6b4636bdff1da74783315f0599c5c0b70f224fe56dd6dc44dfaf498862ea49d2 + symbol_table: ec0d883067d5458d30fab9eaab97dd146ac6e3af22f392cfbec8316dbe11bf44 diff --git a/tests/expectations/compiler/compiler/integers/i8/div.out b/tests/expectations/compiler/compiler/integers/i8/div.out new file mode 100644 index 0000000000..c998e47edc --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e54db1c81e133456e3ca9ec637af6b43feb2ffad5303e4fe2601db67c14b6b6e + initial_ast: a4c4475f9596674ad4ce8103520ed08e9f73d2d7aa8308fca18cae283782de32 + symbol_table: 4555275e0d2377a7e4d2523e35b3cf3a272ce209027e89f311ebd49ea5b6f129 diff --git a/tests/expectations/compiler/compiler/integers/i8/eq.out b/tests/expectations/compiler/compiler/integers/i8/eq.out new file mode 100644 index 0000000000..77905d2370 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: caf602f1b070dbb80e9d81ac86ac39a35fa7139fcf0f1e3f2da0e47e20707b0d + initial_ast: 9afabff955660379d53c088500039f578752a8c1871616a2d3992611dae70372 + symbol_table: 5d1547db2068fae457e038ce9262b15bdaa4ee657f9fd5b5f1f917b0193a56b4 diff --git a/tests/expectations/compiler/compiler/integers/i8/ge.out b/tests/expectations/compiler/compiler/integers/i8/ge.out new file mode 100644 index 0000000000..4992096a33 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b533768f01841786b29407eab6e42a5e411946db785d8ed9e0f966ef7fd34585 + - initial_input_ast: f2a4aa40dd036ec6a49cfed7d3f8e483a3e246911042c7df246be8f13305e964 + initial_ast: deb271d73b6fa2c1c990faf72ca005e29ff433d3856b38e7a4a4ff3c2c1c2829 + symbol_table: 140734be58630b6c26d369da7cc7c980729f94bbbbaf996fcc0a9933a32f911f diff --git a/tests/expectations/compiler/compiler/integers/i8/gt.out b/tests/expectations/compiler/compiler/integers/i8/gt.out new file mode 100644 index 0000000000..43ddafef91 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: afd14aec5238a40d23d04973fc349ac44078961215925cb5fc4e117d5905009d + - initial_input_ast: a7fed0d6bb9e7f2ae8eb9adf002dd8471358eb16eacd360bbb64460b58e434ea + initial_ast: 80a5075332b01642b12161eb2e7389d63b4756ab38cf4f1ea184fa58103152a2 + symbol_table: 64dccb617e1075d0b3d7ff23c23c1a2699339dd91884f944dfee19be7103d08d diff --git a/tests/expectations/compiler/compiler/integers/i8/le.out b/tests/expectations/compiler/compiler/integers/i8/le.out new file mode 100644 index 0000000000..9cf1f41631 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b533768f01841786b29407eab6e42a5e411946db785d8ed9e0f966ef7fd34585 + - initial_input_ast: 937737713bbd867255242e9f460c841d66e7e5ca2c7b120d528a5583e98e692f + initial_ast: b8b892a0353d806075f9fe85b2567b0f8087463ffc8b5afdfaaf0a96bf4bb3b3 + symbol_table: 2ed45562dd02918f38a877037b506f7b9a728f59b0bbd1853f626c7baf2cc937 diff --git a/tests/expectations/compiler/compiler/integers/i8/lt.out b/tests/expectations/compiler/compiler/integers/i8/lt.out new file mode 100644 index 0000000000..cae3128cb6 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ed78d395f6f9689f0a471394946c3bcd9b655b506f45ce9fce08467c6f331a3c + - initial_input_ast: b3e2d6964ad5de72559310f5329debaba34b99dba72c59c6b3b26089c0ea80c4 + initial_ast: 87fca23168c5112f92f906213d7c04d41da2f9e69f0c9b5f2bd2803e9c511597 + symbol_table: e6251d92adc77f2a840325b377f59e2fdb93271b8ed219598b656311a166956c diff --git a/tests/expectations/compiler/compiler/integers/i8/max.out b/tests/expectations/compiler/compiler/integers/i8/max.out new file mode 100644 index 0000000000..08e93373b2 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4d739a3dcbeb1880f45f4fbdf7d12b3949dce64ce617ddaa61c64a674b5aacdf + initial_ast: e35243e9913ae4789a0b9f5d6e9eacc34babb82e62ebc8823066452de9aac59f + symbol_table: 1b3e9d243de52bd4c605c6202a07fc6bceeb01559c6d07fe3c13338c426ac9a2 diff --git a/tests/expectations/compiler/compiler/integers/i8/max_fail.out b/tests/expectations/compiler/compiler/integers/i8/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/max_fail.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.out b/tests/expectations/compiler/compiler/integers/i8/min.out new file mode 100644 index 0000000000..2e3b9dd433 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a21868246c36e4325607d5efb14d1f8b85fac3cca07e97a27849863fe3c0ca1e + initial_ast: 2cbe9310bfe3be0c9ff5443a4fc14f5a0c1e5bad56971bf261e74de6c8b96b48 + symbol_table: 35926c3af44cca918545acb2ef583e041658e31c4a7731e208fea44feb09cef3 diff --git a/tests/expectations/compiler/compiler/integers/i8/min_fail.out b/tests/expectations/compiler/compiler/integers/i8/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/min_fail.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.out b/tests/expectations/compiler/compiler/integers/i8/mul.out new file mode 100644 index 0000000000..47dd86c411 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: c4e9bc98fd41124cd37e99fc914f83c55de76e88601f41d50862e5c22d06938f + initial_ast: 1379ff6afd8de96e5215bd72dbedfd66c70514aa943a792b931e3133cd897416 + symbol_table: e4e5cb710e548721cdc09133278331806efd3ef860c81010e14b6da902c63fd6 diff --git a/tests/expectations/compiler/compiler/integers/i8/ne.out b/tests/expectations/compiler/compiler/integers/i8/ne.out new file mode 100644 index 0000000000..657ae7eb2f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3e3a27bc51a1c91cf0e77efc6f809a2e445865780e94dccaa3a5d7b3f45acbe7 + - initial_input_ast: 5e97882034266467e3d0352b8309c47372f6758e2f0aa30e3d106b1080b762b8 + initial_ast: a9aa58a0fe6c81df3487e38da263ed454ed0a1ce4dc47a9ba68d7b04c3c96588 + symbol_table: 27e9ff31dfd70c3355a9a0944292bc80f19262479b3e2cf1d66e897f77903e12 diff --git a/tests/expectations/compiler/compiler/integers/i8/negate.out b/tests/expectations/compiler/compiler/integers/i8/negate.out new file mode 100644 index 0000000000..4d4c35def8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/negate.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: eb9ab8f3ab1523efdeeed100b79b60adec0a7dd57bcc8c93adab68db1788690b + - initial_input_ast: f4f1e0f2478e8e28a14a3c11a58070e4cbb9a35b8ffc22a2aed0cda1a0ea693f + initial_ast: 5fb5076e1a8680b6c35c60533c57f33c7b05afe5a18cc467c03f26d308e341c7 + symbol_table: a78bc27e15eca8b0f2aa6a289351955b7c525a4d3617f9d59a5b0989d577ddbb diff --git a/tests/expectations/compiler/compiler/integers/i8/negate_min.out b/tests/expectations/compiler/compiler/integers/i8/negate_min.out new file mode 100644 index 0000000000..b633df2532 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/negate_min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 60a5926c63405ce80b2deb5c51e9d8305570aed0f043917b5685f77c85fa16dd + initial_ast: cfb4cffc756da9475ff72218dad4bb473e879921fc2a136abc3afad81650b369 + symbol_table: 41d846fa1adfa0b4eb4ce77bd2691018d3e642516727dd5cee6f3db269528dfb diff --git a/tests/expectations/compiler/compiler/integers/i8/negate_zero.out b/tests/expectations/compiler/compiler/integers/i8/negate_zero.out new file mode 100644 index 0000000000..cb87ddbdb0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/negate_zero.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: de3b3bff02357cc2f7ea8960c3b5cabad44b9d5b76ed52853cb48d738e317a2c + initial_ast: b82e409c44bf561667418fc8a7a107ea247cec436dcdf0ba161afd244dd878f3 + symbol_table: 2b6a5dd88525428542fb220c4d8e501b41655d4040b29e2ef89c9642f0c4efc8 diff --git a/tests/expectations/compiler/compiler/integers/i8/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/i8/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/no_space_between_literal.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.out b/tests/expectations/compiler/compiler/integers/i8/pow_fail.out new file mode 100644 index 0000000000..31cf3f2682 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/pow_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `i8`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/i8/sub.out b/tests/expectations/compiler/compiler/integers/i8/sub.out new file mode 100644 index 0000000000..0f8a5e74f4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 25b989133d671e0d2f347dcd43945109311f953c48cc3e1be853c1bc98a24fff + initial_ast: f8bcaa0b34d642cb37c8be5ab7eb226dc565a5802d69795eb197e8b1e5b45d0c + symbol_table: 3d953695db053c4d923905b7ba2cf4a07258eab1073ec32350a42b1ff21e062c diff --git a/tests/expectations/compiler/compiler/integers/i8/ternary.out b/tests/expectations/compiler/compiler/integers/i8/ternary.out new file mode 100644 index 0000000000..b5da98dfe2 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/i8/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 22cfc698012ee82429331a3fa5dacc1b1ebeaff10bfcae6319c776b1aa0b6782 + - initial_input_ast: 7ee17954911170639a00313738078bdc6d3801a2325b6f633fec7d664c65bcad + initial_ast: fbeeedb9bf32f4014d27172da623e262db55ae27ad367d09e31cb71bc4b974cc + symbol_table: b21d2e90eac903afce4b0b3d2b7683d7861017f4debf75b7f772dfef57912a99 diff --git a/tests/expectations/compiler/compiler/integers/u128/add.out b/tests/expectations/compiler/compiler/integers/u128/add.out new file mode 100644 index 0000000000..a4d62a0dd8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: bd72282f194aa1e65c9cdbd5d50e314383be002be40a8254a9c5c1a798f2d159 + initial_ast: c09bcbdf96f73f93cdf12a30fcb17f317f484279ef95a405ac024b497d89e2ff + symbol_table: 85b962b65942577bd29569717e56d2d69e66f7bcba0179cf8d2baec07f7e8af6 diff --git a/tests/expectations/compiler/compiler/integers/u128/console_assert.out b/tests/expectations/compiler/compiler/integers/u128/console_assert.out new file mode 100644 index 0000000000..5ba66410c1 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9d55efa3b9383877b5a28fff6f1101ea56dd8af3f809d54fc6974ffe95bed947 + initial_ast: c7ec9e92e0ac15c17db0c5d40b53c394d4da748f7f37ff2fee74baaa956165ad + symbol_table: d4076bbf2b0c5f3d746fc83776930936a1652df9937f5010ce7984f53c670018 diff --git a/tests/expectations/compiler/compiler/integers/u128/div.out b/tests/expectations/compiler/compiler/integers/u128/div.out new file mode 100644 index 0000000000..37fbb31fda --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a2aac10cbfcb7399625d6f0f380f13b0abe94d71ed072b587964ceb2a863d40 + initial_ast: 470aa930cedf15168fea1fcddd49d7cedd5410599ae372c5bea9948aef2bd7f0 + symbol_table: b860f0736b19cbc0a9e9bc36c631aa8950663669440f273a1def28dc9d3ffaf7 diff --git a/tests/expectations/compiler/compiler/integers/u128/eq.out b/tests/expectations/compiler/compiler/integers/u128/eq.out new file mode 100644 index 0000000000..2ca1d0f1d9 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f768e04f532c319e4c531815c0dac450c51d31ed63c449993cce42ba00040367 + initial_ast: fa1d49c14840d8af2266f95e90b0c7534afb43af6c8365a96796b88a1069f9f8 + symbol_table: 810f788ffb3a6bcb04d8ca7b2ad3ea01877ea76777e34e4625418328a1093073 diff --git a/tests/expectations/compiler/compiler/integers/u128/ge.out b/tests/expectations/compiler/compiler/integers/u128/ge.out new file mode 100644 index 0000000000..90824fb488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 561e304e0f9a5ebc095880ecb455d1200481c4b92ef7d7eec6d1eeb5211a353f + - initial_input_ast: 90218d80d335370205075be1bb0e6610c1e1ba283df48176d11eb4c424006dd8 + initial_ast: 847e7362b25734a8e0a5fa0bc9debae17ff6f1bffdfd7b496ae84f8b601ac3ce + symbol_table: e8ceacdf3ebc465210fec71b100a0019df8ca4851a3d5efd1185254000d06916 diff --git a/tests/expectations/compiler/compiler/integers/u128/gt.out b/tests/expectations/compiler/compiler/integers/u128/gt.out new file mode 100644 index 0000000000..84df8aa281 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f26a3acc7d1fb7f6e1ba2f88c421456f7f862a8e12842127a341e4622a961306 + - initial_input_ast: a45a7e10846c3592e194cd775d4c3540d150c1df49355cd8fb5039f4f614a3a5 + initial_ast: 97e1caf8274c2e27e34f2218ab5aadd7a14ce8e518e7adc021c5763b7ea3de42 + symbol_table: 89707a7895e99e75f57702b9b6ec1c6b2f3c47ed08cc9dc574e444b3659d18e4 diff --git a/tests/expectations/compiler/compiler/integers/u128/le.out b/tests/expectations/compiler/compiler/integers/u128/le.out new file mode 100644 index 0000000000..658b505197 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 561e304e0f9a5ebc095880ecb455d1200481c4b92ef7d7eec6d1eeb5211a353f + - initial_input_ast: 5db4586f26dd0d2c6db446422a4570b30fc7569371f370e0ea25029289648ced + initial_ast: 6bd26a8e357e60f91ce8e937718b89b83f245d71a1a2cd1a51a433766cc21dad + symbol_table: 99f0b298fb1ed49f301f34c9ca78bbead27b963076cafc5ea499f190b185db65 diff --git a/tests/expectations/compiler/compiler/integers/u128/lt.out b/tests/expectations/compiler/compiler/integers/u128/lt.out new file mode 100644 index 0000000000..71f3faeb07 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 195112b9fe49ffec2be945b5c78349859ed1d4f24a6e4ff6cebf16036f99f63e + - initial_input_ast: 5ac31b19fe9b441970482a3adacf4e8449404e97f8401a7a293008cd8dcccc27 + initial_ast: 6e319b6448230333f01fcbc23928f2d07a7d52ecf356c42ba5a9f17f85030c6d + symbol_table: 9fb210efb68e147ee91dda83bbc74fe51067b5fecd0260dd75f8e3e9e368ced3 diff --git a/tests/expectations/compiler/compiler/integers/u128/max.out b/tests/expectations/compiler/compiler/integers/u128/max.out new file mode 100644 index 0000000000..a5e21de5c2 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a74c1b7af568d593690e7ba3823c660f7163e5d90d8bbace6f742eb7da1ae6ff + initial_ast: ca430b8d5b3a8b35d67d30d0a7b850e1199f014f7e31811406cbe358d065a6eb + symbol_table: 9c203cd288a2f3577f640688fee03a294455dca3bfd408450b9ed4cd8a66ee3e diff --git a/tests/expectations/compiler/compiler/integers/u128/max_fail.out b/tests/expectations/compiler/compiler/integers/u128/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/max_fail.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.out b/tests/expectations/compiler/compiler/integers/u128/min.out new file mode 100644 index 0000000000..4f167f9565 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 43adaa31f572639c8ac2fc8547f0f3792c051b0c20e1806a11c549431afa749a + initial_ast: f5fdadf1872f694e788efa0b2eeaed8744c4ae5bf85ca21bed5bf4fba73dedd3 + symbol_table: a65fd445b64a716c9bc40bb14096fbbb96f8a48dd0150107719dad4df3f711b7 diff --git a/tests/expectations/compiler/compiler/integers/u128/min_fail.out b/tests/expectations/compiler/compiler/integers/u128/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/min_fail.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.out b/tests/expectations/compiler/compiler/integers/u128/mul.out new file mode 100644 index 0000000000..38a5eb1d7e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 84503f3186fbc5830cc93ea35041e520e5e4caea2f3cfa0e822b9e0b0335de72 + initial_ast: 5d6b4ef63ae8e4fe01ee2d19ca2de4f3183af25a84b9d9aa47c4759f9119e3a8 + symbol_table: 492476caf2b1e39802f7f2020a5fc5e7d2324d2b1e20ac2ac76143999021bd10 diff --git a/tests/expectations/compiler/compiler/integers/u128/ne.out b/tests/expectations/compiler/compiler/integers/u128/ne.out new file mode 100644 index 0000000000..5e5cec10f3 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 38a38271514b3840ec8ac687a9a32d9334241e93328860c2a2f85e4b68f2f1dc + - initial_input_ast: 07fe09d916ba8ac1adbdc7924a312fc2677ebab8f0443d8d5382645b3e7ffef7 + initial_ast: 401daa77a0b0589d3eb44f7de5efd367afa3c2626463363aab1fde57eb5d90d2 + symbol_table: d7ae64f36f0070a56e827f3364bfd08d912442a7b8edcb06e02aab28bc27eb95 diff --git a/tests/expectations/compiler/compiler/integers/u128/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/u128/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/no_space_between_literal.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/pow.out b/tests/expectations/compiler/compiler/integers/u128/pow.out new file mode 100644 index 0000000000..6d152e6fc4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/pow.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `u128`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/u128/sub.out b/tests/expectations/compiler/compiler/integers/u128/sub.out new file mode 100644 index 0000000000..bf750f4dc3 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 3a9d9c7b09713b67a091ecbf03451fcb86513dc8eb63c96bcc21d8eaa090c3cb + initial_ast: f18ff230b4a7482f58667af30686b4010d20b119db1e3875d912efd8ffd83b4b + symbol_table: e912494e08433871177197dc0704564f9b2153f8310c337f2942910a4322727a diff --git a/tests/expectations/compiler/compiler/integers/u128/ternary.out b/tests/expectations/compiler/compiler/integers/u128/ternary.out new file mode 100644 index 0000000000..8f52bdc866 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u128/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a0180507083657db4fc21b0e1f2e7824da8eeb7c8cb6e6481bae9bfca63eaf6d + - initial_input_ast: e7cfd66acc54d54cd7f9cba535b240973b73b0a9db9803d45344abf62e776adc + initial_ast: 73d43529cae30694437cb5762150833c654639587f2e24df0a93312afc1e5b1a + symbol_table: 861b84e4240b96a0f87b9b401b1ad2b9142fb257fb3bbaa2c5971657be173c76 diff --git a/tests/expectations/compiler/compiler/integers/u16/add.out b/tests/expectations/compiler/compiler/integers/u16/add.out new file mode 100644 index 0000000000..fe7eccee8b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2c4fbe74ef1df386b47eaf5b4718c33fc6702684839494bec4c37df973c8842b + initial_ast: 0efce2048d443bc625ffe58dbc7af9d7cfcba635825a8dd3480708cc660ab57a + symbol_table: fc9af6255d47fab1a9381ef8b213992b64318d93d06aff86fe311d922219d2e5 diff --git a/tests/expectations/compiler/compiler/integers/u16/console_assert.out b/tests/expectations/compiler/compiler/integers/u16/console_assert.out new file mode 100644 index 0000000000..c2f745335a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6df4c6afdf97be14a81c2ec172376013f76aae8aafbae708abfbc58b2316225e + initial_ast: 68df919b5fb7b992c5e900b16a3c02ef9e2fe737d0ec61d67859c5b22a3630c9 + symbol_table: f853476b0d85194a0854b75ac10f909fb99f9113c51052cd1a5f0bf85bc08c33 diff --git a/tests/expectations/compiler/compiler/integers/u16/div.out b/tests/expectations/compiler/compiler/integers/u16/div.out new file mode 100644 index 0000000000..6851eb6ce2 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 80d283b0a50f4786632ec4351150e9171b6f8286113f8a5b3085716e4d9c68e1 + initial_ast: f72e0c7991f49f2d668f6693a50615eec8a2ddf54f1a92e51f84c34be6b4b240 + symbol_table: d503fb2e671a7551cd4a748b105340c9bf66410fd12b3dab6b25dd1b695ba11a diff --git a/tests/expectations/compiler/compiler/integers/u16/eq.out b/tests/expectations/compiler/compiler/integers/u16/eq.out new file mode 100644 index 0000000000..55498d43da --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b2261594bcbde7cbe6e66017a3bf0a18a54bbda7d51e49a7657285bbe92d4325 + initial_ast: d8ec08bd1f7422819148f21816252bb209fe01589464ac91d6129d459b27ddd7 + symbol_table: c29e55549b8d692f7280790b7f7f199f76936be35d38900c16fef826d466f7f0 diff --git a/tests/expectations/compiler/compiler/integers/u16/ge.out b/tests/expectations/compiler/compiler/integers/u16/ge.out new file mode 100644 index 0000000000..a44d4aeb04 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e16165588c68a274dd50dcbb783a306da86850306c39310be000f6b429b3f3af + - initial_input_ast: a91b5eb325ef6b75934a7f5650223d346a7c10b853e5d6b47f7eed4e5d16ee3f + initial_ast: ffd62f056ca96a4242be3b13b1d31608b2a6823bc422ed612052430f2f2c2525 + symbol_table: 16b929c11b82b4fd9bbcf7e796533ad2b4f0eb781406b322434b4c54aca50a1b diff --git a/tests/expectations/compiler/compiler/integers/u16/gt.out b/tests/expectations/compiler/compiler/integers/u16/gt.out new file mode 100644 index 0000000000..12c187ddbc --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fadfc9ea6fe2bde382276e48f43bdf535341620002df585386279a409ae4f96e + - initial_input_ast: 7785693c3d1d42da7e04b9df87174f596106f9bf3fb55f7725d31a7f350d37a0 + initial_ast: a142b4368f83dc792a96dfa115f4d8527acb2f87530b5693e26a40efcc9f1c8e + symbol_table: 8a398f6aebf358c24e9dd587ce92952ec81b01091b8083fee417004729239fb1 diff --git a/tests/expectations/compiler/compiler/integers/u16/le.out b/tests/expectations/compiler/compiler/integers/u16/le.out new file mode 100644 index 0000000000..eaa89b6303 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e16165588c68a274dd50dcbb783a306da86850306c39310be000f6b429b3f3af + - initial_input_ast: beec34a631e62b9fc6978b0ae014a85785cf863b4fa2313af21dd9e66db05789 + initial_ast: 6069f6133c8f6b53a639df57a3ef45ab0dc95d6d78abff6981b344355c4eb35b + symbol_table: 45e3eece0eaa9d501a4dbaa4393af12e05f047ef706e233fa9b4ed6fc34452c6 diff --git a/tests/expectations/compiler/compiler/integers/u16/lt.out b/tests/expectations/compiler/compiler/integers/u16/lt.out new file mode 100644 index 0000000000..a03016cc57 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fe8bfdc145a7b6048ee718f7d2ef78554cf000e5ac34f6980ae1a099ba7c58bc + - initial_input_ast: 8ea162708073bd279d476f4b1fc7a39a68f3f32649c78b15f3fb070f52de5127 + initial_ast: 811b1d04a4474b7f3b943caebe9e5fcca1f9fe7e77cc84e6fb85d40d0d66cb55 + symbol_table: fbf494506c1a385c0c7fe2a129526511d24000d2d384dcab652c5d945cded4dc diff --git a/tests/expectations/compiler/compiler/integers/u16/max.out b/tests/expectations/compiler/compiler/integers/u16/max.out new file mode 100644 index 0000000000..dda5bd988b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 94dbdf6d3728d65315d6266b74115f89ce260941099e81fd3518e03b31e76c24 + initial_ast: 3569b926e9587ec303d9cf4a70bd2622d37d928a94d05202c4060de98807cf0a + symbol_table: bec7306bb310d7e07b27c36388823bb20beb01af214bb0f1fa99408146b6ef28 diff --git a/tests/expectations/compiler/compiler/integers/u16/max_fail.out b/tests/expectations/compiler/compiler/integers/u16/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/max_fail.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.out b/tests/expectations/compiler/compiler/integers/u16/min.out new file mode 100644 index 0000000000..2b6941dfb3 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4d739a3dcbeb1880f45f4fbdf7d12b3949dce64ce617ddaa61c64a674b5aacdf + initial_ast: 9f56a0fc14ae4088012d080b50553397fbb3401fb9825baf8e6d29f808e58ba6 + symbol_table: 5deb78bbe52d2923543b4ea4f5646b9236d4b1c5142d80e8cf78b365f825dd54 diff --git a/tests/expectations/compiler/compiler/integers/u16/min_fail.out b/tests/expectations/compiler/compiler/integers/u16/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/min_fail.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.out b/tests/expectations/compiler/compiler/integers/u16/mul.out new file mode 100644 index 0000000000..656842aace --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ce3789aa86cbbfc361e81eda7152de12cb5ea67fcad9517246dc361cca3264ee + initial_ast: 56f9a8d2c0275f7dfd5894d5a5511a528bef0c016fc5569030c8f83d31fb76a6 + symbol_table: 67524bfa6b96b5b199531ea90427d4cd70f525e265de92d04cca02f3d45e6b5e diff --git a/tests/expectations/compiler/compiler/integers/u16/ne.out b/tests/expectations/compiler/compiler/integers/u16/ne.out new file mode 100644 index 0000000000..4b4fe253fb --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d0b575e8ccb61c3b564ac36956a47078c08701707a8a03b7b7e91fa6e56915a0 + - initial_input_ast: 5fcbe24ecb89070dcace669f7d9b88eb93c8c6e57709dad1518995aaee0be5b4 + initial_ast: 142411669f9231a6caf241a77f9b0382d071adb97f38057cef33152035bd8d57 + symbol_table: 8b86b6d82c6c27d86bd474a3beb85a2f3dbc994e06bc108c4c52d0cb5949279a diff --git a/tests/expectations/compiler/compiler/integers/u16/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/u16/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/no_space_between_literal.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.out b/tests/expectations/compiler/compiler/integers/u16/pow.out new file mode 100644 index 0000000000..fa5d8fede9 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/pow.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0fc24d373b31b114b4798569c7cc9312cb7978ebb6520b4d1b53cd6e379ddca3 + initial_ast: adff33d9b32d6ae4f6bef29637b0b20e6d85aa52d15d88f148032e044e14f7fc + symbol_table: 395e10aaca24280476a805c4d4160422e77a230b3679ac74465fee5ffdd1a080 diff --git a/tests/expectations/compiler/compiler/integers/u16/sub.out b/tests/expectations/compiler/compiler/integers/u16/sub.out new file mode 100644 index 0000000000..0684be962e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ec06725d558678d7a9a0859173c817a582796d0b4cfeadc1518538812b5cab08 + initial_ast: ec2e2b4718488d2d07cbe5758260ae2d9d68c827177bd76cc1e5457f65017566 + symbol_table: 110177e4f38eec1ce7a4cfc3394abd48fbf0abc8c026aa80f6740854ddf0c601 diff --git a/tests/expectations/compiler/compiler/integers/u16/ternary.out b/tests/expectations/compiler/compiler/integers/u16/ternary.out new file mode 100644 index 0000000000..fcef76fc4d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u16/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6d2849784b279a45e81f8478276149a0009d5b011e3406b73d82fba7f21352cb + - initial_input_ast: 89fe5eeb95cea5e4f43b2730e5d7bd8060d5f3f5104290e020b52b137cad0fd1 + initial_ast: 80358eaf5d798403150ea7b58b5b45cf3d3a42f1f37152450d359afe309f2b31 + symbol_table: a7928661efb06f2c8ba228d5874a051d7f1a89b8ac43a86a6f696c71cafe8c99 diff --git a/tests/expectations/compiler/compiler/integers/u32/add.out b/tests/expectations/compiler/compiler/integers/u32/add.out new file mode 100644 index 0000000000..7bde0e3a36 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5a66314f73ac7bda280528133158cf040e9c4c49628ddf12007cc03a1bb2be53 + initial_ast: fc9b2c59dcc3901aa963eb618fc50a6d32f778010863b35e1b06a63d15fb695d + symbol_table: 6ff06ce993f0b5ec8c66ba9e75c5928183dbb6850903db4be5113f04af0ed76c diff --git a/tests/expectations/compiler/compiler/integers/u32/console_assert.out b/tests/expectations/compiler/compiler/integers/u32/console_assert.out new file mode 100644 index 0000000000..2acf1fedbb --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 36134ed864d14e77d444738cd1ca5c3c46405779603b13a2dafe2c6068dc8336 + initial_ast: 09903ab2024e24699030dd6f922b1cc87885a491ebe86bb1d59d157380233f9a + symbol_table: 91a6e056fd1be16164f5ce3584ddd1379dd57804d8f86600a2539d5cbf69d9d3 diff --git a/tests/expectations/compiler/compiler/integers/u32/div.out b/tests/expectations/compiler/compiler/integers/u32/div.out new file mode 100644 index 0000000000..2d78fe1341 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6de7866e0cf457f10ba17b526a039f29d50cc6428f3ea30a7a15dcab23d6bdce + initial_ast: e6a1184fcf21d1fb2539eeacaabeebfbb8c99e8b588f0c09ae95b6fa60ba77fa + symbol_table: 8d74342a843483c6b40c01a16837fd88bad7dc23ced778274c122d544b80c16f diff --git a/tests/expectations/compiler/compiler/integers/u32/eq.out b/tests/expectations/compiler/compiler/integers/u32/eq.out new file mode 100644 index 0000000000..9f5d432f15 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 59ef85c3b74f2470556f96bb807465b378d087d89a4ae9f22e7b39c43ead8e43 + initial_ast: 3930060cab3cda894f9b46576de10b68e7413c6a1779df7f89d4a825d8c33dfa + symbol_table: bf9f7466ca3f1f251a1020c27f1bd2da1e9df41aa9ec0ebbe9566ca15ca6d187 diff --git a/tests/expectations/compiler/compiler/integers/u32/ge.out b/tests/expectations/compiler/compiler/integers/u32/ge.out new file mode 100644 index 0000000000..746d69847d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6927b659a0e726ba11f57c25eaad7d42bd241d23029339a9ec372f07c7f8d8ab + - initial_input_ast: ae79e4d6fd859aa4dc80889c8bac25c13d039babf3ea2311cb13e50185b6705e + initial_ast: 0b2cfae1a74ef8c4237693818094b78fb0fa4311e4fb4730b420f386f5d770fd + symbol_table: 205156450b1fac27b4f7db1aeb73ac72acdfde83653f49cd82e53f28b7eaa711 diff --git a/tests/expectations/compiler/compiler/integers/u32/gt.out b/tests/expectations/compiler/compiler/integers/u32/gt.out new file mode 100644 index 0000000000..73173bab1f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: fc48a70dd6ca5fa22b3fa8295020273faf9994c21db2dfa37738c4a36de2a981 + - initial_input_ast: c91b35902b7f3b5cbf124f43f300266b21613798c14c92d636a2429884bc698c + initial_ast: a9de078a8c6ea3a6ad5543eb56b15f866207d25faddbd8b0240aa37da2d45749 + symbol_table: 87020d2ad022a8b9be61375c39d7ac099e86f1e35b6e55fb8fdb19688ff7dbf2 diff --git a/tests/expectations/compiler/compiler/integers/u32/le.out b/tests/expectations/compiler/compiler/integers/u32/le.out new file mode 100644 index 0000000000..60ff3919a7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 6927b659a0e726ba11f57c25eaad7d42bd241d23029339a9ec372f07c7f8d8ab + - initial_input_ast: b0a12b88d61841e618f5025d311b6267f95d86d203e5bc1244071ba7a76ef576 + initial_ast: bf1de40b3baaabdda7933d39d9b69f288e7783d927f33d29ec329be2ac329c64 + symbol_table: 03559ff948dc52ac09a9581784b70c0c16186099815fc789f7c2e38de843b36b diff --git a/tests/expectations/compiler/compiler/integers/u32/lt.out b/tests/expectations/compiler/compiler/integers/u32/lt.out new file mode 100644 index 0000000000..66af4f1526 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0cd6cfd8b391c00f2fde15729053be0517945c6d041c65c3d62f5cc0aedbf406 + - initial_input_ast: 5b46926339784405028421bb262dee94dbfbaa3d6ede5977171b4e873019c42e + initial_ast: 7111e358e69cfc0bf425c821b892ed379ddeb7e704053f660a7149b633f09f18 + symbol_table: 4ee1d6b6a6b122bade0b7b39b761bfa9bb440c8f89508b577ed67cf152714625 diff --git a/tests/expectations/compiler/compiler/integers/u32/max.out b/tests/expectations/compiler/compiler/integers/u32/max.out new file mode 100644 index 0000000000..8db38f53d5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b6d101397f4a313cffd45a3c4f0e1fce6e2bc1a9c7a7c5e632e9be21d6d6bc85 + initial_ast: b12816b3a424df0048ab6e3e9532ba613d947809428583e05c96933ce6bf7d6d + symbol_table: cc35eba61d9056f2a1c49d88f7b1ce915dcddc22a35d4426590f3e1c084292f7 diff --git a/tests/expectations/compiler/compiler/integers/u32/max_fail.out b/tests/expectations/compiler/compiler/integers/u32/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/max_fail.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.out b/tests/expectations/compiler/compiler/integers/u32/min.out new file mode 100644 index 0000000000..8b0285966a --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4d739a3dcbeb1880f45f4fbdf7d12b3949dce64ce617ddaa61c64a674b5aacdf + initial_ast: fe1dd2002bf1a06344191e9adfd7202c694e7dbbbdaca88f28c2a6a240b67afd + symbol_table: f4928deaa7f57c4f89bb8a9bfcd445dd5ea2334b24bf597394cd02f7596ee859 diff --git a/tests/expectations/compiler/compiler/integers/u32/min_fail.out b/tests/expectations/compiler/compiler/integers/u32/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/min_fail.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.out b/tests/expectations/compiler/compiler/integers/u32/mul.out new file mode 100644 index 0000000000..82cf8a15d8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d76ccf685db8ba14d7269d926382477cf9bd43e2b7951abd1b377771857c3398 + initial_ast: 445a52143c5561473e614674752bbfc1f0ab670b799713d2006989dece28d8d5 + symbol_table: c8d574a07d984011594cd03bdab453577a66de7aa485e17849b8d30839ab6f04 diff --git a/tests/expectations/compiler/compiler/integers/u32/ne.out b/tests/expectations/compiler/compiler/integers/u32/ne.out new file mode 100644 index 0000000000..cf79f05ab4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 9cd2ec5c5fb4116831171d5edea7a6ec500fe1b6d6689752f830478e3c2341d9 + - initial_input_ast: b6f90bf531a7d0d6e2fa3fe7011c4e75f8afd8503c28d86cce2bbc4285f48702 + initial_ast: a2fce2693c1000822f5e3841994646404df0ffa0f343354362ab19d1da92ce22 + symbol_table: 2ffeb5b590edb28b43fcfb4bdcc6912a500861b1483244d38a9bde2b809888af diff --git a/tests/expectations/compiler/compiler/integers/u32/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/u32/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/no_space_between_literal.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/pow.out b/tests/expectations/compiler/compiler/integers/u32/pow.out new file mode 100644 index 0000000000..f9422fcfeb --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/pow.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f9febc6a7e8f4c36c6878e06f30eb30808f02ab434ea7dc520407bb15eb8c37b + initial_ast: ffe1c1283a61572b6f31aa59f827f814df7a88e8d1811a20c30a044ef2471878 + symbol_table: 6bc8cb105449c94886d662abced73603cdd16e838f664617e826dcd607726807 diff --git a/tests/expectations/compiler/compiler/integers/u32/sub.out b/tests/expectations/compiler/compiler/integers/u32/sub.out new file mode 100644 index 0000000000..7064e4c4dc --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e9ec948d02f25436c3149be5eccbe74520a0a15d87e717855e39cb9520479a94 + initial_ast: dbd7ac04b429e55feb60410fa01f02152ca2b763ee1a6d7d3324314991838072 + symbol_table: d4310691d3e4ebd32d0daf09959bb283958cbc21e380f4b0dbc2acdaa8ec2814 diff --git a/tests/expectations/compiler/compiler/integers/u32/ternary.out b/tests/expectations/compiler/compiler/integers/u32/ternary.out new file mode 100644 index 0000000000..7fb135f5de --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u32/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 73796507af8bba1934f98937b8a82b92df5d2031639b6092c62bc4fde940381c + - initial_input_ast: 448710837514daeaceb54d63fdde57d5a09b06a74d71b62e85073e5dc235896f + initial_ast: a501d6b24248229cc476db3c38556aacb27ad8a2aa6398569a13c2fc87cb122b + symbol_table: 8284d3b33f9ced79baf054d55f75b359035654b6ad1f1cfd84a51e2ee6e7ff2b diff --git a/tests/expectations/compiler/compiler/integers/u64/add.out b/tests/expectations/compiler/compiler/integers/u64/add.out new file mode 100644 index 0000000000..8e5d6780e8 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d93ab26059e10b206e200fd34ec7df2c003ae0d456f7cc1cc4c7dcc55584b789 + initial_ast: 340164d2eb54080cf67f584148ece7d5873c20a570a6bb0173d2d7fe8512e97b + symbol_table: feb2633a6e533889f6d0727d747943f113c06939c9c7f642799efc17ae7fa3e5 diff --git a/tests/expectations/compiler/compiler/integers/u64/console_assert.out b/tests/expectations/compiler/compiler/integers/u64/console_assert.out new file mode 100644 index 0000000000..3d99c05a6e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4678bf3cf8ed344bc84b440dd2df2b9175f49f3ce9e98b8ff3fba98baed9082d + initial_ast: 5b3f45f81f96fd2606f09a1936b302b896a610c3f72f4d1549648cf506fe65b4 + symbol_table: ac9e61a4c28bf284f0fe18e8ccafa7c34c469039bd7cf2d9771750362f586d35 diff --git a/tests/expectations/compiler/compiler/integers/u64/div.out b/tests/expectations/compiler/compiler/integers/u64/div.out new file mode 100644 index 0000000000..aac4ed67e4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5afa17bed3b275ecb1125e703148c21ab4afe4f2615e689b89c7bc2bfbb9a434 + initial_ast: a79fed9ce5b7424f09ebfab59dc874c2b43cc71955d4c8d0d8c1f9277288d5be + symbol_table: f7a687b45c1bc3c1c90675e1507417c240e2655ae5b6554fbca6a66a42c1f7b5 diff --git a/tests/expectations/compiler/compiler/integers/u64/eq.out b/tests/expectations/compiler/compiler/integers/u64/eq.out new file mode 100644 index 0000000000..bf4f836d2d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: d9eaba478f38e0a3f2e3ca17c5311c03ad096b289ad19b4220c90e39b57f8b67 + initial_ast: 0b87059e5a0ea16416c02be3dbf974dadaa25fcb273aa5095300bb86eb9c9a14 + symbol_table: 1e113dd2c8ea40abe537b2ccd1245d7e171e443dfc24307f45c3877751a334c3 diff --git a/tests/expectations/compiler/compiler/integers/u64/ge.out b/tests/expectations/compiler/compiler/integers/u64/ge.out new file mode 100644 index 0000000000..0458cfedb7 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ad6ec2dee4863ab0708b1a51877bea9e1e1ecc0725bc2dec8afd3f7f8a9c9777 + - initial_input_ast: 8610bc83c4598c14f8c3be04205548b1bebfe825c08cf82464e581f106184b15 + initial_ast: f32412a1ae839ad311c8e845f07bf4658e400b7cb9dde04f5c8b6777ca0794e8 + symbol_table: 629463ded7f67dd9093f0db7c370ccb1edb2bfa52cf782ab4269e48ca9834123 diff --git a/tests/expectations/compiler/compiler/integers/u64/gt.out b/tests/expectations/compiler/compiler/integers/u64/gt.out new file mode 100644 index 0000000000..b3e6cddc35 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 78dba6c245045aa8656239dc36953ae4f49e188bd11538034cb3e31a907979fe + - initial_input_ast: ce564bfbcf6cb3f716f60fb119e823e7b26d1d0c4a167d9957a811dffb486316 + initial_ast: 2fddc57755bd974f2e5a7e605edbcca484741fdd7e04b9eb4c661e848c1f728d + symbol_table: bb3128535cb5aa89dccbcab7c81053adaa75b6aeb8b125efc722cc232f84cd48 diff --git a/tests/expectations/compiler/compiler/integers/u64/le.out b/tests/expectations/compiler/compiler/integers/u64/le.out new file mode 100644 index 0000000000..a9b881fc0c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: ad6ec2dee4863ab0708b1a51877bea9e1e1ecc0725bc2dec8afd3f7f8a9c9777 + - initial_input_ast: 3e83829fce723e877e914064238f609a7d7a978e46d2af4ee37b459001c08934 + initial_ast: 6dda6cdd97609d76927d2160abb3ac90b6baabedd3e77acca1b98ec23089976d + symbol_table: 868d8d3feb6831df4d8714d277368b48a5ce4f3fd93d584dd9f793b36eb37afd diff --git a/tests/expectations/compiler/compiler/integers/u64/lt.out b/tests/expectations/compiler/compiler/integers/u64/lt.out new file mode 100644 index 0000000000..e3f3a46d7d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f182c4405f0d02b2f0da3eac41754653c9f715688088291c1342f4fa6d0a3b62 + - initial_input_ast: abd02eda108527425d98a30d5bcdc5cdbdf11a6e0e791442604e9cbb196bb4ab + initial_ast: fa31b24abd921d4af729dc4d00df07a76b4eba1b58c83d68287c1dc4fd3effce + symbol_table: 5801dd7f2f2deb0029f255db69f5b2945c48e6872e55b2cdacf0d0fb115eec22 diff --git a/tests/expectations/compiler/compiler/integers/u64/max.out b/tests/expectations/compiler/compiler/integers/u64/max.out new file mode 100644 index 0000000000..1c238e2dfb --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4be495421ace98fff4d408986b837383a54ca42ce4ac7b0448fc568496e70993 + initial_ast: f45b3492a5520e9bf595c9eb53333ed0537be6edfb1d237f5812981885309628 + symbol_table: e75cd52b66d30ce5e0fe81b53d86b4fb478b34eab8f4e15d6a46aac6dd8ade56 diff --git a/tests/expectations/compiler/compiler/integers/u64/max_fail.out b/tests/expectations/compiler/compiler/integers/u64/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/max_fail.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.out b/tests/expectations/compiler/compiler/integers/u64/min.out new file mode 100644 index 0000000000..edb31692a5 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4d739a3dcbeb1880f45f4fbdf7d12b3949dce64ce617ddaa61c64a674b5aacdf + initial_ast: 309a98f74815d79a03044df5530652286f87ef7529b8d142a0b4dd45b72164cf + symbol_table: bcd92751d52d81b13a02ea9e394bc7f6876911e0cdb45836c418e453bc29158d diff --git a/tests/expectations/compiler/compiler/integers/u64/min_fail.out b/tests/expectations/compiler/compiler/integers/u64/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/min_fail.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.out b/tests/expectations/compiler/compiler/integers/u64/mul.out new file mode 100644 index 0000000000..892860250f --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 77481f608c0bff5f9fed1779e0bb782155cf4001dcfdbecccf6efa21d57044c8 + initial_ast: 7d318ef8d005392a4bc79f3316f5847ead2d452787a5ad0c057b0b48e150baa3 + symbol_table: 4e39bb0ad10823bf2e21b857f2130e706ecc2d75753d968ef9d864f60b0d9ef7 diff --git a/tests/expectations/compiler/compiler/integers/u64/ne.out b/tests/expectations/compiler/compiler/integers/u64/ne.out new file mode 100644 index 0000000000..0e8ef86d5b --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 314acd63c110442cd0ae45414e911762ee002cd3cd712943ee5ba7a545c2895d + - initial_input_ast: 2720aa6be62eeb6b3f7dcf06456c57038cb483504c7c0d24330a0019b35846e8 + initial_ast: 824860fcd0efb5e8f59935166bd2c810068f6bffa23e5e0c02d6d95b6d88ec21 + symbol_table: cdf8b67bc50de4d083d5697da3f6c2dfd8375e4ad94ad722d391bef9a7bfd433 diff --git a/tests/expectations/compiler/compiler/integers/u64/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/u64/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/no_space_between_literal.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/pow.out b/tests/expectations/compiler/compiler/integers/u64/pow.out new file mode 100644 index 0000000000..7f2d42bcda --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/pow.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: Expected one type from `u8,u16,u32,`, but got `u64`\n --> compiler-test:4:17\n |\n 4 | return a ** b == c;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/integers/u64/sub.out b/tests/expectations/compiler/compiler/integers/u64/sub.out new file mode 100644 index 0000000000..e6ad2b0318 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 02c2e867b74dfd2680a64211d30368e9432d10223e7450476a0375f0e443c1fe + initial_ast: d5e74554cc310acf5a55a5d5a1bdd53eb03af925ea01be634ee8afe84639a505 + symbol_table: b45aa8f96336f1482ee8b975da10370d344bbd6a8a3cfcdca782bd2aa01a246e diff --git a/tests/expectations/compiler/compiler/integers/u64/ternary.out b/tests/expectations/compiler/compiler/integers/u64/ternary.out new file mode 100644 index 0000000000..72f660279d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u64/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b7625fbdf4652004132e112b4a0de0d38090f1a1e02788c99e4323e073f04338 + - initial_input_ast: 0c043ec5f860a0696c4fbe6cbf110ddfb2ce7fc6bed62936e65d9ebc60e21da0 + initial_ast: ece173da72d8938a75fc6b467b37c3e2345ebe5fb679292bc256067c06011a34 + symbol_table: b431f276e44e02c8988562746946b084b48669bf5f89de9bd0d080ecdb6fe928 diff --git a/tests/expectations/compiler/compiler/integers/u8/add.out b/tests/expectations/compiler/compiler/integers/u8/add.out new file mode 100644 index 0000000000..9ef6bdeecf --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: abd4649ea1f9d2960c57f7fb8642eb89a379d26391180e415c4bd696fc6f734a + initial_ast: 754c6fc632d72724bb2447829ea6470d444fda41b7f4677635839184bd39e658 + symbol_table: 5cc6f9d20990f754082a936f92fad2de074bb8d758559a91e144f51f213c3ff9 diff --git a/tests/expectations/compiler/compiler/integers/u8/console_assert.out b/tests/expectations/compiler/compiler/integers/u8/console_assert.out new file mode 100644 index 0000000000..b629d2a659 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/console_assert.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 48971cb0014a813c10f25796c99546258f3aa166111c25fb8c8fa1b6c0bf8cf8 + initial_ast: b3a25f9933cbba508f01723126eba657c8317c2bc235d659c30fc9d9ec66f58f + symbol_table: b9d0a3e39dfea06fcbe3f93f08e2e2dfd0e18aeccc310350d49a1d3261877f35 diff --git a/tests/expectations/compiler/compiler/integers/u8/div.out b/tests/expectations/compiler/compiler/integers/u8/div.out new file mode 100644 index 0000000000..3cc5799aa0 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: a008878cd077d67dcec792f1b2a4571ef4f9902912e59a86d2f21be17c608424 + initial_ast: 0d9ff3ac45a9e6fd5e03221953a7e07500f93d3245e90b94145bcf2970e24070 + symbol_table: 7263b3df842331e26fe9930a9cfec02f12e9ed19da976b3e81ef14925c127d27 diff --git a/tests/expectations/compiler/compiler/integers/u8/eq.out b/tests/expectations/compiler/compiler/integers/u8/eq.out new file mode 100644 index 0000000000..6d655b36cd --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e130fcca4de4ddb61b0104caf36c93db6fe67dbacd14f44d09d41379bdbd3ae0 + initial_ast: afcc42569de04d0b1672a244a675e13b9ad998991488da9fa986860fb0468dc1 + symbol_table: ca53a439df806ecf998b2d16e806e6670fcf18351aff0a5e1ff32be76e01de36 diff --git a/tests/expectations/compiler/compiler/integers/u8/ge.out b/tests/expectations/compiler/compiler/integers/u8/ge.out new file mode 100644 index 0000000000..73781666e4 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/ge.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1035b1ea733f44ff0e59a744a6bd19fd24a03c67e2d5ef368cc03a7fab2cfb90 + - initial_input_ast: b1b78c013e815a6b8e9bd79b8d3c75fe79f16fe2e0ff397c858ab7e6e5f6c14f + initial_ast: 1dce9436ff28091bf78e6984378d479865949c81c3e559511a6f888e08a5f520 + symbol_table: 1277f53a628bb90208cf22d6f9a561af8fa89d20b51a88bd972ae083d9518fb0 diff --git a/tests/expectations/compiler/compiler/integers/u8/gt.out b/tests/expectations/compiler/compiler/integers/u8/gt.out new file mode 100644 index 0000000000..9be463e494 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/gt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4c5c8a2a613aeabb07b8c0b69ab85bb30da97f3df68e1771c9ccf83331f3d307 + - initial_input_ast: fc92836efbfa551891818770e342f87e1460e4599c99541cbaedb5fd9221d36e + initial_ast: 246b63815a2edb7ad0e09567170205f09ed8b805924efc8665d427ad575ae1d4 + symbol_table: 9e657fcd4ffde7c7a17e3b45b6f1ae485ad4b0553878a09ae51970d1a3d61de4 diff --git a/tests/expectations/compiler/compiler/integers/u8/le.out b/tests/expectations/compiler/compiler/integers/u8/le.out new file mode 100644 index 0000000000..ab744146d1 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/le.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1035b1ea733f44ff0e59a744a6bd19fd24a03c67e2d5ef368cc03a7fab2cfb90 + - initial_input_ast: 5e49a83e9253b30583c87a9697c013d01f3666daf66ffd6d78514642985a6d2a + initial_ast: b2e95757dc081e398ac37d9051d3199b4a6366ab9839955676d8fda2957e4dae + symbol_table: 0c90c19a0733c03989314a0e57f255f7d51b297ebda2069ce0520e9b41339fa9 diff --git a/tests/expectations/compiler/compiler/integers/u8/lt.out b/tests/expectations/compiler/compiler/integers/u8/lt.out new file mode 100644 index 0000000000..452120444e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/lt.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: e48d68126449f737bc223c61f23c98a38cd8400c99fe72dc069157c7da19f0d9 + - initial_input_ast: 1910f19ef72f38b32305d7f6fdfb60f0915139dafdc59fc9b2db32da7254b9a2 + initial_ast: e80f2965d7b6bc3f51e6115f53f20968b14276fc1920428f458ff998032676bc + symbol_table: 546f00235e023a075ed4b47aeeb5cc922387a04b1195e16e7c4326cdf6e1fbc2 diff --git a/tests/expectations/compiler/compiler/integers/u8/max.out b/tests/expectations/compiler/compiler/integers/u8/max.out new file mode 100644 index 0000000000..969465834e --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/max.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4d739a3dcbeb1880f45f4fbdf7d12b3949dce64ce617ddaa61c64a674b5aacdf + initial_ast: ecc1845a9668ca474abdb77647c004f09467373d9a43014ff78e8f5b837f6b79 + symbol_table: 56bb71ef04cb5892671ab985991a6a11d728a9bc49849b9cf63512fd6edabc49 diff --git a/tests/expectations/compiler/compiler/integers/u8/max_fail.out b/tests/expectations/compiler/compiler/integers/u8/max_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/max_fail.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.out b/tests/expectations/compiler/compiler/integers/u8/min.out new file mode 100644 index 0000000000..27374bfe12 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/min.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 05e7bafca93c93da1462135dbb09318ab46f29cbe9ae88b8a42be6682ad50bb9 + initial_ast: f190baabee2a768f056148a344b023fab532c7c1d118948ba55e854a06198ad8 + symbol_table: a1422b3b2dd889c0b8070197fb3e48e5c9aeea4fdc326702b4678973ca95e354 diff --git a/tests/expectations/compiler/compiler/integers/u8/min_fail.out b/tests/expectations/compiler/compiler/integers/u8/min_fail.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/min_fail.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.out b/tests/expectations/compiler/compiler/integers/u8/mul.out new file mode 100644 index 0000000000..24eb20b968 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4b0efd0da6cb5b74e64c3fca9ca00140fd7e5a8fcf343b7b420313171e28b209 + initial_ast: e70485ca8bf749103e8706c3d5df55005794f1fcb49ccd81487e7f8796c20290 + symbol_table: 34083d440d5992077db30e67f9e10d56276f9c909b149dda355668aea41678ee diff --git a/tests/expectations/compiler/compiler/integers/u8/ne.out b/tests/expectations/compiler/compiler/integers/u8/ne.out new file mode 100644 index 0000000000..2d6ab7a6af --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/ne.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 60cc5bbcb84aa0d7a107a8000ee91a95ecbb07ccf8b61b629e48cac3c935d8f1 + - initial_input_ast: b158beb3f4d8c6292e11cff334590bc37fc632eec336016057b48bd6d9ab0034 + initial_ast: af6fd0946705136e76fff48bc531292c128bf3d6f534b85129da2fceb2f153cc + symbol_table: 843ef901659df8cf7fb4dffb62d3355fc973d8b650198fdd368cf75d75509dd1 diff --git a/tests/expectations/compiler/compiler/integers/u8/no_space_between_literal.out b/tests/expectations/compiler/compiler/integers/u8/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/no_space_between_literal.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.out b/tests/expectations/compiler/compiler/integers/u8/pow.out new file mode 100644 index 0000000000..9ca4a9ac0d --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/pow.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cd3e477685a41ff749bf03ddcd0de7c2ac32a2cf1ce991451e760fc48d0dd7d5 + initial_ast: acb9d3096cc847ed8c6d5a64993f344d7bcc29fab834ae68e11400720c37fd35 + symbol_table: 10d10aa7233b8e9c5438f9cba3ea87f64bfef043e4d4b226d686cf3de204ca28 diff --git a/tests/expectations/compiler/compiler/integers/u8/sub.out b/tests/expectations/compiler/compiler/integers/u8/sub.out new file mode 100644 index 0000000000..95eeb5bf4c --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/sub.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 45bf8029b261e39d3d861e8eb8975e88c0aebb680a7276a6d52ea30089323614 + initial_ast: 9b629c94d7ea45e415591d9dda63fbff07a93ec777b9b99be437ba2aff883bd1 + symbol_table: 01d7107fd6a67975c4952fc58274bf1f55fc8d96d1dfe13a7ff99962944bd997 diff --git a/tests/expectations/compiler/compiler/integers/u8/ternary.out b/tests/expectations/compiler/compiler/integers/u8/ternary.out new file mode 100644 index 0000000000..960b7ca961 --- /dev/null +++ b/tests/expectations/compiler/compiler/integers/u8/ternary.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1b06c222c8e4f2c38a3e066de4028e1b6b101cd531ce30137c78024a7c0e7188 + - initial_input_ast: c228e4c7abd9c5646a6afdb95ac21270838ad19f31c89ca6c98d126db9638832 + initial_ast: 9ed0471710e7c1109adac89e209ea157c5c0cb642661bb24bfd109537159b2e6 + symbol_table: b67bb45269a8520e0eaa95710e418120baea294247708f137a21df4e2be97c55 diff --git a/tests/expectations/compiler/compiler/mutability/cond_mut.out b/tests/expectations/compiler/compiler/mutability/cond_mut.out new file mode 100644 index 0000000000..bceaeea0a2 --- /dev/null +++ b/tests/expectations/compiler/compiler/mutability/cond_mut.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 1a264346d38ad228560df0abaa869c0bf4953b5deda0a93f02bd9697700489e3 + initial_ast: aa34701b541784d2e4905521101336aa870485a4ddaa96d59ff4be89384996f8 + symbol_table: 955902f6a157a4830f6d69bc63ccd54bc6fdc8fee6b4f481926fa4a695688b69 diff --git a/tests/expectations/compiler/compiler/mutability/function_input_mut.out b/tests/expectations/compiler/compiler/mutability/function_input_mut.out new file mode 100644 index 0000000000..0879370ae3 --- /dev/null +++ b/tests/expectations/compiler/compiler/mutability/function_input_mut.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 8b963717b41902e9ddd2d065137feca7555aaaafbd1591905ee890aab534f304 + initial_ast: 3117013a3be40b2cedcade60581b21ec0ebb7e918f0d6dc2cd4607faea8b729c + symbol_table: 03c28801d27a251ba77271104022e75a4d405bd4c96334c37033fdea7b0e8258 diff --git a/tests/expectations/compiler/compiler/mutability/let_mut_nested.out b/tests/expectations/compiler/compiler/mutability/let_mut_nested.out new file mode 100644 index 0000000000..c9b7d2c46f --- /dev/null +++ b/tests/expectations/compiler/compiler/mutability/let_mut_nested.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4b50b065f8b16a41d0a73a2fe91e4f305d541f516afe031b185bffcd51fbc7c3 + initial_ast: 29b46d550f98360e419c00fc707c1595ff009153bae33aa308d7b9a0fcd39272 + symbol_table: 1b47c953d0bbbf8ea32689c606dffbfe56d3b7c43866887680305b8f86070bfb diff --git a/tests/expectations/compiler/compiler/scalar/add.out b/tests/expectations/compiler/compiler/scalar/add.out new file mode 100644 index 0000000000..79b260048b --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/add.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4f141316ffe2f84865d36d0d28d361fdaa90bacf05ff62678d32f901a235ed74 + initial_ast: 5b3ef7dce7c2ffe2777c5b2a9545daead2f38e2b8707477db03e87faec6da7d2 + symbol_table: 1876eba4e5ee94cf8982367a238c5019f0bdc66e334694d26f2932f392025f44 diff --git a/tests/expectations/compiler/compiler/scalar/cmp.out b/tests/expectations/compiler/compiler/scalar/cmp.out new file mode 100644 index 0000000000..36ef7cf5d6 --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/cmp.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 85349bd16d49ff31c5ed3aeacf84ee6278d4d951409f8b055849eb41481e612e + initial_ast: 2d6b4827de2aa8a84efc823c7ae968c42b561482861bb301c8a144000a97bae6 + symbol_table: a645a6438de39bc10272adb672d66de00396c6e36321197bb665e981a13d9825 diff --git a/tests/expectations/compiler/compiler/scalar/div.out b/tests/expectations/compiler/compiler/scalar/div.out new file mode 100644 index 0000000000..1c3cdcc35c --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/div.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2fdded6208cca2d992178f1ebce1ad848f09f0e7bc5b5a01ee767fafd992737f + initial_ast: 8cc7803f72770ff9c129a32350e365aa18958bf0ef991cb2a7793075b90da062 + symbol_table: 7834fa96812db8e93f4a3bd59164bc7733d0a69926cf52d5948e05bdce3455d0 diff --git a/tests/expectations/compiler/compiler/scalar/eq.out b/tests/expectations/compiler/compiler/scalar/eq.out new file mode 100644 index 0000000000..1e294a1980 --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/eq.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 33bfdc8b1c15b79c4df536c93be684108ac3f031e23b2a4359f5cdc780ebe6e9 + initial_ast: 110f00451cdf3af4c1befda6c1a97f4b09fa1d1656ac037f225249e3a3e6000e + symbol_table: 8ae4e9f2d81c8c887808b3a71b3e28c70e8844676c3ee600ff265415d1a8dbfd diff --git a/tests/expectations/compiler/compiler/scalar/group_mul.out b/tests/expectations/compiler/compiler/scalar/group_mul.out new file mode 100644 index 0000000000..cc2ea48e8f --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/group_mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: cf06fc39ca04a486855a4df808362d7a950ecd6fee1bde05bc28011c33404726 + initial_ast: 32186824ea5992650097484a6b67e3b5f2c7af93bf03ef590b3ca1db50ef91a7 + symbol_table: 1a72d572ccecc576314191109763bf06c105e97c32c0c3457d9a5350b89423bb diff --git a/tests/expectations/compiler/compiler/scalar/mul.out b/tests/expectations/compiler/compiler/scalar/mul.out new file mode 100644 index 0000000000..b3ce92c84f --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/mul.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 4f141316ffe2f84865d36d0d28d361fdaa90bacf05ff62678d32f901a235ed74 + initial_ast: 9ebc007363e99914d5b5ab3519ee40d49fabb61db7ae8a68395a5ff25afc3a1a + symbol_table: 3739f707bdec6d0f3c75770646d9fc801a437e96ea8f5b1020abfc44ef475333 diff --git a/tests/expectations/compiler/compiler/scalar/no_space_between_literal.out b/tests/expectations/compiler/compiler/scalar/no_space_between_literal.out new file mode 100644 index 0000000000..6072996488 --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/no_space_between_literal.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/scalar/scalar.out b/tests/expectations/compiler/compiler/scalar/scalar.out new file mode 100644 index 0000000000..772c60176d --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/scalar.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: f074f67a7d4028112cee3c14d6fa831ac71e0776db4f4f793df9dbfc6bd921c3 + initial_ast: b084ac7b6d9b21eadfef36b11f0c3dfa2b907ad4b93a4c26da8af784d8ac5cb6 + symbol_table: d28e37161537c8e13b9c0fdce8d3663f3e4d8e3bae9fc5cf53732131dca4510b diff --git a/tests/expectations/compiler/compiler/scalar/ternary.out b/tests/expectations/compiler/compiler/scalar/ternary.out new file mode 100644 index 0000000000..af9a84cf87 --- /dev/null +++ b/tests/expectations/compiler/compiler/scalar/ternary.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 33bfdc8b1c15b79c4df536c93be684108ac3f031e23b2a4359f5cdc780ebe6e9 + initial_ast: 3df1834af362874ebe176df24fea3f4062d042e2cbca1ed59f45f13461cd92e8 + symbol_table: 6f4fe29a04532a1b259ea75706d26a7836034bd531f558425fa3baa193fe3915 diff --git a/tests/expectations/compiler/compiler/statements/all_loops.out b/tests/expectations/compiler/compiler/statements/all_loops.out new file mode 100644 index 0000000000..d84cae568d --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/all_loops.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 7f054d619f362422dce83ca5563d462fe3206845a29de38bb3721f3cd2c69c11 + initial_ast: bf16f962535479c3c4aaac8018f63ff4889bbf4ce668079d9a3b42f19b892a97 + symbol_table: 17062ffd3a4c9628e2c6cd3af6c60b8d8117186a3f34be948bfe951ee96d702d diff --git a/tests/expectations/compiler/compiler/statements/all_loops_fail.out b/tests/expectations/compiler/compiler/statements/all_loops_fail.out new file mode 100644 index 0000000000..4c3e127148 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/all_loops_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '='\n --> compiler-test:15:26\n |\n 15 | for a: u32 in 10u32..=0u32 {\n | ^" diff --git a/tests/expectations/compiler/compiler/statements/assign_ternary.out b/tests/expectations/compiler/compiler/statements/assign_ternary.out new file mode 100644 index 0000000000..bc2fcb5fec --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/assign_ternary.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.out b/tests/expectations/compiler/compiler/statements/block.out new file mode 100644 index 0000000000..77a04d6d92 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/block.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 555a602a6e176c37483e18f7fcc4abf1103c14642114729913b7c8433c76a667 + initial_ast: 06faf01731c5780a7eecf32ee2cdbfbdc162e56ef4ea982e963665ad7dd6c359 + symbol_table: 58ff7182ef3f54b16388adf1a5ed1048ea66b9f44e1bdc8dddec83333fe9c14d diff --git a/tests/expectations/compiler/compiler/statements/chain.out b/tests/expectations/compiler/compiler/statements/chain.out new file mode 100644 index 0000000000..855298b66b --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/chain.out @@ -0,0 +1,10 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 45904271733998b2b56d16f1fd4b035cd13f072ff6972108d90bd92d16e9266c + - initial_input_ast: 0d9c06667774ccec1cab8dca077b5021ff514b5384b72263f730a0a1bfd6469f + - initial_input_ast: a2d7fe3407284c9e88d8dd2e35a8d69f6ff51b1b25a8dfa53f0926416e1bfd3f + initial_ast: a24b7adcb2dcedb46bf661fc7655ad99b5010a877d34a179424a51db99476c26 + symbol_table: 057339b96e949644b9100ca88f160f6322d3d20f49b29c64e346f932c126bf74 diff --git a/tests/expectations/compiler/compiler/statements/compare_diff_types_fail.out b/tests/expectations/compiler/compiler/statements/compare_diff_types_fail.out new file mode 100644 index 0000000000..0d01b0f043 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/compare_diff_types_fail.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 5cb1b91c4f8c090d64447985721a40253e3fcbc7c97eb3e722ca9e250d53c4ee + initial_ast: bbc1f42ff5ea78f572a271af28f93f1070ba557425663deb32f26b4a844eaa3c + symbol_table: 868348e626fa71bf4009ccc50581c3edfc6d3117668b5d87b957ede6007663b8 diff --git a/tests/expectations/compiler/compiler/statements/compare_invalid_negates_fail.out b/tests/expectations/compiler/compiler/statements/compare_invalid_negates_fail.out new file mode 100644 index 0000000000..6d27d6442a --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/compare_invalid_negates_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:4:20\n |\n 4 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:4:26\n |\n 4 | let b: bool = -a == -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:5:20\n |\n 5 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:5:25\n |\n 5 | let c: bool = -a > -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:6:20\n |\n 6 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:6:25\n |\n 6 | let d: bool = -a < -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:7:20\n |\n 7 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:7:26\n |\n 7 | let e: bool = -a >= -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:8:20\n |\n 8 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:8:26\n |\n 8 | let f: bool = -a <= -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:9:18\n |\n 9 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:9:23\n |\n 9 | let g: u8 = -a * -1u8;\n | ^^^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:10:18\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372006]: The type `u8` is not negatable\n --> compiler-test:10:24\n |\n 10 | let h: u8 = -a ** -1u8;\n | ^^^\n" diff --git a/tests/expectations/compiler/compiler/statements/duplicate_variable.out b/tests/expectations/compiler/compiler/statements/duplicate_variable.out new file mode 100644 index 0000000000..b804c241a8 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/duplicate_variable.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372015]: variable `x` shadowed by\n --> compiler-test:5:4\n |\n 5 | \tlet x: bool = true;\n | ^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/compiler/statements/for_loop.out b/tests/expectations/compiler/compiler/statements/for_loop.out new file mode 100644 index 0000000000..a3a076d639 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/for_loop.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 0a10c88a8cdd61a9e3572466c6b5ea5536c6cfdcf79c52cfa9fb9b925ef356b5 + initial_ast: 820dbd2eba178649a9ccd4d21d388d8a119b8369fb8a27e7cc33889292581ae4 + symbol_table: e4bca60f5387ea06162a5ccd040b49966cbf2c5b52ed35a48d71b08e14e0fee1 diff --git a/tests/expectations/compiler/compiler/statements/iteration_basic.out b/tests/expectations/compiler/compiler/statements/iteration_basic.out new file mode 100644 index 0000000000..46383b6b71 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/iteration_basic.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 2b08bca229cdf35a458353644c99931c266045ecfa23da55518e7542c6de4f55 + initial_ast: 1a36306a37a40c1867d0fc05878434a1e8f0c3e7cb7972fc69dd750cfcf2bc7a + symbol_table: 43e0cef3208b26d9005ce71e3b20057f7fab524b6969cd7323f9a7a7eaa29ae9 diff --git a/tests/expectations/compiler/compiler/statements/iteration_variable.out b/tests/expectations/compiler/compiler/statements/iteration_variable.out new file mode 100644 index 0000000000..a4ad5297b3 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/iteration_variable.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 54d447941be9647956ebb571b94203d24e695cc95b97a8e2405d4515f8f394ff + initial_ast: 353dde59255897365bdd14107828907cf83b7dd0c2b76840209c9a970e15cb80 + symbol_table: 013ec5f72040ecfe9f45884659a7b674f37c5a2a98906c2f42ec7e07f727f0df diff --git a/tests/expectations/compiler/compiler/statements/multiple_returns.out b/tests/expectations/compiler/compiler/statements/multiple_returns.out new file mode 100644 index 0000000000..d52ca90c29 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/multiple_returns.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 555a602a6e176c37483e18f7fcc4abf1103c14642114729913b7c8433c76a667 + - initial_input_ast: 66064ed6d78bcadc1f415a472484e279a04411febdb78c7a99d8aa57fea41c09 + initial_ast: 512eeadfe2d9d9fef603a00c1dfdb816f9f3effb3e20bf72d424a3efdb8be6b9 + symbol_table: 91af5c376605301bd7c934ad6ad829de5c8b92f7cfe45aff8543e1a77b24d8ac diff --git a/tests/expectations/compiler/compiler/statements/mutate.out b/tests/expectations/compiler/compiler/statements/mutate.out new file mode 100644 index 0000000000..fcc7ca34d7 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/mutate.out @@ -0,0 +1,9 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: 30e94504f0b96c93e8bc80d3a3fcdc1f01515be7f2c1d925a76429050c5cfcb5 + - initial_input_ast: 926d9b29f33bf919b80281c18201806e190051d5a3dcef78d7be2cf634128099 + initial_ast: ea58b756fc80241bc2768005f59220bcbfe4617d1320453c41cb653f34f1c308 + symbol_table: 92816f4a99866162f44d9eaa22bea95c002ef73e9ba5e1ed74f2de1e4d8fa1d3 diff --git a/tests/expectations/compiler/compiler/statements/non_existant_var_exp_fail.out b/tests/expectations/compiler/compiler/statements/non_existant_var_exp_fail.out new file mode 100644 index 0000000000..f8b6964af3 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/non_existant_var_exp_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372004]: Unknown variable `z`\n --> compiler-test:4:19\n |\n 4 | \tlet b: u8 = 1u8**z;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/statements/non_existant_vars_mul_fail.out b/tests/expectations/compiler/compiler/statements/non_existant_vars_mul_fail.out new file mode 100644 index 0000000000..eaec866219 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/non_existant_vars_mul_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372004]: Unknown variable `x`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372004]: Unknown variable `z`\n --> compiler-test:4:16\n |\n 4 | \tlet b: u8 = x*z;\n | ^\n" diff --git a/tests/expectations/compiler/compiler/statements/ternary_explicit_and_implicit.out b/tests/expectations/compiler/compiler/statements/ternary_explicit_and_implicit.out new file mode 100644 index 0000000000..1732896424 --- /dev/null +++ b/tests/expectations/compiler/compiler/statements/ternary_explicit_and_implicit.out @@ -0,0 +1,8 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - output: + - initial_input_ast: b69ef69db5b876c322baae6ca63d825f9702a7cbb25ae5598f206301825cead1 + initial_ast: 376a5f02c289ddb111be98f7b0f3c9fe47aa684dcaf68ebe5fb3dd88588fcaaa + symbol_table: ea61603fdb0d2d3f9ed43f0b8fd044438c4f662ae0cfb97e95505b741a82ce0b diff --git a/tests/expectations/parser/parser/expression/access/call.out b/tests/expectations/parser/parser/expression/access/call.out new file mode 100644 index 0000000000..b01f617737 --- /dev/null +++ b/tests/expectations/parser/parser/expression/access/call.out @@ -0,0 +1,45 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: [] + span: + lo: 0 + hi: 3 + - Call: + function: + Identifier: "{\"name\":\"X\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: [] + span: + lo: 0 + hi: 3 + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + span: + lo: 0 + hi: 4 + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 7 + - Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + arguments: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + - Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + span: + lo: 0 + hi: 10 diff --git a/tests/expectations/parser/parser/expression/array_init_fail.out b/tests/expectations/parser/parser/expression/array_init_fail.out new file mode 100644 index 0000000000..80ea97fbc2 --- /dev/null +++ b/tests/expectations/parser/parser/expression/array_init_fail.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.out b/tests/expectations/parser/parser/expression/array_inline_fail.out new file mode 100644 index 0000000000..ddff3711a8 --- /dev/null +++ b/tests/expectations/parser/parser/expression/array_inline_fail.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.out b/tests/expectations/parser/parser/expression/binary/add.out new file mode 100644 index 0000000000..71ab19c8db --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/add.out @@ -0,0 +1,242 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 4 + hi: 7 + op: Add + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + op: Add + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 18 + hi: 21 + op: Mul + span: + lo: 12 + hi: 21 + op: Add + span: + lo: 0 + hi: 21 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + op: Sub + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 18 + hi: 21 + op: Mul + span: + lo: 12 + hi: 21 + op: Add + span: + lo: 0 + hi: 21 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + lo: 24 + hi: 27 + right: + Value: + Integer: + - U8 + - "6" + - span: + lo: 30 + hi: 33 + op: Mul + span: + lo: 24 + hi: 33 + op: Sub + span: + lo: 0 + hi: 33 diff --git a/tests/expectations/parser/parser/expression/binary/and.out b/tests/expectations/parser/parser/expression/binary/and.out new file mode 100644 index 0000000000..89a8d1500e --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/and.out @@ -0,0 +1,74 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Boolean: + - "true" + - span: + lo: 0 + hi: 4 + right: + Value: + Boolean: + - "false" + - span: + lo: 8 + hi: 13 + op: And + span: + lo: 0 + hi: 13 + - Binary: + left: + Value: + Boolean: + - "false" + - span: + lo: 0 + hi: 5 + right: + Value: + Boolean: + - "true" + - span: + lo: 7 + hi: 11 + op: And + span: + lo: 0 + hi: 11 + - Binary: + left: + Binary: + left: + Value: + Boolean: + - "true" + - span: + lo: 0 + hi: 4 + right: + Value: + Boolean: + - "false" + - span: + lo: 6 + hi: 11 + op: And + span: + lo: 0 + hi: 11 + right: + Value: + Boolean: + - "true" + - span: + lo: 13 + hi: 17 + op: And + span: + lo: 0 + hi: 17 diff --git a/tests/expectations/parser/parser/expression/binary/div.out b/tests/expectations/parser/parser/expression/binary/div.out new file mode 100644 index 0000000000..4b5f6a19dd --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/div.out @@ -0,0 +1,130 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 6 + hi: 9 + op: Div + span: + lo: 0 + hi: 9 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 4 + hi: 7 + op: Div + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Div + span: + lo: 0 + hi: 9 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + op: Div + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 7 + hi: 10 + op: Pow + span: + lo: 0 + hi: 10 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 20 + hi: 23 + op: Pow + span: + lo: 13 + hi: 23 + op: Div + span: + lo: 0 + hi: 23 diff --git a/tests/expectations/parser/parser/expression/binary/eq.out b/tests/expectations/parser/parser/expression/binary/eq.out new file mode 100644 index 0000000000..408c1c0541 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/eq.out @@ -0,0 +1,200 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 7 + hi: 10 + op: Eq + span: + lo: 0 + hi: 10 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 5 + hi: 8 + op: Eq + span: + lo: 0 + hi: 8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 19 + hi: 22 + op: Lt + span: + lo: 13 + hi: 22 + op: Eq + span: + lo: 0 + hi: 22 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 19 + hi: 22 + op: Lt + span: + lo: 13 + hi: 22 + op: Eq + span: + lo: 0 + hi: 22 + right: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 26 + hi: 29 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 32 + hi: 35 + op: Lt + span: + lo: 26 + hi: 35 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + lo: 39 + hi: 42 + right: + Value: + Integer: + - U8 + - "6" + - span: + lo: 45 + hi: 48 + op: Lt + span: + lo: 39 + hi: 48 + op: Eq + span: + lo: 26 + hi: 48 + op: And + span: + lo: 0 + hi: 48 diff --git a/tests/expectations/parser/parser/expression/binary/eq_fail.out b/tests/expectations/parser/parser/expression/binary/eq_fail.out new file mode 100644 index 0000000000..6396942528 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/eq_fail.out @@ -0,0 +1,5 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370028]: 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.out b/tests/expectations/parser/parser/expression/binary/exp.out new file mode 100644 index 0000000000..b6204be6a4 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/exp.out @@ -0,0 +1,81 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 7 + hi: 10 + op: Pow + span: + lo: 0 + hi: 10 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 5 + hi: 8 + op: Pow + span: + lo: 0 + hi: 8 + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 7 + hi: 10 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 14 + hi: 17 + op: Pow + span: + lo: 7 + hi: 17 + op: Pow + span: + lo: 0 + hi: 17 diff --git a/tests/expectations/parser/parser/expression/binary/gt.out b/tests/expectations/parser/parser/expression/binary/gt.out new file mode 100644 index 0000000000..75751a693e --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/gt.out @@ -0,0 +1,95 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 6 + hi: 9 + op: Gt + span: + lo: 0 + hi: 9 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 4 + hi: 7 + op: Gt + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 18 + hi: 21 + op: Add + span: + lo: 12 + hi: 21 + op: Gt + span: + lo: 0 + hi: 21 diff --git a/tests/expectations/parser/parser/expression/binary/gt_fail.out b/tests/expectations/parser/parser/expression/binary/gt_fail.out new file mode 100644 index 0000000000..87fca2dd48 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/gt_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '>' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" + - "did not consume all input: '>' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" + - "did not consume all input: '>' @ 1:23-24\n'5' @ 1:25-26\n'u8' @ 1:26-28\n'+' @ 1:29-30\n'6' @ 1:31-32\n'u8' @ 1:32-34\n" diff --git a/tests/expectations/parser/parser/expression/binary/gte.out b/tests/expectations/parser/parser/expression/binary/gte.out new file mode 100644 index 0000000000..9d5605c449 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/gte.out @@ -0,0 +1,95 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 7 + hi: 10 + op: Ge + span: + lo: 0 + hi: 10 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 7 + hi: 10 + op: Ge + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 19 + hi: 22 + op: Add + span: + lo: 13 + hi: 22 + op: Ge + span: + lo: 0 + hi: 22 diff --git a/tests/expectations/parser/parser/expression/binary/gte_fail.out b/tests/expectations/parser/parser/expression/binary/gte_fail.out new file mode 100644 index 0000000000..cb0658f61b --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/gte_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '>=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" + - "did not consume all input: '>=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" + - "did not consume all input: '>=' @ 1:24-26\n'5' @ 1:27-28\n'u8' @ 1:28-30\n'+' @ 1:31-32\n'6' @ 1:33-34\n'u8' @ 1:34-36\n" diff --git a/tests/expectations/parser/parser/expression/binary/lt.out b/tests/expectations/parser/parser/expression/binary/lt.out new file mode 100644 index 0000000000..1bca128da0 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/lt.out @@ -0,0 +1,95 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 4 + hi: 7 + op: Lt + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 18 + hi: 21 + op: Add + span: + lo: 12 + hi: 21 + op: Lt + span: + lo: 0 + hi: 21 diff --git a/tests/expectations/parser/parser/expression/binary/lt_fail.out b/tests/expectations/parser/parser/expression/binary/lt_fail.out new file mode 100644 index 0000000000..76f35f9d39 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/lt_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '<' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" + - "did not consume all input: '<' @ 1:11-12\n'3' @ 1:13-14\n'u8' @ 1:14-16\n" + - "did not consume all input: '<' @ 1:23-24\n'5' @ 1:25-26\n'u8' @ 1:26-28\n'+' @ 1:29-30\n'6' @ 1:31-32\n'u8' @ 1:32-34\n" diff --git a/tests/expectations/parser/parser/expression/binary/lte.out b/tests/expectations/parser/parser/expression/binary/lte.out new file mode 100644 index 0000000000..def6beb966 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/lte.out @@ -0,0 +1,95 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 7 + hi: 10 + op: Le + span: + lo: 0 + hi: 10 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 7 + hi: 10 + op: Le + span: + lo: 0 + hi: 10 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 19 + hi: 22 + op: Add + span: + lo: 13 + hi: 22 + op: Le + span: + lo: 0 + hi: 22 diff --git a/tests/expectations/parser/parser/expression/binary/lte_fail.out b/tests/expectations/parser/parser/expression/binary/lte_fail.out new file mode 100644 index 0000000000..2f754fbf41 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/lte_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "did not consume all input: '<=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" + - "did not consume all input: '<=' @ 1:12-14\n'3' @ 1:15-16\n'u8' @ 1:16-18\n" + - "did not consume all input: '<=' @ 1:24-26\n'5' @ 1:27-28\n'u8' @ 1:28-30\n'+' @ 1:31-32\n'6' @ 1:33-34\n'u8' @ 1:34-36\n" diff --git a/tests/expectations/parser/parser/expression/binary/mul.out b/tests/expectations/parser/parser/expression/binary/mul.out new file mode 100644 index 0000000000..96fdc78684 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/mul.out @@ -0,0 +1,207 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 4 + hi: 7 + op: Mul + span: + lo: 0 + hi: 7 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + op: Mul + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 7 + hi: 10 + op: Pow + span: + lo: 0 + hi: 10 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 20 + hi: 23 + op: Pow + span: + lo: 13 + hi: 23 + op: Mul + span: + lo: 0 + hi: 23 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 7 + hi: 10 + op: Pow + span: + lo: 0 + hi: 10 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 20 + hi: 23 + op: Pow + span: + lo: 13 + hi: 23 + op: Mul + span: + lo: 0 + hi: 23 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + lo: 26 + hi: 29 + right: + Value: + Integer: + - U8 + - "6" + - span: + lo: 33 + hi: 36 + op: Pow + span: + lo: 26 + hi: 36 + op: Div + span: + lo: 0 + hi: 36 diff --git a/tests/expectations/parser/parser/expression/binary/ne.out b/tests/expectations/parser/parser/expression/binary/ne.out new file mode 100644 index 0000000000..bef6f5fe14 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/ne.out @@ -0,0 +1,200 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 7 + hi: 10 + op: Neq + span: + lo: 0 + hi: 10 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 5 + hi: 8 + op: Neq + span: + lo: 0 + hi: 8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 19 + hi: 22 + op: Lt + span: + lo: 13 + hi: 22 + op: Neq + span: + lo: 0 + hi: 22 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Lt + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 13 + hi: 16 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 19 + hi: 22 + op: Lt + span: + lo: 13 + hi: 22 + op: Neq + span: + lo: 0 + hi: 22 + right: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 26 + hi: 29 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 32 + hi: 35 + op: Lt + span: + lo: 26 + hi: 35 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + lo: 39 + hi: 42 + right: + Value: + Integer: + - U8 + - "6" + - span: + lo: 45 + hi: 48 + op: Lt + span: + lo: 39 + hi: 48 + op: Neq + span: + lo: 26 + hi: 48 + op: Or + span: + lo: 0 + hi: 48 diff --git a/tests/expectations/parser/parser/expression/binary/ne_fail.out b/tests/expectations/parser/parser/expression/binary/ne_fail.out new file mode 100644 index 0000000000..e5dce53468 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/ne_fail.out @@ -0,0 +1,5 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370028]: 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.out b/tests/expectations/parser/parser/expression/binary/or.out new file mode 100644 index 0000000000..8c9e33ae3e --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/or.out @@ -0,0 +1,242 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + - Binary: + left: + Value: + Integer: + - U8 + - "2" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U16 + - "3" + - span: + lo: 4 + hi: 8 + op: Add + span: + lo: 0 + hi: 8 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + op: Add + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 18 + hi: 21 + op: Mul + span: + lo: 12 + hi: 21 + op: Add + span: + lo: 0 + hi: 21 + - Binary: + left: + Binary: + left: + Value: + Integer: + - I8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - I8 + - "2" + - span: + lo: 6 + hi: 9 + op: Add + span: + lo: 0 + hi: 9 + right: + Value: + Integer: + - I8 + - "3" + - span: + lo: 12 + hi: 15 + op: Sub + span: + lo: 0 + hi: 15 + - Binary: + left: + Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "2" + - span: + lo: 6 + hi: 9 + op: Mul + span: + lo: 0 + hi: 9 + right: + Binary: + left: + Value: + Integer: + - U8 + - "3" + - span: + lo: 12 + hi: 15 + right: + Value: + Integer: + - U8 + - "4" + - span: + lo: 18 + hi: 21 + op: Mul + span: + lo: 12 + hi: 21 + op: Add + span: + lo: 0 + hi: 21 + right: + Binary: + left: + Value: + Integer: + - U8 + - "5" + - span: + lo: 24 + hi: 27 + right: + Value: + Integer: + - U8 + - "6" + - span: + lo: 30 + hi: 33 + op: Mul + span: + lo: 24 + hi: 33 + op: Sub + span: + lo: 0 + hi: 33 diff --git a/tests/expectations/parser/parser/expression/binary/sub.out b/tests/expectations/parser/parser/expression/binary/sub.out new file mode 100644 index 0000000000..66ece742d6 --- /dev/null +++ b/tests/expectations/parser/parser/expression/binary/sub.out @@ -0,0 +1,130 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U8 + - "1" + - span: + lo: 6 + hi: 9 + op: Sub + span: + lo: 0 + hi: 9 + - Binary: + left: + Value: + Integer: + - U16 + - "2" + - span: + lo: 0 + hi: 4 + right: + Value: + Integer: + - U64 + - "3" + - span: + lo: 5 + hi: 9 + op: Sub + span: + lo: 0 + hi: 9 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U32 + - "1" + - span: + lo: 0 + hi: 4 + right: + Value: + Integer: + - U32 + - "2" + - span: + lo: 7 + hi: 11 + op: Sub + span: + lo: 0 + hi: 11 + right: + Value: + Integer: + - U32 + - "3" + - span: + lo: 14 + hi: 18 + op: Sub + span: + lo: 0 + hi: 18 + - Binary: + left: + Binary: + left: + Value: + Integer: + - U8 + - "1" + - span: + lo: 0 + hi: 3 + right: + Value: + Integer: + - U16 + - "2" + - span: + lo: 6 + hi: 10 + op: Mul + span: + lo: 0 + hi: 10 + right: + Binary: + left: + Value: + Integer: + - U32 + - "3" + - span: + lo: 13 + hi: 17 + right: + Value: + Integer: + - I64 + - "4" + - span: + lo: 20 + hi: 24 + op: Mul + span: + lo: 13 + hi: 24 + op: Sub + span: + lo: 0 + hi: 24 diff --git a/tests/expectations/parser/parser/expression/circuit_init_fail.out b/tests/expectations/parser/parser/expression/circuit_init_fail.out new file mode 100644 index 0000000000..06b5f3baa6 --- /dev/null +++ b/tests/expectations/parser/parser/expression/circuit_init_fail.out @@ -0,0 +1,16 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected { -- got ''\n --> test:1:3\n |\n 1 | x {\n | ^" + - "did not consume all input: '}' @ 1:3-4\n" + - "Error [EPAR0370005]: expected { -- got ','\n --> test:1:4\n |\n 1 | x {,}\n | ^" + - "Error [EPAR0370005]: expected { -- got ','\n --> test:1:5\n |\n 1 | x { , }\n | ^" + - "Error [EPAR0370005]: expected { -- got ','\n --> test:1:4\n |\n 1 | x {,,,}\n | ^" + - "Error [EPAR0370005]: expected { -- got 'x'\n --> test:1:4\n |\n 1 | x {x,,}\n | ^" + - "Error [EPAR0370005]: expected { -- got ','\n --> test:1:4\n |\n 1 | x {,,x}\n | ^" + - "Error [EPAR0370005]: expected { -- got ','\n --> test:1:4\n |\n 1 | x {,x}\n | ^" + - "Error [EPAR0370005]: expected { -- got 'x'\n --> test:1:4\n |\n 1 | x {x:y,,}\n | ^" + - "Error [EPAR0370005]: expected { -- got ','\n --> test:1:4\n |\n 1 | x {,,x:y}\n | ^" + - "Error [EPAR0370005]: expected { -- got ','\n --> test:1:4\n |\n 1 | x {,x:y}\n | ^" + - "Error [EPAR0370005]: expected { -- got 'x'\n --> test:1:4\n |\n 1 | x {x:}\n | ^" diff --git a/tests/expectations/parser/parser/expression/ident.out b/tests/expectations/parser/parser/expression/ident.out new file mode 100644 index 0000000000..17dcc95565 --- /dev/null +++ b/tests/expectations/parser/parser/expression/ident.out @@ -0,0 +1,23 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + - Identifier: "{\"name\":\"X\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + - Identifier: "{\"name\":\"xxx\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + - Identifier: "{\"name\":\"XXX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + - Identifier: "{\"name\":\"x1\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" + - Identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"testx\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"truex\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"TRUE\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"testX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"letX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"constX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" + - Identifier: "{\"name\":\"test_test\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":9}\"}" + - Identifier: "{\"name\":\"self\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + - Identifier: "{\"name\":\"input\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"selfX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"SelfX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + - Identifier: "{\"name\":\"inputX\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" diff --git a/tests/expectations/parser/parser/expression/literal/address.out b/tests/expectations/parser/parser/expression/literal/address.out new file mode 100644 index 0000000000..b0e997ef27 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/address.out @@ -0,0 +1,10 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9' @ 1:1-64" + - "'ALEO1' @ 1:1-6" + - "'Aleo1' @ 1:1-6" + - "'aleO1' @ 1:1-6" + - "'aleo2qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d9' @ 1:1-64" + - "'bleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57d9' @ 1:1-64" diff --git a/tests/expectations/parser/parser/expression/literal/address_fail.out b/tests/expectations/parser/parser/expression/literal/address_fail.out new file mode 100644 index 0000000000..5c02de28cd --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/address_fail.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.out b/tests/expectations/parser/parser/expression/literal/address_parse.out new file mode 100644 index 0000000000..8d9918b1ee --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/address_parse.out @@ -0,0 +1,10 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9 + - span: + lo: 0 + hi: 63 diff --git a/tests/expectations/parser/parser/expression/literal/bool.out b/tests/expectations/parser/parser/expression/literal/bool.out new file mode 100644 index 0000000000..9222f3dd49 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/bool.out @@ -0,0 +1,12 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'true' @ 1:1-5" + - "'True' @ 1:1-5" + - "'TRUE' @ 1:1-5" + - "'truE' @ 1:1-5" + - "'false' @ 1:1-6" + - "'False' @ 1:1-6" + - "'FALSE' @ 1:1-6" + - "'falsE' @ 1:1-6" diff --git a/tests/expectations/parser/parser/expression/literal/bool_parse.out b/tests/expectations/parser/parser/expression/literal/bool_parse.out new file mode 100644 index 0000000000..77536cac20 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/bool_parse.out @@ -0,0 +1,16 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Boolean: + - "true" + - span: + lo: 0 + hi: 4 + - Value: + Boolean: + - "false" + - span: + lo: 0 + hi: 5 diff --git a/tests/expectations/parser/parser/expression/literal/char.out b/tests/expectations/parser/parser/expression/literal/char.out new file mode 100644 index 0000000000..43754ac96b --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/char.out @@ -0,0 +1,57 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'Z'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\\"'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\''`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\t'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\r'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\0'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{F}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{E5}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'å'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{4e0}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'Ӡ'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{d800}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'❤'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{1F622}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'😭'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{10001F}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x2A'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x7f'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x00'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x01'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x02'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x03'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x04'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x05'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x06'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x07'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x10'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x11'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x12'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x13'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x14'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x15'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x16'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x17'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x20'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x21'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x22'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x23'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x24'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x25'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x26'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x27'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x30'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x31'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x32'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x33'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x34'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x35'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x36'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x37'`.\n" diff --git a/tests/expectations/parser/parser/expression/literal/char_fail.out b/tests/expectations/parser/parser/expression/literal/char_fail.out new file mode 100644 index 0000000000..373ebad809 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/char_fail.out @@ -0,0 +1,51 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `'\\'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `\\`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `\\n`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'a`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x7'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\xz'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x9A'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x7g'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x80'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\xc1'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\xc2'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\xDF'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\xC0'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\xe0'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x9f'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'abcdefg'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\a'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\z'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\A'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\Z'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\1'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\9'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\*'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\t\\t'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\uz'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u1'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u}`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'🦀\\n'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u123'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'🦀1🦀'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u6🦀}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{af🦀'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764z'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{276g}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u9999999'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u00000000'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u01000000'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{110000}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{1234567890}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{bbbbb}\\u{aaaa}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'😭😂😘'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'⁩'`.\n" diff --git a/tests/expectations/parser/parser/expression/literal/char_parse.out b/tests/expectations/parser/parser/expression/literal/char_parse.out new file mode 100644 index 0000000000..40154ce886 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/char_parse.out @@ -0,0 +1,55 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `'a'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'Z'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\\"'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\t'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\r'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\0'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{F}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `''`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{E5}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'å'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{4e0}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'Ӡ'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{2764}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'❤'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{1F622}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'😭'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\u{10001F}'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x2A'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x7f'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x00'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x01'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x02'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x03'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x04'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x05'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x06'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x07'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x10'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x11'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x12'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x13'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x14'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x15'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x16'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x17'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x20'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x21'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x22'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x23'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x24'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x25'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x26'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x27'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x30'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x31'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x32'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x33'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x34'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x35'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x36'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'\\x37'`.\n" diff --git a/tests/expectations/parser/parser/expression/literal/comment.out b/tests/expectations/parser/parser/expression/literal/comment.out new file mode 100644 index 0000000000..21d676cd77 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/comment.out @@ -0,0 +1,8 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: {} + circuits: {} diff --git a/tests/expectations/parser/parser/expression/literal/comment_fail.out b/tests/expectations/parser/parser/expression/literal/comment_fail.out new file mode 100644 index 0000000000..33fe0aca05 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/comment_fail.out @@ -0,0 +1,15 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370024]: Empty block comment." + - "Error [EPAR0370025]: Block comment does not close with content: `/* test`." + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '/'\n --> test:1:1\n |\n 1 | / /\n | ^" + - "Error [EPAR0370025]: Block comment does not close with content: `/*/`." + - "Error [EPAR0370009]: unexpected string: expected 'expression', got '*'\n --> test:1:1\n |\n 1 | */\n | ^" + - "Error [EPAR0370026]: Could not lex the following content: `🦀**/`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `🦀*/`.\n" + - "Error [EPAR0370025]: Block comment does not close with content: `/*🦀/`." + - "Error [EPAR0370025]: Block comment does not close with content: `/**🦀`." + - "Error [EPAR0370025]: Block comment does not close with content: `/*🦀`." + - "Error [EPAR0370025]: Block comment does not close with content: `/*/*`." diff --git a/tests/expectations/parser/parser/expression/literal/formatted_string.out b/tests/expectations/parser/parser/expression/literal/formatted_string.out new file mode 100644 index 0000000000..47fddf9292 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/formatted_string.out @@ -0,0 +1,24 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'\"{}\"' @ 1:1-5" + - "'\" {} \"' @ 1:1-7" + - "'\"{}d\"' @ 1:1-6" + - "'\"{}D\"' @ 1:1-6" + - "'\"d{}\"' @ 1:1-6" + - "'\"D{}\"' @ 1:1-6" + - "'\"D{}D\"' @ 1:1-7" + - "'\"{}{}\"' @ 1:1-7" + - "'\"D{}{}D\"' @ 1:1-9" + - "'\"D{}{}\"' @ 1:1-8" + - "'\"{}{}D\"' @ 1:1-8" + - "'\"D{}D{}D\"' @ 1:1-10" + - "'\"{{}}\"' @ 1:1-7" + - "'\"}}\"' @ 1:1-5" + - "'\"{{\"' @ 1:1-5" + - "'\"}}{{\"' @ 1:1-7" + - "'\"{{}\"' @ 1:1-6" + - "'\"{}}\"' @ 1:1-6" + - "'\"{\"' @ 1:1-4" + - "'\"}\"' @ 1:1-4" diff --git a/tests/expectations/parser/parser/expression/literal/group.out b/tests/expectations/parser/parser/expression/literal/group.out new file mode 100644 index 0000000000..c071f23c44 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/group.out @@ -0,0 +1,442 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Group: + Tuple: + x: SignHigh + y: Inferred + span: + lo: 0 + hi: 11 + - Value: + Group: + Tuple: + x: Inferred + y: SignLow + span: + lo: 0 + hi: 11 + - Value: + Group: + Tuple: + x: SignHigh + y: SignLow + span: + lo: 0 + hi: 11 + - Value: + Group: + Tuple: + x: SignLow + y: SignHigh + span: + lo: 0 + hi: 11 + - Value: + Group: + Tuple: + x: SignHigh + y: SignHigh + span: + lo: 0 + hi: 11 + - Value: + Group: + Tuple: + x: SignLow + y: SignLow + span: + lo: 0 + hi: 11 + - Value: + Group: + Tuple: + x: Inferred + y: Inferred + span: + lo: 0 + hi: 11 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "-456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "-123" + - span: + lo: 2 + hi: 5 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "-123" + - span: + lo: 2 + hi: 5 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: Inferred + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignLow + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignLow + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignHigh + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignHigh + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: SignLow + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: Inferred + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: Inferred + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: SignLow + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: SignHigh + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: SignLow + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: Inferred + y: + Number: + - "345" + - span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 13 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Tuple: + x: + Number: + - "123" + - span: + lo: 1 + hi: 4 + y: + Number: + - "456" + - span: + lo: 6 + hi: 9 + span: + lo: 0 + hi: 15 + - Value: + Group: + Single: + - "1" + - span: + lo: 0 + hi: 6 + - Unary: + receiver: + Value: + Group: + Single: + - "1" + - span: + lo: 1 + hi: 7 + op: Negate + span: + lo: 0 + hi: 7 diff --git a/tests/expectations/parser/parser/expression/literal/group_fail.out b/tests/expectations/parser/parser/expression/literal/group_fail.out new file mode 100644 index 0000000000..a4a3d67268 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/group_fail.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 [EPAR0370028]: 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 [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456u8)group\n | ^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123,456field)group\n | ^^^" + - "Error [EPAR0370004]: Unexpected white space between terms (123,456) and group\n --> test:1:11\n |\n 1 | (123, 456) group\n | ^" + - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, )group\n | ^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:2\n |\n 1 | (123, 456, 789)group\n | ^^^" + - "Error [EPAR0370028]: 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.out b/tests/expectations/parser/parser/expression/literal/int.out new file mode 100644 index 0000000000..ccac03f213 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int.out @@ -0,0 +1,111 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'123' @ 1:1-4,'abc123' @ 1:4-10" + - "'123' @ 1:1-4,'abc' @ 1:4-7" + - "'123' @ 1:1-4" + - "'456' @ 1:1-4" + - "'123' @ 1:1-4,'456' @ 1:5-8" + - "'87377802873778028737780287377802873778028737780287377802873778028737780287377802' @ 1:1-81" + - "'8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802' @ 1:1-401" + - "'340130024' @ 1:1-10" + - "'158951116' @ 1:1-10" + - "'155529659' @ 1:1-10" + - "'642023166' @ 1:1-10" + - "'228481736' @ 1:1-10" + - "'469712960' @ 1:1-10" + - "'929437719' @ 1:1-10" + - "'721072814' @ 1:1-10" + - "'363254789' @ 1:1-10" + - "'906732565' @ 1:1-10" + - "'288246391' @ 1:1-10" + - "'724940549' @ 1:1-10" + - "'487101620' @ 1:1-10" + - "'261373583' @ 1:1-10" + - "'891163927' @ 1:1-10" + - "'743967544' @ 1:1-10" + - "'8372586' @ 1:1-8" + - "'461793278' @ 1:1-10" + - "'806307045' @ 1:1-10" + - "'122764546' @ 1:1-10" + - "'356336181' @ 1:1-10" + - "'158370903' @ 1:1-10" + - "'774460877' @ 1:1-10" + - "'557174131' @ 1:1-10" + - "'492401267' @ 1:1-10" + - "'893445620' @ 1:1-10" + - "'957757048' @ 1:1-10" + - "'721540649' @ 1:1-10" + - "'390746493' @ 1:1-10" + - "'211251725' @ 1:1-10" + - "'938266114' @ 1:1-10" + - "'156985870' @ 1:1-10" + - "'703831126' @ 1:1-10" + - "'729964155' @ 1:1-10" + - "'988151305' @ 1:1-10" + - "'320872435' @ 1:1-10" + - "'719287167' @ 1:1-10" + - "'152289486' @ 1:1-10" + - "'740067975' @ 1:1-10" + - "'728627816' @ 1:1-10" + - "'385008978' @ 1:1-10" + - "'553967635' @ 1:1-10" + - "'71980713' @ 1:1-9" + - "'519444716' @ 1:1-10" + - "'116499965' @ 1:1-10" + - "'717422268' @ 1:1-10" + - "'18966279' @ 1:1-9" + - "'22458638' @ 1:1-9" + - "'857282620' @ 1:1-10" + - "'920675898' @ 1:1-10" + - "'762235516' @ 1:1-10" + - "'469018377' @ 1:1-10" + - "'199986521' @ 1:1-10" + - "'536679358' @ 1:1-10" + - "'591399452' @ 1:1-10" + - "'83083158' @ 1:1-9" + - "'599449051' @ 1:1-10" + - "'445442318' @ 1:1-10" + - "'585486590' @ 1:1-10" + - "'209278800' @ 1:1-10" + - "'873568117' @ 1:1-10" + - "'664470940' @ 1:1-10" + - "'465262783' @ 1:1-10" + - "'605652874' @ 1:1-10" + - "'376803940' @ 1:1-10" + - "'965247040' @ 1:1-10" + - "'598474509' @ 1:1-10" + - "'845119918' @ 1:1-10" + - "'648159133' @ 1:1-10" + - "'669051032' @ 1:1-10" + - "'800600261' @ 1:1-10" + - "'434689764' @ 1:1-10" + - "'520060080' @ 1:1-10" + - "'804659385' @ 1:1-10" + - "'537828058' @ 1:1-10" + - "'716600292' @ 1:1-10" + - "'387020273' @ 1:1-10" + - "'199375617' @ 1:1-10" + - "'680337189' @ 1:1-10" + - "'818479931' @ 1:1-10" + - "'893693281' @ 1:1-10" + - "'87377802' @ 1:1-9" + - "'84699261' @ 1:1-9" + - "'292826090' @ 1:1-10" + - "'569171405' @ 1:1-10" + - "'387436237' @ 1:1-10" + - "'150682190' @ 1:1-10" + - "'888770419' @ 1:1-10" + - "'824696431' @ 1:1-10" + - "'765659803' @ 1:1-10" + - "'270163693' @ 1:1-10" + - "'427940240' @ 1:1-10" + - "'504997332' @ 1:1-10" + - "'337808338' @ 1:1-10" + - "'907200008' @ 1:1-10" + - "'757177889' @ 1:1-10" + - "'696697188' @ 1:1-10" + - "'41376051' @ 1:1-9" + - "'496293518' @ 1:1-10" + - "'251218820' @ 1:1-10" diff --git a/tests/expectations/parser/parser/expression/literal/int_fail.out b/tests/expectations/parser/parser/expression/literal/int_fail.out new file mode 100644 index 0000000000..91fe5bb55f --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/field.out b/tests/expectations/parser/parser/expression/literal/int_parse/field.out new file mode 100644 index 0000000000..52e485281e --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/field.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Field: + - "123" + - span: + lo: 0 + hi: 8 + - Value: + Field: + - "123" + - span: + lo: 0 + hi: 8 + - Value: + Field: + - "456" + - span: + lo: 0 + hi: 8 + - Value: + Field: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 85 + - Value: + Field: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 405 + - Value: + Field: + - "340130024" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "158951116" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "155529659" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "642023166" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "228481736" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "469712960" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "929437719" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "721072814" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "363254789" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "906732565" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "288246391" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "724940549" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "487101620" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "261373583" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "891163927" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "743967544" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "8372586" + - span: + lo: 0 + hi: 12 + - Value: + Field: + - "461793278" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "806307045" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "122764546" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "356336181" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "158370903" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "774460877" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "557174131" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "492401267" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "893445620" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "957757048" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "721540649" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "390746493" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "211251725" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "938266114" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "156985870" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "703831126" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "729964155" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "988151305" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "320872435" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "719287167" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "152289486" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "740067975" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "728627816" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "385008978" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "553967635" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "71980713" + - span: + lo: 0 + hi: 13 + - Value: + Field: + - "519444716" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "116499965" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "717422268" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "18966279" + - span: + lo: 0 + hi: 13 + - Value: + Field: + - "22458638" + - span: + lo: 0 + hi: 13 + - Value: + Field: + - "857282620" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "920675898" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "762235516" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "469018377" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "199986521" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "536679358" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "591399452" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "83083158" + - span: + lo: 0 + hi: 13 + - Value: + Field: + - "599449051" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "445442318" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "585486590" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "209278800" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "873568117" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "664470940" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "465262783" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "605652874" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "376803940" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "965247040" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "598474509" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "845119918" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "648159133" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "669051032" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "800600261" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "434689764" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "520060080" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "804659385" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "537828058" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "716600292" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "387020273" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "199375617" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "680337189" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "818479931" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "893693281" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "87377802" + - span: + lo: 0 + hi: 13 + - Value: + Field: + - "84699261" + - span: + lo: 0 + hi: 13 + - Value: + Field: + - "292826090" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "569171405" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "387436237" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "150682190" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "888770419" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "824696431" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "765659803" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "270163693" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "427940240" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "504997332" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "337808338" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "907200008" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "757177889" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "696697188" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "41376051" + - span: + lo: 0 + hi: 13 + - Value: + Field: + - "496293518" + - span: + lo: 0 + hi: 14 + - Value: + Field: + - "251218820" + - span: + lo: 0 + hi: 14 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/field_fail.out b/tests/expectations/parser/parser/expression/literal/int_parse/field_fail.out new file mode 100644 index 0000000000..c96409b26b --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/field_fail.out @@ -0,0 +1,5 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i128.out b/tests/expectations/parser/parser/expression/literal/int_parse/i128.out new file mode 100644 index 0000000000..a31d4df8f0 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i128.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I128 + - "123" + - span: + lo: 0 + hi: 7 + - Value: + Integer: + - I128 + - "123" + - span: + lo: 0 + hi: 7 + - Value: + Integer: + - I128 + - "456" + - span: + lo: 0 + hi: 7 + - Value: + Integer: + - I128 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 84 + - Value: + Integer: + - I128 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 404 + - Value: + Integer: + - I128 + - "340130024" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "158951116" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "155529659" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "642023166" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "228481736" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "469712960" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "929437719" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "721072814" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "363254789" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "906732565" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "288246391" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "724940549" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "487101620" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "261373583" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "891163927" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "743967544" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "8372586" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I128 + - "461793278" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "806307045" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "122764546" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "356336181" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "158370903" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "774460877" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "557174131" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "492401267" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "893445620" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "957757048" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "721540649" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "390746493" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "211251725" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "938266114" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "156985870" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "703831126" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "729964155" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "988151305" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "320872435" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "719287167" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "152289486" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "740067975" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "728627816" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "385008978" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "553967635" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "71980713" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I128 + - "519444716" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "116499965" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "717422268" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "18966279" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I128 + - "22458638" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I128 + - "857282620" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "920675898" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "762235516" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "469018377" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "199986521" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "536679358" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "591399452" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "83083158" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I128 + - "599449051" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "445442318" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "585486590" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "209278800" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "873568117" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "664470940" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "465262783" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "605652874" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "376803940" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "965247040" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "598474509" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "845119918" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "648159133" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "669051032" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "800600261" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "434689764" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "520060080" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "804659385" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "537828058" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "716600292" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "387020273" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "199375617" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "680337189" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "818479931" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "893693281" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "87377802" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I128 + - "84699261" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I128 + - "292826090" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "569171405" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "387436237" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "150682190" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "888770419" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "824696431" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "765659803" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "270163693" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "427940240" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "504997332" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "337808338" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "907200008" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "757177889" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "696697188" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "41376051" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I128 + - "496293518" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - I128 + - "251218820" + - span: + lo: 0 + hi: 13 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i16.out b/tests/expectations/parser/parser/expression/literal/int_parse/i16.out new file mode 100644 index 0000000000..9258d3ab83 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i16.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I16 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I16 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I16 + - "456" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I16 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Value: + Integer: + - I16 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Value: + Integer: + - I16 + - "340130024" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "158951116" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "155529659" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "642023166" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "228481736" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "469712960" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "929437719" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "721072814" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "363254789" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "906732565" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "288246391" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "724940549" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "487101620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "261373583" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "891163927" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "743967544" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "8372586" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I16 + - "461793278" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "806307045" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "122764546" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "356336181" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "158370903" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "774460877" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "557174131" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "492401267" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "893445620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "957757048" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "721540649" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "390746493" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "211251725" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "938266114" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "156985870" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "703831126" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "729964155" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "988151305" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "320872435" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "719287167" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "152289486" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "740067975" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "728627816" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "385008978" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "553967635" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "71980713" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I16 + - "519444716" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "116499965" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "717422268" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "18966279" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I16 + - "22458638" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I16 + - "857282620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "920675898" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "762235516" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "469018377" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "199986521" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "536679358" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "591399452" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "83083158" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I16 + - "599449051" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "445442318" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "585486590" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "209278800" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "873568117" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "664470940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "465262783" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "605652874" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "376803940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "965247040" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "598474509" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "845119918" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "648159133" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "669051032" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "800600261" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "434689764" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "520060080" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "804659385" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "537828058" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "716600292" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "387020273" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "199375617" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "680337189" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "818479931" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "893693281" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "87377802" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I16 + - "84699261" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I16 + - "292826090" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "569171405" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "387436237" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "150682190" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "888770419" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "824696431" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "765659803" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "270163693" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "427940240" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "504997332" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "337808338" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "907200008" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "757177889" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "696697188" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "41376051" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I16 + - "496293518" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I16 + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i32.out b/tests/expectations/parser/parser/expression/literal/int_parse/i32.out new file mode 100644 index 0000000000..3265b57afe --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i32.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I32 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I32 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I32 + - "456" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I32 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Value: + Integer: + - I32 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Value: + Integer: + - I32 + - "340130024" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "158951116" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "155529659" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "642023166" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "228481736" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "469712960" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "929437719" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "721072814" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "363254789" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "906732565" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "288246391" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "724940549" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "487101620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "261373583" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "891163927" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "743967544" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "8372586" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I32 + - "461793278" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "806307045" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "122764546" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "356336181" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "158370903" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "774460877" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "557174131" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "492401267" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "893445620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "957757048" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "721540649" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "390746493" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "211251725" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "938266114" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "156985870" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "703831126" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "729964155" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "988151305" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "320872435" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "719287167" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "152289486" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "740067975" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "728627816" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "385008978" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "553967635" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "71980713" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I32 + - "519444716" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "116499965" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "717422268" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "18966279" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I32 + - "22458638" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I32 + - "857282620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "920675898" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "762235516" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "469018377" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "199986521" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "536679358" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "591399452" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "83083158" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I32 + - "599449051" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "445442318" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "585486590" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "209278800" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "873568117" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "664470940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "465262783" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "605652874" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "376803940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "965247040" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "598474509" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "845119918" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "648159133" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "669051032" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "800600261" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "434689764" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "520060080" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "804659385" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "537828058" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "716600292" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "387020273" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "199375617" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "680337189" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "818479931" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "893693281" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "87377802" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I32 + - "84699261" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I32 + - "292826090" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "569171405" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "387436237" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "150682190" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "888770419" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "824696431" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "765659803" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "270163693" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "427940240" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "504997332" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "337808338" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "907200008" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "757177889" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "696697188" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "41376051" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I32 + - "496293518" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I32 + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i64.out b/tests/expectations/parser/parser/expression/literal/int_parse/i64.out new file mode 100644 index 0000000000..919150c7ab --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i64.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I64 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I64 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I64 + - "456" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - I64 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Value: + Integer: + - I64 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Value: + Integer: + - I64 + - "340130024" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "158951116" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "155529659" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "642023166" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "228481736" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "469712960" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "929437719" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "721072814" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "363254789" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "906732565" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "288246391" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "724940549" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "487101620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "261373583" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "891163927" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "743967544" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "8372586" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I64 + - "461793278" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "806307045" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "122764546" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "356336181" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "158370903" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "774460877" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "557174131" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "492401267" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "893445620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "957757048" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "721540649" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "390746493" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "211251725" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "938266114" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "156985870" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "703831126" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "729964155" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "988151305" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "320872435" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "719287167" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "152289486" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "740067975" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "728627816" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "385008978" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "553967635" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "71980713" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I64 + - "519444716" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "116499965" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "717422268" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "18966279" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I64 + - "22458638" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I64 + - "857282620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "920675898" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "762235516" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "469018377" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "199986521" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "536679358" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "591399452" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "83083158" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I64 + - "599449051" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "445442318" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "585486590" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "209278800" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "873568117" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "664470940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "465262783" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "605652874" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "376803940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "965247040" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "598474509" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "845119918" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "648159133" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "669051032" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "800600261" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "434689764" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "520060080" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "804659385" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "537828058" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "716600292" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "387020273" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "199375617" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "680337189" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "818479931" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "893693281" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "87377802" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I64 + - "84699261" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I64 + - "292826090" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "569171405" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "387436237" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "150682190" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "888770419" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "824696431" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "765659803" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "270163693" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "427940240" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "504997332" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "337808338" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "907200008" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "757177889" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "696697188" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "41376051" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I64 + - "496293518" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - I64 + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/i8.out b/tests/expectations/parser/parser/expression/literal/int_parse/i8.out new file mode 100644 index 0000000000..8de15e95af --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/i8.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - I8 + - "123" + - span: + lo: 0 + hi: 5 + - Value: + Integer: + - I8 + - "123" + - span: + lo: 0 + hi: 5 + - Value: + Integer: + - I8 + - "456" + - span: + lo: 0 + hi: 5 + - Value: + Integer: + - I8 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 82 + - Value: + Integer: + - I8 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 402 + - Value: + Integer: + - I8 + - "340130024" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "158951116" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "155529659" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "642023166" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "228481736" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "469712960" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "929437719" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "721072814" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "363254789" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "906732565" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "288246391" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "724940549" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "487101620" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "261373583" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "891163927" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "743967544" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "8372586" + - span: + lo: 0 + hi: 9 + - Value: + Integer: + - I8 + - "461793278" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "806307045" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "122764546" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "356336181" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "158370903" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "774460877" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "557174131" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "492401267" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "893445620" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "957757048" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "721540649" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "390746493" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "211251725" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "938266114" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "156985870" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "703831126" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "729964155" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "988151305" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "320872435" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "719287167" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "152289486" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "740067975" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "728627816" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "385008978" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "553967635" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "71980713" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I8 + - "519444716" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "116499965" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "717422268" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "18966279" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I8 + - "22458638" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I8 + - "857282620" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "920675898" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "762235516" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "469018377" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "199986521" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "536679358" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "591399452" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "83083158" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I8 + - "599449051" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "445442318" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "585486590" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "209278800" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "873568117" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "664470940" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "465262783" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "605652874" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "376803940" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "965247040" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "598474509" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "845119918" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "648159133" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "669051032" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "800600261" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "434689764" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "520060080" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "804659385" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "537828058" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "716600292" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "387020273" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "199375617" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "680337189" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "818479931" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "893693281" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "87377802" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I8 + - "84699261" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I8 + - "292826090" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "569171405" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "387436237" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "150682190" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "888770419" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "824696431" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "765659803" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "270163693" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "427940240" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "504997332" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "337808338" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "907200008" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "757177889" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "696697188" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "41376051" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - I8 + - "496293518" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - I8 + - "251218820" + - span: + lo: 0 + hi: 11 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/implicit.out b/tests/expectations/parser/parser/expression/literal/int_parse/implicit.out new file mode 100644 index 0000000000..402657ad79 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/implicit.out @@ -0,0 +1,109 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 123.\n --> test:1:1\n |\n 1 | 123\n | ^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 456.\n --> test:1:1\n |\n 1 | 456\n | ^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 87377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 87377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802.\n --> test:1:1\n |\n 1 | 8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 340130024.\n --> test:1:1\n |\n 1 | 340130024\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 158951116.\n --> test:1:1\n |\n 1 | 158951116\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 155529659.\n --> test:1:1\n |\n 1 | 155529659\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 642023166.\n --> test:1:1\n |\n 1 | 642023166\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 228481736.\n --> test:1:1\n |\n 1 | 228481736\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 469712960.\n --> test:1:1\n |\n 1 | 469712960\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 929437719.\n --> test:1:1\n |\n 1 | 929437719\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 721072814.\n --> test:1:1\n |\n 1 | 721072814\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 363254789.\n --> test:1:1\n |\n 1 | 363254789\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 906732565.\n --> test:1:1\n |\n 1 | 906732565\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 288246391.\n --> test:1:1\n |\n 1 | 288246391\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 724940549.\n --> test:1:1\n |\n 1 | 724940549\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 487101620.\n --> test:1:1\n |\n 1 | 487101620\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 261373583.\n --> test:1:1\n |\n 1 | 261373583\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 891163927.\n --> test:1:1\n |\n 1 | 891163927\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 743967544.\n --> test:1:1\n |\n 1 | 743967544\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 8372586.\n --> test:1:1\n |\n 1 | 8372586\n | ^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 461793278.\n --> test:1:1\n |\n 1 | 461793278\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 806307045.\n --> test:1:1\n |\n 1 | 806307045\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 122764546.\n --> test:1:1\n |\n 1 | 122764546\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 356336181.\n --> test:1:1\n |\n 1 | 356336181\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 158370903.\n --> test:1:1\n |\n 1 | 158370903\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 774460877.\n --> test:1:1\n |\n 1 | 774460877\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 557174131.\n --> test:1:1\n |\n 1 | 557174131\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 492401267.\n --> test:1:1\n |\n 1 | 492401267\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 893445620.\n --> test:1:1\n |\n 1 | 893445620\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 957757048.\n --> test:1:1\n |\n 1 | 957757048\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 721540649.\n --> test:1:1\n |\n 1 | 721540649\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 390746493.\n --> test:1:1\n |\n 1 | 390746493\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 211251725.\n --> test:1:1\n |\n 1 | 211251725\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 938266114.\n --> test:1:1\n |\n 1 | 938266114\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 156985870.\n --> test:1:1\n |\n 1 | 156985870\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 703831126.\n --> test:1:1\n |\n 1 | 703831126\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 729964155.\n --> test:1:1\n |\n 1 | 729964155\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 988151305.\n --> test:1:1\n |\n 1 | 988151305\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 320872435.\n --> test:1:1\n |\n 1 | 320872435\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 719287167.\n --> test:1:1\n |\n 1 | 719287167\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 152289486.\n --> test:1:1\n |\n 1 | 152289486\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 740067975.\n --> test:1:1\n |\n 1 | 740067975\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 728627816.\n --> test:1:1\n |\n 1 | 728627816\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 385008978.\n --> test:1:1\n |\n 1 | 385008978\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 553967635.\n --> test:1:1\n |\n 1 | 553967635\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 71980713.\n --> test:1:1\n |\n 1 | 71980713\n | ^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 519444716.\n --> test:1:1\n |\n 1 | 519444716\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 116499965.\n --> test:1:1\n |\n 1 | 116499965\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 717422268.\n --> test:1:1\n |\n 1 | 717422268\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 18966279.\n --> test:1:1\n |\n 1 | 18966279\n | ^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 22458638.\n --> test:1:1\n |\n 1 | 22458638\n | ^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 857282620.\n --> test:1:1\n |\n 1 | 857282620\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 920675898.\n --> test:1:1\n |\n 1 | 920675898\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 762235516.\n --> test:1:1\n |\n 1 | 762235516\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 469018377.\n --> test:1:1\n |\n 1 | 469018377\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 199986521.\n --> test:1:1\n |\n 1 | 199986521\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 536679358.\n --> test:1:1\n |\n 1 | 536679358\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 591399452.\n --> test:1:1\n |\n 1 | 591399452\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 83083158.\n --> test:1:1\n |\n 1 | 83083158\n | ^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 599449051.\n --> test:1:1\n |\n 1 | 599449051\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 445442318.\n --> test:1:1\n |\n 1 | 445442318\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 585486590.\n --> test:1:1\n |\n 1 | 585486590\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 209278800.\n --> test:1:1\n |\n 1 | 209278800\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 873568117.\n --> test:1:1\n |\n 1 | 873568117\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 664470940.\n --> test:1:1\n |\n 1 | 664470940\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 465262783.\n --> test:1:1\n |\n 1 | 465262783\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 605652874.\n --> test:1:1\n |\n 1 | 605652874\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 376803940.\n --> test:1:1\n |\n 1 | 376803940\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 965247040.\n --> test:1:1\n |\n 1 | 965247040\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 598474509.\n --> test:1:1\n |\n 1 | 598474509\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 845119918.\n --> test:1:1\n |\n 1 | 845119918\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 648159133.\n --> test:1:1\n |\n 1 | 648159133\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 669051032.\n --> test:1:1\n |\n 1 | 669051032\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 800600261.\n --> test:1:1\n |\n 1 | 800600261\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 434689764.\n --> test:1:1\n |\n 1 | 434689764\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 520060080.\n --> test:1:1\n |\n 1 | 520060080\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 804659385.\n --> test:1:1\n |\n 1 | 804659385\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 537828058.\n --> test:1:1\n |\n 1 | 537828058\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 716600292.\n --> test:1:1\n |\n 1 | 716600292\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 387020273.\n --> test:1:1\n |\n 1 | 387020273\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 199375617.\n --> test:1:1\n |\n 1 | 199375617\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 680337189.\n --> test:1:1\n |\n 1 | 680337189\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 818479931.\n --> test:1:1\n |\n 1 | 818479931\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 893693281.\n --> test:1:1\n |\n 1 | 893693281\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 87377802.\n --> test:1:1\n |\n 1 | 87377802\n | ^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 84699261.\n --> test:1:1\n |\n 1 | 84699261\n | ^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 292826090.\n --> test:1:1\n |\n 1 | 292826090\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 569171405.\n --> test:1:1\n |\n 1 | 569171405\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 387436237.\n --> test:1:1\n |\n 1 | 387436237\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 150682190.\n --> test:1:1\n |\n 1 | 150682190\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 888770419.\n --> test:1:1\n |\n 1 | 888770419\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 824696431.\n --> test:1:1\n |\n 1 | 824696431\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 765659803.\n --> test:1:1\n |\n 1 | 765659803\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 270163693.\n --> test:1:1\n |\n 1 | 270163693\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 427940240.\n --> test:1:1\n |\n 1 | 427940240\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 504997332.\n --> test:1:1\n |\n 1 | 504997332\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 337808338.\n --> test:1:1\n |\n 1 | 337808338\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 907200008.\n --> test:1:1\n |\n 1 | 907200008\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 757177889.\n --> test:1:1\n |\n 1 | 757177889\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 696697188.\n --> test:1:1\n |\n 1 | 696697188\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 41376051.\n --> test:1:1\n |\n 1 | 41376051\n | ^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 496293518.\n --> test:1:1\n |\n 1 | 496293518\n | ^^^^^^^^^" + - "Error [EPAR0370028]: Could not parse the implicit value: 251218820.\n --> test:1:1\n |\n 1 | 251218820\n | ^^^^^^^^^" diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/mono_group.out b/tests/expectations/parser/parser/expression/literal/int_parse/mono_group.out new file mode 100644 index 0000000000..085b12b84e --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/mono_group.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Group: + Single: + - "123" + - span: + lo: 0 + hi: 8 + - Value: + Group: + Single: + - "123" + - span: + lo: 0 + hi: 8 + - Value: + Group: + Single: + - "456" + - span: + lo: 0 + hi: 8 + - Value: + Group: + Single: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 85 + - Value: + Group: + Single: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 405 + - Value: + Group: + Single: + - "340130024" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "158951116" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "155529659" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "642023166" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "228481736" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "469712960" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "929437719" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "721072814" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "363254789" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "906732565" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "288246391" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "724940549" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "487101620" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "261373583" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "891163927" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "743967544" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "8372586" + - span: + lo: 0 + hi: 12 + - Value: + Group: + Single: + - "461793278" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "806307045" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "122764546" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "356336181" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "158370903" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "774460877" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "557174131" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "492401267" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "893445620" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "957757048" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "721540649" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "390746493" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "211251725" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "938266114" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "156985870" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "703831126" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "729964155" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "988151305" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "320872435" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "719287167" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "152289486" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "740067975" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "728627816" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "385008978" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "553967635" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "71980713" + - span: + lo: 0 + hi: 13 + - Value: + Group: + Single: + - "519444716" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "116499965" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "717422268" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "18966279" + - span: + lo: 0 + hi: 13 + - Value: + Group: + Single: + - "22458638" + - span: + lo: 0 + hi: 13 + - Value: + Group: + Single: + - "857282620" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "920675898" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "762235516" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "469018377" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "199986521" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "536679358" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "591399452" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "83083158" + - span: + lo: 0 + hi: 13 + - Value: + Group: + Single: + - "599449051" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "445442318" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "585486590" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "209278800" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "873568117" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "664470940" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "465262783" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "605652874" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "376803940" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "965247040" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "598474509" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "845119918" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "648159133" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "669051032" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "800600261" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "434689764" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "520060080" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "804659385" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "537828058" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "716600292" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "387020273" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "199375617" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "680337189" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "818479931" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "893693281" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "87377802" + - span: + lo: 0 + hi: 13 + - Value: + Group: + Single: + - "84699261" + - span: + lo: 0 + hi: 13 + - Value: + Group: + Single: + - "292826090" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "569171405" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "387436237" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "150682190" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "888770419" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "824696431" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "765659803" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "270163693" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "427940240" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "504997332" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "337808338" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "907200008" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "757177889" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "696697188" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "41376051" + - span: + lo: 0 + hi: 13 + - Value: + Group: + Single: + - "496293518" + - span: + lo: 0 + hi: 14 + - Value: + Group: + Single: + - "251218820" + - span: + lo: 0 + hi: 14 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/scalar.out b/tests/expectations/parser/parser/expression/literal/int_parse/scalar.out new file mode 100644 index 0000000000..36a69db8b5 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/scalar.out @@ -0,0 +1,634 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Scalar: + - "123" + - span: + lo: 0 + hi: 9 + - Value: + Scalar: + - "123" + - span: + lo: 0 + hi: 9 + - Value: + Scalar: + - "456" + - span: + lo: 0 + hi: 9 + - Value: + Scalar: + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 86 + - Value: + Scalar: + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 406 + - Value: + Scalar: + - "340130024" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "158951116" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "155529659" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "642023166" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "228481736" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "469712960" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "929437719" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "721072814" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "363254789" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "906732565" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "288246391" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "724940549" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "487101620" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "261373583" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "891163927" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "743967544" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "8372586" + - span: + lo: 0 + hi: 13 + - Value: + Scalar: + - "461793278" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "806307045" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "122764546" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "356336181" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "158370903" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "774460877" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "557174131" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "492401267" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "893445620" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "957757048" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "721540649" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "390746493" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "211251725" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "938266114" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "156985870" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "703831126" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "729964155" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "988151305" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "320872435" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "719287167" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "152289486" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "740067975" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "728627816" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "385008978" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "553967635" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "71980713" + - span: + lo: 0 + hi: 14 + - Value: + Scalar: + - "519444716" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "116499965" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "717422268" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "18966279" + - span: + lo: 0 + hi: 14 + - Value: + Scalar: + - "22458638" + - span: + lo: 0 + hi: 14 + - Value: + Scalar: + - "857282620" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "920675898" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "762235516" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "469018377" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "199986521" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "536679358" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "591399452" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "83083158" + - span: + lo: 0 + hi: 14 + - Value: + Scalar: + - "599449051" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "445442318" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "585486590" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "209278800" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "873568117" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "664470940" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "465262783" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "605652874" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "376803940" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "965247040" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "598474509" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "845119918" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "648159133" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "669051032" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "800600261" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "434689764" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "520060080" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "804659385" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "537828058" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "716600292" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "387020273" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "199375617" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "680337189" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "818479931" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "893693281" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "87377802" + - span: + lo: 0 + hi: 14 + - Value: + Scalar: + - "84699261" + - span: + lo: 0 + hi: 14 + - Value: + Scalar: + - "292826090" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "569171405" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "387436237" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "150682190" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "888770419" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "824696431" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "765659803" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "270163693" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "427940240" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "504997332" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "337808338" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "907200008" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "757177889" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "696697188" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "41376051" + - span: + lo: 0 + hi: 14 + - Value: + Scalar: + - "496293518" + - span: + lo: 0 + hi: 15 + - Value: + Scalar: + - "251218820" + - span: + lo: 0 + hi: 15 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u128.out b/tests/expectations/parser/parser/expression/literal/int_parse/u128.out new file mode 100644 index 0000000000..85ea769f24 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u128.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U128 + - "123" + - span: + lo: 0 + hi: 7 + - Value: + Integer: + - U128 + - "123" + - span: + lo: 0 + hi: 7 + - Value: + Integer: + - U128 + - "456" + - span: + lo: 0 + hi: 7 + - Value: + Integer: + - U128 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 84 + - Value: + Integer: + - U128 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 404 + - Value: + Integer: + - U128 + - "340130024" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "158951116" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "155529659" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "642023166" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "228481736" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "469712960" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "929437719" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "721072814" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "363254789" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "906732565" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "288246391" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "724940549" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "487101620" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "261373583" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "891163927" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "743967544" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "8372586" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U128 + - "461793278" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "806307045" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "122764546" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "356336181" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "158370903" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "774460877" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "557174131" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "492401267" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "893445620" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "957757048" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "721540649" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "390746493" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "211251725" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "938266114" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "156985870" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "703831126" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "729964155" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "988151305" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "320872435" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "719287167" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "152289486" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "740067975" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "728627816" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "385008978" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "553967635" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "71980713" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U128 + - "519444716" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "116499965" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "717422268" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "18966279" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U128 + - "22458638" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U128 + - "857282620" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "920675898" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "762235516" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "469018377" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "199986521" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "536679358" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "591399452" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "83083158" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U128 + - "599449051" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "445442318" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "585486590" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "209278800" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "873568117" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "664470940" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "465262783" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "605652874" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "376803940" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "965247040" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "598474509" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "845119918" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "648159133" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "669051032" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "800600261" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "434689764" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "520060080" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "804659385" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "537828058" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "716600292" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "387020273" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "199375617" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "680337189" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "818479931" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "893693281" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "87377802" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U128 + - "84699261" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U128 + - "292826090" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "569171405" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "387436237" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "150682190" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "888770419" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "824696431" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "765659803" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "270163693" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "427940240" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "504997332" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "337808338" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "907200008" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "757177889" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "696697188" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "41376051" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U128 + - "496293518" + - span: + lo: 0 + hi: 13 + - Value: + Integer: + - U128 + - "251218820" + - span: + lo: 0 + hi: 13 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u16.out b/tests/expectations/parser/parser/expression/literal/int_parse/u16.out new file mode 100644 index 0000000000..c5d60575cc --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u16.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U16 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U16 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U16 + - "456" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U16 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Value: + Integer: + - U16 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Value: + Integer: + - U16 + - "340130024" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "158951116" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "155529659" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "642023166" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "228481736" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "469712960" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "929437719" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "721072814" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "363254789" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "906732565" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "288246391" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "724940549" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "487101620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "261373583" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "891163927" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "743967544" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "8372586" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U16 + - "461793278" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "806307045" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "122764546" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "356336181" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "158370903" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "774460877" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "557174131" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "492401267" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "893445620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "957757048" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "721540649" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "390746493" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "211251725" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "938266114" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "156985870" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "703831126" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "729964155" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "988151305" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "320872435" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "719287167" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "152289486" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "740067975" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "728627816" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "385008978" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "553967635" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "71980713" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U16 + - "519444716" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "116499965" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "717422268" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "18966279" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U16 + - "22458638" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U16 + - "857282620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "920675898" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "762235516" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "469018377" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "199986521" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "536679358" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "591399452" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "83083158" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U16 + - "599449051" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "445442318" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "585486590" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "209278800" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "873568117" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "664470940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "465262783" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "605652874" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "376803940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "965247040" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "598474509" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "845119918" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "648159133" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "669051032" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "800600261" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "434689764" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "520060080" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "804659385" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "537828058" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "716600292" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "387020273" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "199375617" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "680337189" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "818479931" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "893693281" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "87377802" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U16 + - "84699261" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U16 + - "292826090" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "569171405" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "387436237" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "150682190" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "888770419" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "824696431" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "765659803" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "270163693" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "427940240" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "504997332" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "337808338" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "907200008" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "757177889" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "696697188" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "41376051" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U16 + - "496293518" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U16 + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u32.out b/tests/expectations/parser/parser/expression/literal/int_parse/u32.out new file mode 100644 index 0000000000..4097818492 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u32.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U32 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U32 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U32 + - "456" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U32 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Value: + Integer: + - U32 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Value: + Integer: + - U32 + - "340130024" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "158951116" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "155529659" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "642023166" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "228481736" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "469712960" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "929437719" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "721072814" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "363254789" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "906732565" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "288246391" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "724940549" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "487101620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "261373583" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "891163927" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "743967544" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "8372586" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U32 + - "461793278" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "806307045" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "122764546" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "356336181" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "158370903" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "774460877" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "557174131" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "492401267" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "893445620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "957757048" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "721540649" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "390746493" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "211251725" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "938266114" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "156985870" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "703831126" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "729964155" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "988151305" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "320872435" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "719287167" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "152289486" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "740067975" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "728627816" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "385008978" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "553967635" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "71980713" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U32 + - "519444716" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "116499965" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "717422268" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "18966279" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U32 + - "22458638" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U32 + - "857282620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "920675898" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "762235516" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "469018377" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "199986521" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "536679358" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "591399452" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "83083158" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U32 + - "599449051" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "445442318" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "585486590" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "209278800" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "873568117" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "664470940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "465262783" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "605652874" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "376803940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "965247040" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "598474509" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "845119918" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "648159133" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "669051032" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "800600261" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "434689764" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "520060080" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "804659385" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "537828058" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "716600292" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "387020273" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "199375617" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "680337189" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "818479931" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "893693281" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "87377802" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U32 + - "84699261" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U32 + - "292826090" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "569171405" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "387436237" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "150682190" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "888770419" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "824696431" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "765659803" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "270163693" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "427940240" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "504997332" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "337808338" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "907200008" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "757177889" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "696697188" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "41376051" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U32 + - "496293518" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U32 + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u64.out b/tests/expectations/parser/parser/expression/literal/int_parse/u64.out new file mode 100644 index 0000000000..1a9e13c611 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u64.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U64 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U64 + - "123" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U64 + - "456" + - span: + lo: 0 + hi: 6 + - Value: + Integer: + - U64 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 83 + - Value: + Integer: + - U64 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 403 + - Value: + Integer: + - U64 + - "340130024" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "158951116" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "155529659" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "642023166" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "228481736" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "469712960" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "929437719" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "721072814" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "363254789" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "906732565" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "288246391" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "724940549" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "487101620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "261373583" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "891163927" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "743967544" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "8372586" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U64 + - "461793278" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "806307045" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "122764546" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "356336181" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "158370903" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "774460877" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "557174131" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "492401267" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "893445620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "957757048" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "721540649" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "390746493" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "211251725" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "938266114" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "156985870" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "703831126" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "729964155" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "988151305" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "320872435" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "719287167" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "152289486" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "740067975" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "728627816" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "385008978" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "553967635" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "71980713" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U64 + - "519444716" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "116499965" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "717422268" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "18966279" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U64 + - "22458638" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U64 + - "857282620" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "920675898" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "762235516" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "469018377" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "199986521" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "536679358" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "591399452" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "83083158" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U64 + - "599449051" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "445442318" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "585486590" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "209278800" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "873568117" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "664470940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "465262783" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "605652874" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "376803940" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "965247040" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "598474509" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "845119918" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "648159133" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "669051032" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "800600261" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "434689764" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "520060080" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "804659385" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "537828058" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "716600292" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "387020273" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "199375617" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "680337189" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "818479931" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "893693281" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "87377802" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U64 + - "84699261" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U64 + - "292826090" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "569171405" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "387436237" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "150682190" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "888770419" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "824696431" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "765659803" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "270163693" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "427940240" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "504997332" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "337808338" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "907200008" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "757177889" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "696697188" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "41376051" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U64 + - "496293518" + - span: + lo: 0 + hi: 12 + - Value: + Integer: + - U64 + - "251218820" + - span: + lo: 0 + hi: 12 diff --git a/tests/expectations/parser/parser/expression/literal/int_parse/u8.out b/tests/expectations/parser/parser/expression/literal/int_parse/u8.out new file mode 100644 index 0000000000..da44d7da88 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/int_parse/u8.out @@ -0,0 +1,739 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Value: + Integer: + - U8 + - "123" + - span: + lo: 0 + hi: 5 + - Value: + Integer: + - U8 + - "123" + - span: + lo: 0 + hi: 5 + - Value: + Integer: + - U8 + - "456" + - span: + lo: 0 + hi: 5 + - Value: + Integer: + - U8 + - "87377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 82 + - Value: + Integer: + - U8 + - "8737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802873778028737780287377802" + - span: + lo: 0 + hi: 402 + - Value: + Integer: + - U8 + - "340130024" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "158951116" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "155529659" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "642023166" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "228481736" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "469712960" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "929437719" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "721072814" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "363254789" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "906732565" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "288246391" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "724940549" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "487101620" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "261373583" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "891163927" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "743967544" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "8372586" + - span: + lo: 0 + hi: 9 + - Value: + Integer: + - U8 + - "461793278" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "806307045" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "122764546" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "356336181" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "158370903" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "774460877" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "557174131" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "492401267" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "893445620" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "957757048" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "721540649" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "390746493" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "211251725" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "938266114" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "156985870" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "703831126" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "729964155" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "988151305" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "320872435" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "719287167" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "152289486" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "740067975" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "728627816" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "385008978" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "553967635" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "71980713" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U8 + - "519444716" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "116499965" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "717422268" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "18966279" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U8 + - "22458638" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U8 + - "857282620" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "920675898" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "762235516" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "469018377" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "199986521" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "536679358" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "591399452" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "83083158" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U8 + - "599449051" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "445442318" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "585486590" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "209278800" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "873568117" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "664470940" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "465262783" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "605652874" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "376803940" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "965247040" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "598474509" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "845119918" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "648159133" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "669051032" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "800600261" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "434689764" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "520060080" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "804659385" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "537828058" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "716600292" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "387020273" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "199375617" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "680337189" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "818479931" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "893693281" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "87377802" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U8 + - "84699261" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U8 + - "292826090" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "569171405" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "387436237" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "150682190" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "888770419" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "824696431" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "765659803" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "270163693" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "427940240" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "504997332" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "337808338" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "907200008" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "757177889" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "696697188" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "41376051" + - span: + lo: 0 + hi: 10 + - Value: + Integer: + - U8 + - "496293518" + - span: + lo: 0 + hi: 11 + - Value: + Integer: + - U8 + - "251218820" + - span: + lo: 0 + hi: 11 diff --git a/tests/expectations/parser/parser/expression/literal/postfix_types.out b/tests/expectations/parser/parser/expression/literal/postfix_types.out new file mode 100644 index 0000000000..00ff4531d4 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/postfix_types.out @@ -0,0 +1,62 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'field' @ 1:1-6" + - "'Field' @ 1:1-6" + - "'fielD' @ 1:1-6" + - "'FIELD' @ 1:1-6" + - "'group' @ 1:1-6" + - "'Group' @ 1:1-6" + - "'grouP' @ 1:1-6" + - "'GROUP' @ 1:1-6" + - "'u8' @ 1:1-3" + - "'u16' @ 1:1-4" + - "'u32' @ 1:1-4" + - "'u64' @ 1:1-4" + - "'u128' @ 1:1-5" + - "'i8' @ 1:1-3" + - "'i16' @ 1:1-4" + - "'i32' @ 1:1-4" + - "'i64' @ 1:1-4" + - "'i128' @ 1:1-5" + - "'U8' @ 1:1-3" + - "'U16' @ 1:1-4" + - "'U32' @ 1:1-4" + - "'U64' @ 1:1-4" + - "'U128' @ 1:1-5" + - "'U8' @ 1:1-3" + - "'U16' @ 1:1-4" + - "'U32' @ 1:1-4" + - "'U64' @ 1:1-4" + - "'U128' @ 1:1-5" + - "'u' @ 1:1-2" + - "'8' @ 1:1-2" + - "'u' @ 1:1-2" + - "'16' @ 1:1-3" + - "'u' @ 1:1-2" + - "'32' @ 1:1-3" + - "'u' @ 1:1-2" + - "'64' @ 1:1-3" + - "'u' @ 1:1-2" + - "'128' @ 1:1-4" + - "'i' @ 1:1-2" + - "'8' @ 1:1-2" + - "'i' @ 1:1-2" + - "'16' @ 1:1-3" + - "'i' @ 1:1-2" + - "'32' @ 1:1-3" + - "'i' @ 1:1-2" + - "'64' @ 1:1-3" + - "'i' @ 1:1-2" + - "'128' @ 1:1-4" + - "'U' @ 1:1-2,'8' @ 1:3-4" + - "'U' @ 1:1-2,'16' @ 1:3-5" + - "'U' @ 1:1-2,'32' @ 1:3-5" + - "'U' @ 1:1-2,'64' @ 1:3-5" + - "'U' @ 1:1-2,'128' @ 1:3-6" + - "'U' @ 1:1-2,'8' @ 1:3-4" + - "'U' @ 1:1-2,'16' @ 1:3-5" + - "'U' @ 1:1-2,'32' @ 1:3-5" + - "'U' @ 1:1-2,'64' @ 1:3-5" + - "'U' @ 1:1-2,'128' @ 1:3-6" diff --git a/tests/expectations/parser/parser/expression/literal/string.out b/tests/expectations/parser/parser/expression/literal/string.out new file mode 100644 index 0000000000..f2647db005 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/string.out @@ -0,0 +1,25 @@ +--- +namespace: Token +expectation: Pass +outputs: + - "'\"string\"' @ 1:1-9" + - "'\"another { } string\"' @ 1:1-21" + - "'\"{ ] [ ; a\"' @ 1:1-12" + - "'\"test 😒€\"' @ 1:1-10" + - "'\"😭😂😘\"' @ 1:1-6" + - "'\"✋🏿\"' @ 1:1-5" + - "'\"🦀\"' @ 1:1-4" + - "'\"￿\"' @ 1:1-4" + - "'\"���\"' @ 1:1-6" + - "'\"(>3<)三\"' @ 1:1-9" + - "'\"ヽ༼ ಠ益ಠ ༽ノ\"' @ 1:1-12" + - "'\"(╯°□°)╯︵ ┻━┻\"' @ 1:1-15" + - "'\"┬─┬ ノ( ゜-゜ノ)\"' @ 1:1-15" + - "'\"( ͡° ͜ʖ ͡°)\"' @ 1:1-14" + - "'\"b\"' @ 1:1-4" + - "'\"ᕙ(▀̿ĺ̯▀̿ ̿)ᕗ\"' @ 1:1-15" + - "'\"♥╣[-_-]╠♥\"' @ 1:1-12" + - "'\"b\"' @ 1:1-4" + - "'\"(⑅∫°ਊ°)∫\"' @ 1:1-11" + - "'\"b\"' @ 1:1-4" + - "'\"🦀°1\"' @ 1:1-6" diff --git a/tests/expectations/parser/parser/expression/literal/string_fail.out b/tests/expectations/parser/parser/expression/literal/string_fail.out new file mode 100644 index 0000000000..14a328fcf3 --- /dev/null +++ b/tests/expectations/parser/parser/expression/literal/string_fail.out @@ -0,0 +1,8 @@ +--- +namespace: Token +expectation: Fail +outputs: + - "Error [EPAR0370023]: Expected a closed string but found `Hello world!`." + - "Error [EPAR0370023]: Expected a closed string but found `\\`." + - "Error [EPAR0370023]: Expected a closed string but found `⭇😍;`." + - "Error [EPAR0370040]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/expression/ternary.out b/tests/expectations/parser/parser/expression/ternary.out new file mode 100644 index 0000000000..07651c1b8f --- /dev/null +++ b/tests/expectations/parser/parser/expression/ternary.out @@ -0,0 +1,52 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + if_true: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + if_false: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + span: + lo: 0 + hi: 9 + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + if_true: + Ternary: + condition: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + if_true: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + if_false: + Identifier: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + span: + lo: 4 + hi: 13 + if_false: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Ternary: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + if_true: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + if_false: + Ternary: + condition: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + if_true: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + if_false: + Identifier: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + span: + lo: 8 + hi: 17 + span: + lo: 0 + hi: 17 diff --git a/tests/expectations/parser/parser/expression/token_format.out b/tests/expectations/parser/parser/expression/token_format.out new file mode 100644 index 0000000000..fa1afb7906 --- /dev/null +++ b/tests/expectations/parser/parser/expression/token_format.out @@ -0,0 +1,74 @@ +--- +namespace: ParseExpression +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `'h'`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `@test`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\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 | ^" + - "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 [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" + - "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 '&'\n --> test:1:1\n |\n 1 | &\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'expression', got 'return'\n --> test:1:1\n |\n 1 | return\n | ^^^^^^" diff --git a/tests/expectations/parser/parser/expression/unary/negate.out b/tests/expectations/parser/parser/expression/unary/negate.out new file mode 100644 index 0000000000..6b95615862 --- /dev/null +++ b/tests/expectations/parser/parser/expression/unary/negate.out @@ -0,0 +1,63 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Negate + span: + lo: 0 + hi: 2 + - Unary: + receiver: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + arguments: [] + span: + lo: 1 + hi: 4 + op: Negate + span: + lo: 0 + hi: 4 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Negate + span: + lo: 0 + hi: 3 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Negate + span: + lo: 0 + hi: 3 + - Unary: + receiver: + Value: + Integer: + - I8 + - "5" + - span: + lo: 1 + hi: 4 + op: Negate + span: + lo: 0 + hi: 4 diff --git a/tests/expectations/parser/parser/expression/unary/not.out b/tests/expectations/parser/parser/expression/unary/not.out new file mode 100644 index 0000000000..d8e4bf8976 --- /dev/null +++ b/tests/expectations/parser/parser/expression/unary/not.out @@ -0,0 +1,50 @@ +--- +namespace: ParseExpression +expectation: Pass +outputs: + - Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + op: Not + span: + lo: 0 + hi: 2 + - Unary: + receiver: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}" + arguments: [] + span: + lo: 1 + hi: 4 + op: Not + span: + lo: 0 + hi: 4 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Not + span: + lo: 1 + hi: 3 + op: Not + span: + lo: 0 + hi: 3 + - Unary: + receiver: + Unary: + receiver: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}" + op: Negate + span: + lo: 1 + hi: 3 + op: Not + span: + lo: 0 + hi: 3 diff --git a/tests/expectations/parser/parser/functions/annotated_arg_not_ident.out b/tests/expectations/parser/parser/functions/annotated_arg_not_ident.out new file mode 100644 index 0000000000..27d2a1f3e8 --- /dev/null +++ b/tests/expectations/parser/parser/functions/annotated_arg_not_ident.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `@foo(?,`.\n" diff --git a/tests/expectations/parser/parser/functions/annotated_context_fail.out b/tests/expectations/parser/parser/functions/annotated_context_fail.out new file mode 100644 index 0000000000..e280b46b4d --- /dev/null +++ b/tests/expectations/parser/parser/functions/annotated_context_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `@context`.\n" diff --git a/tests/expectations/parser/parser/functions/bounded_recursion.out b/tests/expectations/parser/parser/functions/bounded_recursion.out new file mode 100644 index 0000000000..715d3e4198 --- /dev/null +++ b/tests/expectations/parser/parser/functions/bounded_recursion.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:5:9\n |\n 5 | x(y+1u32);\n | ^^^^^^^^^^\nError [EPAR0370041]: Expression statements are no longer supported.\n --> test:10:5\n |\n 10 | x(1u32);\n | ^^^^^^^^" diff --git a/tests/expectations/parser/parser/functions/const_input.out b/tests/expectations/parser/parser/functions/const_input.out new file mode 100644 index 0000000000..03dfda29f0 --- /dev/null +++ b/tests/expectations/parser/parser/functions/const_input.out @@ -0,0 +1,52 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":19,\\\"hi\\\":20}\"}" + mode: Const + type_: + IntegerType: U8 + span: + lo: 19 + hi: 20 + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: [] + span: + lo: 32 + hi: 34 + span: + lo: 2 + hi: 34 + "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}": + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":45,\\\"hi\\\":46}\"}" + input: + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":56,\\\"hi\\\":57}\"}" + mode: Const + type_: + IntegerType: U64 + span: + lo: 56 + hi: 57 + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: [] + span: + lo: 70 + hi: 72 + span: + lo: 36 + hi: 72 + circuits: {} diff --git a/tests/expectations/parser/parser/functions/const_param.out b/tests/expectations/parser/parser/functions/const_param.out new file mode 100644 index 0000000000..a21ebb42d5 --- /dev/null +++ b/tests/expectations/parser/parser/functions/const_param.out @@ -0,0 +1,92 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + mode: Private + type_: + IntegerType: U32 + span: + lo: 13 + hi: 14 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":30,\\\"hi\\\":31}\"}" + mode: Const + type_: + IntegerType: I32 + span: + lo: 30 + hi: 31 + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 57 + hi: 60 + span: + lo: 50 + hi: 60 + span: + lo: 44 + hi: 63 + span: + lo: 2 + hi: 63 + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":74,\\\"hi\\\":75}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" + mode: Const + type_: + IntegerType: U32 + span: + lo: 85 + hi: 86 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":93,\\\"hi\\\":94}\"}" + mode: Private + type_: + IntegerType: I32 + span: + lo: 93 + hi: 94 + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 120 + hi: 123 + span: + lo: 113 + hi: 123 + span: + lo: 107 + hi: 126 + span: + lo: 65 + hi: 126 + circuits: {} diff --git a/tests/expectations/parser/parser/functions/const_public_param_fail.out b/tests/expectations/parser/parser/functions/const_public_param_fail.out new file mode 100644 index 0000000000..24c32456b2 --- /dev/null +++ b/tests/expectations/parser/parser/functions/const_public_param_fail.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.out b/tests/expectations/parser/parser/functions/empty2.out new file mode 100644 index 0000000000..e44e4c6b66 --- /dev/null +++ b/tests/expectations/parser/parser/functions/empty2.out @@ -0,0 +1,22 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: [] + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: [] + span: + lo: 21 + hi: 23 + span: + lo: 2 + hi: 23 + circuits: {} diff --git a/tests/expectations/parser/parser/functions/escape_fail.out b/tests/expectations/parser/parser/functions/escape_fail.out new file mode 100644 index 0000000000..508bfd365e --- /dev/null +++ b/tests/expectations/parser/parser/functions/escape_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `\\`.\n" diff --git a/tests/expectations/parser/parser/functions/ident_token_fail.out b/tests/expectations/parser/parser/functions/ident_token_fail.out new file mode 100644 index 0000000000..9bb9dfa589 --- /dev/null +++ b/tests/expectations/parser/parser/functions/ident_token_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected 'function', 'circuit', 'test' -- got '1'\n --> test:3:1\n |\n 3 | 1 main() {}\n | ^" diff --git a/tests/expectations/parser/parser/functions/infinite_recursion.out b/tests/expectations/parser/parser/functions/infinite_recursion.out new file mode 100644 index 0000000000..2361bcd85d --- /dev/null +++ b/tests/expectations/parser/parser/functions/infinite_recursion.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:4:5\n |\n 4 | inf();\n | ^^^^^^\nError [EPAR0370041]: Expression statements are no longer supported.\n --> test:8:5\n |\n 8 | inf();\n | ^^^^^^" diff --git a/tests/expectations/parser/parser/functions/mut_input_fail.out b/tests/expectations/parser/parser/functions/mut_input_fail.out new file mode 100644 index 0000000000..3f657a07e7 --- /dev/null +++ b/tests/expectations/parser/parser/functions/mut_input_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- got 'a'\n --> test:3:16\n |\n 3 | function f(mut a: u8) {}\n | ^" diff --git a/tests/expectations/parser/parser/functions/params.out b/tests/expectations/parser/parser/functions/params.out new file mode 100644 index 0000000000..914ef46aaf --- /dev/null +++ b/tests/expectations/parser/parser/functions/params.out @@ -0,0 +1,50 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + mode: Private + type_: + IntegerType: U32 + span: + lo: 13 + hi: 14 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" + mode: Private + type_: + IntegerType: I32 + span: + lo: 21 + hi: 22 + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 48 + hi: 51 + span: + lo: 41 + hi: 51 + span: + lo: 35 + hi: 54 + span: + lo: 2 + hi: 54 + circuits: {} diff --git a/tests/expectations/parser/parser/functions/params_return.out b/tests/expectations/parser/parser/functions/params_return.out new file mode 100644 index 0000000000..9c2ca7bdfa --- /dev/null +++ b/tests/expectations/parser/parser/functions/params_return.out @@ -0,0 +1,50 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + mode: Private + type_: + IntegerType: U32 + span: + lo: 13 + hi: 14 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":21,\\\"hi\\\":22}\"}" + mode: Private + type_: + IntegerType: I32 + span: + lo: 21 + hi: 22 + output: + IntegerType: U32 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 49 + hi: 52 + span: + lo: 42 + hi: 52 + span: + lo: 36 + hi: 55 + span: + lo: 2 + hi: 55 + circuits: {} diff --git a/tests/expectations/parser/parser/functions/public_const_param_fail.out b/tests/expectations/parser/parser/functions/public_const_param_fail.out new file mode 100644 index 0000000000..67e772a2d4 --- /dev/null +++ b/tests/expectations/parser/parser/functions/public_const_param_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370038]: 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.out b/tests/expectations/parser/parser/functions/public_param.out new file mode 100644 index 0000000000..066647ef08 --- /dev/null +++ b/tests/expectations/parser/parser/functions/public_param.out @@ -0,0 +1,92 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + mode: Private + type_: + IntegerType: U32 + span: + lo: 13 + hi: 14 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":28,\\\"hi\\\":29}\"}" + mode: Public + type_: + IntegerType: I32 + span: + lo: 28 + hi: 29 + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 55 + hi: 58 + span: + lo: 48 + hi: 58 + span: + lo: 42 + hi: 61 + span: + lo: 2 + hi: 61 + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":72,\\\"hi\\\":73}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":72,\\\"hi\\\":73}\"}" + input: + - Variable: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":81,\\\"hi\\\":82}\"}" + mode: Public + type_: + IntegerType: U32 + span: + lo: 81 + hi: 82 + - Variable: + identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":89,\\\"hi\\\":90}\"}" + mode: Private + type_: + IntegerType: I32 + span: + lo: 89 + hi: 90 + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 116 + hi: 119 + span: + lo: 109 + hi: 119 + span: + lo: 103 + hi: 122 + span: + lo: 63 + hi: 122 + circuits: {} diff --git a/tests/expectations/parser/parser/functions/return.out b/tests/expectations/parser/parser/functions/return.out new file mode 100644 index 0000000000..8ad9ddfc87 --- /dev/null +++ b/tests/expectations/parser/parser/functions/return.out @@ -0,0 +1,34 @@ +--- +namespace: Parse +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}": + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":12}\"}" + input: [] + output: + IntegerType: U32 + core_mapping: ~ + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 35 + hi: 38 + span: + lo: 28 + hi: 38 + span: + lo: 22 + hi: 41 + span: + lo: 2 + hi: 41 + circuits: {} diff --git a/tests/expectations/parser/parser/functions/test_keyword_fail.out b/tests/expectations/parser/parser/functions/test_keyword_fail.out new file mode 100644 index 0000000000..e32ec52ec0 --- /dev/null +++ b/tests/expectations/parser/parser/functions/test_keyword_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370013]: \"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.out b/tests/expectations/parser/parser/inputs/input_const.out new file mode 100644 index 0000000000..e32a87fd95 --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_const.out @@ -0,0 +1,215 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Const + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + value: + Value: + Boolean: + - "true" + - span: + lo: 26 + hi: 30 + span: + lo: 18 + hi: 22 + - mode: Const + type_: + IntegerType: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":38,\\\"hi\\\":39}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + lo: 49 + hi: 52 + span: + lo: 41 + hi: 43 + - mode: Const + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":60,\\\"hi\\\":61}\"}" + value: + Value: + Field: + - "0" + - span: + lo: 71 + hi: 77 + span: + lo: 63 + hi: 68 + - mode: Const + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":85,\\\"hi\\\":86}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 97 + hi: 98 + y: + Number: + - "1" + - span: + lo: 100 + hi: 101 + span: + lo: 96 + hi: 107 + span: + lo: 88 + hi: 93 + - mode: Const + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":115,\\\"hi\\\":116}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + lo: 128 + hi: 191 + span: + lo: 118 + hi: 125 + - mode: Const + type_: + IntegerType: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":199,\\\"hi\\\":200}\"}" + value: + Unary: + receiver: + Value: + Integer: + - I8 + - "2" + - span: + lo: 211 + hi: 214 + op: Negate + span: + lo: 210 + hi: 214 + span: + lo: 202 + hi: 204 + span: + lo: 3 + hi: 7 + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":229,\\\"hi\\\":231}\"}" + value: + Value: + Boolean: + - "true" + - span: + lo: 241 + hi: 245 + span: + lo: 233 + hi: 237 + - mode: Private + type_: + IntegerType: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":247,\\\"hi\\\":249}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + lo: 259 + hi: 262 + span: + lo: 251 + hi: 253 + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":264,\\\"hi\\\":266}\"}" + value: + Value: + Field: + - "0" + - span: + lo: 276 + hi: 282 + span: + lo: 268 + hi: 273 + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":284,\\\"hi\\\":286}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 297 + hi: 298 + y: + Number: + - "1" + - span: + lo: 300 + hi: 301 + span: + lo: 296 + hi: 307 + span: + lo: 288 + hi: 293 + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":309,\\\"hi\\\":311}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + lo: 323 + hi: 386 + span: + lo: 313 + hi: 320 + - mode: Private + type_: + IntegerType: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":388,\\\"hi\\\":390}\"}" + value: + Unary: + receiver: + Value: + Integer: + - I8 + - "1" + - span: + lo: 398 + hi: 401 + op: Negate + span: + lo: 397 + hi: 401 + span: + lo: 392 + hi: 394 + span: + lo: 218 + hi: 227 diff --git a/tests/expectations/parser/parser/inputs/input_constant.out b/tests/expectations/parser/parser/inputs/input_constant.out new file mode 100644 index 0000000000..6c6326a460 --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_constant.out @@ -0,0 +1,215 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Const + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + value: + Value: + Boolean: + - "true" + - span: + lo: 29 + hi: 33 + span: + lo: 21 + hi: 25 + - mode: Const + type_: + IntegerType: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":44,\\\"hi\\\":45}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + lo: 55 + hi: 58 + span: + lo: 47 + hi: 49 + - mode: Const + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":69,\\\"hi\\\":70}\"}" + value: + Value: + Field: + - "0" + - span: + lo: 80 + hi: 86 + span: + lo: 72 + hi: 77 + - mode: Const + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":97,\\\"hi\\\":98}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 109 + hi: 110 + y: + Number: + - "1" + - span: + lo: 112 + hi: 113 + span: + lo: 108 + hi: 119 + span: + lo: 100 + hi: 105 + - mode: Const + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":130,\\\"hi\\\":131}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + lo: 143 + hi: 206 + span: + lo: 133 + hi: 140 + - mode: Const + type_: + IntegerType: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":217,\\\"hi\\\":218}\"}" + value: + Unary: + receiver: + Value: + Integer: + - I8 + - "2" + - span: + lo: 229 + hi: 232 + op: Negate + span: + lo: 228 + hi: 232 + span: + lo: 220 + hi: 222 + span: + lo: 3 + hi: 7 + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":247,\\\"hi\\\":249}\"}" + value: + Value: + Boolean: + - "true" + - span: + lo: 259 + hi: 263 + span: + lo: 251 + hi: 255 + - mode: Private + type_: + IntegerType: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":265,\\\"hi\\\":267}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + lo: 277 + hi: 280 + span: + lo: 269 + hi: 271 + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":282,\\\"hi\\\":284}\"}" + value: + Value: + Field: + - "0" + - span: + lo: 294 + hi: 300 + span: + lo: 286 + hi: 291 + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":302,\\\"hi\\\":304}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 315 + hi: 316 + y: + Number: + - "1" + - span: + lo: 318 + hi: 319 + span: + lo: 314 + hi: 325 + span: + lo: 306 + hi: 311 + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":327,\\\"hi\\\":329}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + lo: 341 + hi: 404 + span: + lo: 331 + hi: 338 + - mode: Private + type_: + IntegerType: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":406,\\\"hi\\\":408}\"}" + value: + Unary: + receiver: + Value: + Integer: + - I8 + - "1" + - span: + lo: 416 + hi: 419 + op: Negate + span: + lo: 415 + hi: 419 + span: + lo: 410 + hi: 412 + span: + lo: 236 + hi: 245 diff --git a/tests/expectations/parser/parser/inputs/input_constant_public_fail.out b/tests/expectations/parser/parser/inputs/input_constant_public_fail.out new file mode 100644 index 0000000000..f618c2ebbb --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_constant_public_fail.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.out b/tests/expectations/parser/parser/inputs/input_fail.out new file mode 100644 index 0000000000..5f8bf95de3 --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Input +expectation: Fail +outputs: + - "Error [EPAR0370000]: main\n --> test:3:1\n |\n 3 | main\n | ^^^^" diff --git a/tests/expectations/parser/parser/inputs/input_public.out b/tests/expectations/parser/parser/inputs/input_public.out new file mode 100644 index 0000000000..30c9029149 --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_public.out @@ -0,0 +1,215 @@ +--- +namespace: Input +expectation: Pass +outputs: + - sections: + - name: main + definitions: + - mode: Public + type_: Boolean + name: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + value: + Value: + Boolean: + - "true" + - span: + lo: 27 + hi: 31 + span: + lo: 19 + hi: 23 + - mode: Public + type_: + IntegerType: U8 + name: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":57,\\\"hi\\\":58}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + lo: 68 + hi: 71 + span: + lo: 60 + hi: 62 + - mode: Public + type_: Field + name: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":100,\\\"hi\\\":101}\"}" + value: + Value: + Field: + - "0" + - span: + lo: 111 + hi: 117 + span: + lo: 103 + hi: 108 + - mode: Public + type_: Group + name: "{\"name\":\"d\",\"span\":\"{\\\"lo\\\":146,\\\"hi\\\":147}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 158 + hi: 159 + y: + Number: + - "1" + - span: + lo: 161 + hi: 162 + span: + lo: 157 + hi: 168 + span: + lo: 149 + hi: 154 + - mode: Public + type_: Address + name: "{\"name\":\"e\",\"span\":\"{\\\"lo\\\":187,\\\"hi\\\":188}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + lo: 200 + hi: 263 + span: + lo: 190 + hi: 197 + - mode: Public + type_: + IntegerType: I8 + name: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":272,\\\"hi\\\":273}\"}" + value: + Unary: + receiver: + Value: + Integer: + - I8 + - "2" + - span: + lo: 284 + hi: 287 + op: Negate + span: + lo: 283 + hi: 287 + span: + lo: 275 + hi: 277 + span: + lo: 3 + hi: 7 + - name: registers + definitions: + - mode: Private + type_: Boolean + name: "{\"name\":\"r0\",\"span\":\"{\\\"lo\\\":302,\\\"hi\\\":304}\"}" + value: + Value: + Boolean: + - "true" + - span: + lo: 314 + hi: 318 + span: + lo: 306 + hi: 310 + - mode: Private + type_: + IntegerType: U8 + name: "{\"name\":\"r1\",\"span\":\"{\\\"lo\\\":337,\\\"hi\\\":339}\"}" + value: + Value: + Integer: + - U8 + - "2" + - span: + lo: 349 + hi: 352 + span: + lo: 341 + hi: 343 + - mode: Private + type_: Field + name: "{\"name\":\"r2\",\"span\":\"{\\\"lo\\\":374,\\\"hi\\\":376}\"}" + value: + Value: + Field: + - "0" + - span: + lo: 386 + hi: 392 + span: + lo: 378 + hi: 383 + - mode: Private + type_: Group + name: "{\"name\":\"r3\",\"span\":\"{\\\"lo\\\":414,\\\"hi\\\":416}\"}" + value: + Value: + Group: + Tuple: + x: + Number: + - "0" + - span: + lo: 427 + hi: 428 + y: + Number: + - "1" + - span: + lo: 430 + hi: 431 + span: + lo: 426 + hi: 437 + span: + lo: 418 + hi: 423 + - mode: Private + type_: Address + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":449,\\\"hi\\\":451}\"}" + value: + Value: + Address: + - aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8sta57j8 + - span: + lo: 463 + hi: 526 + span: + lo: 453 + hi: 460 + - mode: Private + type_: + IntegerType: I8 + name: "{\"name\":\"r4\",\"span\":\"{\\\"lo\\\":528,\\\"hi\\\":530}\"}" + value: + Unary: + receiver: + Value: + Integer: + - I8 + - "1" + - span: + lo: 538 + hi: 541 + op: Negate + span: + lo: 537 + hi: 541 + span: + lo: 532 + hi: 534 + span: + lo: 291 + hi: 300 diff --git a/tests/expectations/parser/parser/inputs/input_public_constant_fail.out b/tests/expectations/parser/parser/inputs/input_public_constant_fail.out new file mode 100644 index 0000000000..9e54347d3d --- /dev/null +++ b/tests/expectations/parser/parser/inputs/input_public_constant_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Input +expectation: Fail +outputs: + - "Error [EPAR0370038]: 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.out b/tests/expectations/parser/parser/program/backslash_eof.out new file mode 100644 index 0000000000..508bfd365e --- /dev/null +++ b/tests/expectations/parser/parser/program/backslash_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `\\`.\n" diff --git a/tests/expectations/parser/parser/program/bidi_comment_2_fail.out b/tests/expectations/parser/parser/program/bidi_comment_2_fail.out new file mode 100644 index 0000000000..fadadbd1f4 --- /dev/null +++ b/tests/expectations/parser/parser/program/bidi_comment_2_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370040]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/program/bidi_comment_fail.out b/tests/expectations/parser/parser/program/bidi_comment_fail.out new file mode 100644 index 0000000000..fadadbd1f4 --- /dev/null +++ b/tests/expectations/parser/parser/program/bidi_comment_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370040]: Unicode bidi override code point encountered." diff --git a/tests/expectations/parser/parser/program/dollar_eof.out b/tests/expectations/parser/parser/program/dollar_eof.out new file mode 100644 index 0000000000..5859573e7d --- /dev/null +++ b/tests/expectations/parser/parser/program/dollar_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `$`.\n" diff --git a/tests/expectations/parser/parser/program/escape_u8_eof.out b/tests/expectations/parser/parser/program/escape_u8_eof.out new file mode 100644 index 0000000000..82882336dc --- /dev/null +++ b/tests/expectations/parser/parser/program/escape_u8_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `\\1u8`.\n" diff --git a/tests/expectations/parser/parser/program/hex_eof.out b/tests/expectations/parser/parser/program/hex_eof.out new file mode 100644 index 0000000000..debae16a1d --- /dev/null +++ b/tests/expectations/parser/parser/program/hex_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/program/pipe_eof.out b/tests/expectations/parser/parser/program/pipe_eof.out new file mode 100644 index 0000000000..9c18242a31 --- /dev/null +++ b/tests/expectations/parser/parser/program/pipe_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected -> -- got '{'\n --> test:3:17\n |\n 3 | function main() {\n | ^" diff --git a/tests/expectations/parser/parser/program/q_eof.out b/tests/expectations/parser/parser/program/q_eof.out new file mode 100644 index 0000000000..c03ef62046 --- /dev/null +++ b/tests/expectations/parser/parser/program/q_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370023]: Expected a closed string but found ``." diff --git a/tests/expectations/parser/parser/program/sq_eof.out b/tests/expectations/parser/parser/program/sq_eof.out new file mode 100644 index 0000000000..0be66ec303 --- /dev/null +++ b/tests/expectations/parser/parser/program/sq_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `'`.\n" diff --git a/tests/expectations/parser/parser/program/tilde_eof.out b/tests/expectations/parser/parser/program/tilde_eof.out new file mode 100644 index 0000000000..cacf961a27 --- /dev/null +++ b/tests/expectations/parser/parser/program/tilde_eof.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `~`.\n" diff --git a/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.out b/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.out new file mode 100644 index 0000000000..33379b8191 --- /dev/null +++ b/tests/expectations/parser/parser/program/unclosed_unicode_eof_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370026]: Could not lex the following content: `'\\u`.\n" diff --git a/tests/expectations/parser/parser/serialize/one_plus_one.out b/tests/expectations/parser/parser/serialize/one_plus_one.out new file mode 100644 index 0000000000..69ba3d9a03 --- /dev/null +++ b/tests/expectations/parser/parser/serialize/one_plus_one.out @@ -0,0 +1,30 @@ +--- +namespace: Serialize +expectation: Pass +outputs: + - name: "" + expected_input: [] + functions: + "{\"name\":\"main\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":15}\"}": + identifier: "{\"name\":\"main\",\"span\":\"{\\\"lo\\\":11,\\\"hi\\\":15}\"}" + input: [] + output: + IntegerType: U8 + core_mapping: ~ + block: + statements: + - Return: + expression: + Binary: + left: + Value: + Integer: + - U8 + - "1" + right: + Value: + Integer: + - U8 + - "1" + op: Add + circuits: {} diff --git a/tests/expectations/parser/parser/serialize/parser_error.out b/tests/expectations/parser/parser/serialize/parser_error.out new file mode 100644 index 0000000000..f932c95ee3 --- /dev/null +++ b/tests/expectations/parser/parser/serialize/parser_error.out @@ -0,0 +1,5 @@ +--- +namespace: Serialize +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected 'function', 'circuit', 'test' -- got 'invalid'\n --> test:3:1\n |\n 3 | invalid\n | ^^^^^^^" diff --git a/tests/expectations/parser/parser/statement/assign.out b/tests/expectations/parser/parser/statement/assign.out new file mode 100644 index 0000000000..57fe826df0 --- /dev/null +++ b/tests/expectations/parser/parser/statement/assign.out @@ -0,0 +1,57 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + accesses: [] + span: + lo: 0 + hi: 1 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":8}\"}" + span: + lo: 0 + hi: 8 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + accesses: [] + span: + lo: 0 + hi: 1 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + op: Add + span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}" + accesses: [] + span: + lo: 0 + hi: 1 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + arguments: [] + span: + lo: 4 + hi: 7 + span: + lo: 0 + hi: 7 diff --git a/tests/expectations/parser/parser/statement/assign_fail.out b/tests/expectations/parser/parser/statement/assign_fail.out new file mode 100644 index 0000000000..d08ae7ee5c --- /dev/null +++ b/tests/expectations/parser/parser/statement/assign_fail.out @@ -0,0 +1,17 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::y = y;\n | ^" + - "Error [EPAR0370028]: 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 'x'\n --> test:1:4\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 [EPAR0370026]: Could not lex the following content: `🦀`.\n" diff --git a/tests/expectations/parser/parser/statement/block.out b/tests/expectations/parser/parser/statement/block.out new file mode 100644 index 0000000000..9f8a28a964 --- /dev/null +++ b/tests/expectations/parser/parser/statement/block.out @@ -0,0 +1,87 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Block: + statements: [] + span: + lo: 0 + hi: 2 + - Block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 9 + hi: 12 + span: + lo: 2 + hi: 12 + span: + lo: 0 + hi: 15 + - Block: + statements: + - Block: + statements: [] + span: + lo: 1 + hi: 3 + span: + lo: 0 + hi: 4 + - Block: + statements: + - Block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 11 + hi: 14 + span: + lo: 4 + hi: 14 + span: + lo: 2 + hi: 17 + span: + lo: 0 + hi: 19 + - Block: + statements: + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 16 + hi: 19 + span: + lo: 9 + hi: 19 + span: + lo: 7 + hi: 22 + next: ~ + span: + lo: 2 + hi: 22 + span: + lo: 0 + hi: 24 diff --git a/tests/expectations/parser/parser/statement/conditional.out b/tests/expectations/parser/parser/statement/conditional.out new file mode 100644 index 0000000000..c0e7b68f10 --- /dev/null +++ b/tests/expectations/parser/parser/statement/conditional.out @@ -0,0 +1,146 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 14 + hi: 17 + span: + lo: 7 + hi: 17 + span: + lo: 5 + hi: 20 + next: ~ + span: + lo: 0 + hi: 20 + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 16 + hi: 19 + span: + lo: 9 + hi: 19 + span: + lo: 7 + hi: 22 + next: ~ + span: + lo: 0 + hi: 22 + - Conditional: + condition: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + block: + statements: [] + span: + lo: 7 + hi: 9 + next: + Block: + statements: [] + span: + lo: 15 + hi: 17 + span: + lo: 0 + hi: 17 + - Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + op: Add + span: + lo: 3 + hi: 6 + block: + statements: [] + span: + lo: 7 + hi: 9 + next: + Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + right: + Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + op: Add + span: + lo: 18 + hi: 21 + block: + statements: [] + span: + lo: 22 + hi: 24 + next: + Block: + statements: [] + span: + lo: 30 + hi: 32 + span: + lo: 15 + hi: 32 + span: + lo: 0 + hi: 32 + - Conditional: + condition: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + op: Add + span: + lo: 3 + hi: 6 + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "0" + - span: + lo: 16 + hi: 19 + span: + lo: 9 + hi: 19 + span: + lo: 7 + hi: 22 + next: ~ + span: + lo: 0 + hi: 22 diff --git a/tests/expectations/parser/parser/statement/conditional_fail.out b/tests/expectations/parser/parser/statement/conditional_fail.out new file mode 100644 index 0000000000..1150138dbb --- /dev/null +++ b/tests/expectations/parser/parser/statement/conditional_fail.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.out b/tests/expectations/parser/parser/statement/console.out new file mode 100644 index 0000000000..b50fd15ea8 --- /dev/null +++ b/tests/expectations/parser/parser/statement/console.out @@ -0,0 +1,83 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Console: + function: + Assert: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Console: + function: + Error: + string: "{}" + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + span: + lo: 13 + hi: 22 + span: + lo: 0 + hi: 22 + - Console: + function: + Error: + string: "{}{}" + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":22,\\\"hi\\\":23}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":25,\\\"hi\\\":26}\"}" + span: + lo: 13 + hi: 27 + span: + lo: 0 + hi: 27 + - Console: + function: + Error: + string: x + parameters: [] + span: + lo: 13 + hi: 18 + span: + lo: 0 + hi: 18 + - Console: + function: + Log: + string: "{}" + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}" + span: + lo: 11 + hi: 20 + span: + lo: 0 + hi: 20 + - Console: + function: + Log: + string: "{}{}" + parameters: + - Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}" + - Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":23,\\\"hi\\\":24}\"}" + span: + lo: 11 + hi: 25 + span: + lo: 0 + hi: 25 + - Console: + function: + Log: + string: x + parameters: [] + span: + lo: 11 + hi: 16 + span: + lo: 0 + hi: 16 diff --git a/tests/expectations/parser/parser/statement/console_fail.out b/tests/expectations/parser/parser/statement/console_fail.out new file mode 100644 index 0000000000..58ac677d34 --- /dev/null +++ b/tests/expectations/parser/parser/statement/console_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370040]: Unicode bidi override code point encountered." + - "Error [EPAR0370009]: unexpected string: expected 'formatted static_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.out b/tests/expectations/parser/parser/statement/definition.out new file mode 100644 index 0000000000..e694ec29e6 --- /dev/null +++ b/tests/expectations/parser/parser/statement/definition.out @@ -0,0 +1,287 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U16 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: Add + span: + lo: 13 + hi: 16 + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + arguments: [] + span: + lo: 12 + hi: 15 + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: String + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":20}\"}" + span: + lo: 0 + hi: 20 + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 6 + hi: 7 + type_: + IntegerType: I8 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":18}\"}" + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 6 + hi: 7 + type_: + IntegerType: I16 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Add + span: + lo: 15 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 6 + hi: 7 + type_: + IntegerType: I8 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":14,\\\"hi\\\":15}\"}" + arguments: [] + span: + lo: 14 + hi: 17 + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 6 + hi: 7 + type_: String + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":22}\"}" + span: + lo: 0 + hi: 22 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U32 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U32 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + op: Add + span: + lo: 13 + hi: 16 + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U32 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}" + arguments: [] + span: + lo: 13 + hi: 16 + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 6 + hi: 7 + type_: + IntegerType: U32 + value: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":19}\"}" + span: + lo: 0 + hi: 19 + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 6 + hi: 7 + type_: + IntegerType: U32 + value: + Binary: + left: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + right: + Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Add + span: + lo: 15 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Const + variable_names: + - mutable: false + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 6 + hi: 7 + type_: + IntegerType: U32 + value: + Call: + function: + Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}" + arguments: [] + span: + lo: 15 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: Address + value: + Value: + Address: + - aleo15u4r0gzjtqzepkgurgn7p3u5kkhs9p74rx6aun3uh2s5std6759svgmg53 + - span: + lo: 17 + hi: 80 + span: + lo: 0 + hi: 80 diff --git a/tests/expectations/parser/parser/statement/definition_fail.out b/tests/expectations/parser/parser/statement/definition_fail.out new file mode 100644 index 0000000000..30cfa2024c --- /dev/null +++ b/tests/expectations/parser/parser/statement/definition_fail.out @@ -0,0 +1,47 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x = expr;\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x = ();\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x = x+y;\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x = (x,y);\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x = x();\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x = expr;\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x = ();\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x = x+y;\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x = (x,y);\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x = x();\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = expr;\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = ();\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = x+y;\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = (x,y);\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:9\n |\n 1 | let mut x: u32 = x();\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = expr;\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = ();\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = x+y;\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\n |\n 1 | const mut x: u32 = (x,y);\n | ^" + - "Error [EPAR0370005]: expected : -- got 'x'\n --> test:1:11\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 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8; (2,,)] = [[0,0], [0,0]];\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got 'const'\n --> test:1:8\n |\n 1 | let x: const = expr;\n | ^^^^^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got 'let'\n --> test:1:10\n |\n 1 | const x: let = 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 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- 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 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got '='\n --> test:1:8\n |\n 1 | let x: = 1;\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8] = 1;\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- got '['\n --> test:1:8\n |\n 1 | let x: [u8;\n | ^" + - "Error [EPAR0370005]: expected 'address', 'bool', 'field', 'group', 'scalar', 'string', 'i8', 'i16', 'i32', 'i64', 'i128', 'u8', 'u16', 'u32', 'u64', 'u128' -- 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 [EPAR0370026]: Could not lex the following content: `🦀:`.\n" + - "Error [EPAR0370035]: 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 [EPAR0370035]: 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.out b/tests/expectations/parser/parser/statement/expression.out new file mode 100644 index 0000000000..99e7a19ce7 --- /dev/null +++ b/tests/expectations/parser/parser/statement/expression.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | expr;\n | ^^^^^" + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x+y;\n | ^^^^" + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x();\n | ^^^^" diff --git a/tests/expectations/parser/parser/statement/expression_fail.out b/tests/expectations/parser/parser/statement/expression_fail.out new file mode 100644 index 0000000000..844cabc5b1 --- /dev/null +++ b/tests/expectations/parser/parser/statement/expression_fail.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 [EPAR0370026]: Could not lex the following content: `\\y`.\n" + - "Error [EPAR0370005]: expected ) -- got '|'\n --> test:1:5\n |\n 1 | (x,y|;\n | ^" + - "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.out b/tests/expectations/parser/parser/statement/hex_int_fail.out new file mode 100644 index 0000000000..e8dd7f6dbf --- /dev/null +++ b/tests/expectations/parser/parser/statement/hex_int_fail.out @@ -0,0 +1,7 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." + - "Error [EPAR0370032]: A hex number `0x..` was provided but hex is not allowed." diff --git a/tests/expectations/parser/parser/statement/iteration.out b/tests/expectations/parser/parser/statement/iteration.out new file mode 100644 index 0000000000..77fab43fae --- /dev/null +++ b/tests/expectations/parser/parser/statement/iteration.out @@ -0,0 +1,147 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: + IntegerType: U8 + start: + Value: + Integer: + - U8 + - "0" + - span: + lo: 13 + hi: 16 + stop: + Value: + Integer: + - U8 + - "7" + - span: + lo: 18 + hi: 21 + inclusive: false + block: + statements: [] + span: + lo: 22 + hi: 24 + span: + lo: 0 + hi: 24 + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: + IntegerType: I64 + start: + Value: + Integer: + - I64 + - "0" + - span: + lo: 14 + hi: 18 + stop: + Value: + Integer: + - I64 + - "7" + - span: + lo: 20 + hi: 24 + inclusive: false + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "1" + - span: + lo: 34 + hi: 37 + span: + lo: 27 + hi: 37 + span: + lo: 25 + hi: 40 + span: + lo: 0 + hi: 40 + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: Field + start: + Value: + Field: + - "0" + - span: + lo: 16 + hi: 22 + stop: + Value: + Integer: + - U8 + - "99" + - span: + lo: 24 + hi: 28 + inclusive: false + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "1" + - span: + lo: 38 + hi: 41 + span: + lo: 31 + hi: 41 + span: + lo: 29 + hi: 44 + span: + lo: 0 + hi: 44 + - Iteration: + variable: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + type_: Boolean + start: + Value: + Integer: + - U8 + - "0" + - span: + lo: 15 + hi: 18 + stop: + Identifier: "{\"name\":\"Self\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":24}\"}" + inclusive: false + block: + statements: + - Return: + expression: + Value: + Integer: + - U8 + - "1" + - span: + lo: 34 + hi: 37 + span: + lo: 27 + hi: 37 + span: + lo: 25 + hi: 40 + span: + lo: 0 + hi: 40 diff --git a/tests/expectations/parser/parser/statement/let_mut_recover.out b/tests/expectations/parser/parser/statement/let_mut_recover.out new file mode 100644 index 0000000000..acb14a5c3f --- /dev/null +++ b/tests/expectations/parser/parser/statement/let_mut_recover.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.out b/tests/expectations/parser/parser/statement/return.out new file mode 100644 index 0000000000..2356991aab --- /dev/null +++ b/tests/expectations/parser/parser/statement/return.out @@ -0,0 +1,22 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Return: + expression: + Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":11}\"}" + span: + lo: 0 + hi: 11 + - Return: + expression: + Value: + Integer: + - U8 + - "5" + - span: + lo: 7 + hi: 10 + span: + lo: 0 + hi: 10 diff --git a/tests/expectations/parser/parser/statement/return_fail.out b/tests/expectations/parser/parser/statement/return_fail.out new file mode 100644 index 0000000000..dce6f7b319 --- /dev/null +++ b/tests/expectations/parser/parser/statement/return_fail.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 [EPAR0370028]: 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.out b/tests/expectations/parser/parser/unreachable/define.out new file mode 100644 index 0000000000..597d069f53 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/define.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 [EPAR0370009]: unexpected string: expected 'expression', got '&'\n --> test:1:1\n |\n 1 | & x = 10u8;\n | ^" + - "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 [EPAR0370028]: 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.out b/tests/expectations/parser/parser/unreachable/eat_ident.out new file mode 100644 index 0000000000..c45c35cbd0 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/eat_ident.out @@ -0,0 +1,5 @@ +--- +namespace: Parse +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected 'function', 'circuit', 'test' -- got 'circuit'\n --> test:3:1\n |\n 3 | circuit ;\n | ^^^^^^^" diff --git a/tests/expectations/parser/parser/unreachable/eat_int.out b/tests/expectations/parser/parser/unreachable/eat_int.out new file mode 100644 index 0000000000..f7a9dc0aa2 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/eat_int.out @@ -0,0 +1,56 @@ +--- +namespace: ParseStatement +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '-'\n --> test:1:3\n |\n 1 | x.-12\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_;\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_.\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_import\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_,\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_*\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_+\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_-\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_/\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_[\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_]\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_{\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_}\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_(\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_)\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_:\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_::\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_?\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0__\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_==\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_!\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_!=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_>\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_>=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_<\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_<=\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_>\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_..\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_as\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_console\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_const\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_let\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_for\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_if\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_else\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i8\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i16\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i32\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i64\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_i128\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u8\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u16\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u32\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u64\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_u128\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_&\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_return\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_self\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_Self\n | ^" + - "Error [EPAR0370009]: unexpected string: expected 'ident', got '0'\n --> test:1:3\n |\n 1 | x.0_true\n | ^" + - "Error [EPAR0370009]: unexpected string: expected '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.out b/tests/expectations/parser/parser/unreachable/equality_and_order_expression.out new file mode 100644 index 0000000000..23a140dc16 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/equality_and_order_expression.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 [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 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.out b/tests/expectations/parser/parser/unreachable/expect_ident.out new file mode 100644 index 0000000000..4ce79a4fda --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/expect_ident.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 [EPAR0370005]: expected ; -- got ':'\n --> test:1:2\n |\n 1 | x::&\n | ^" + - "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.out b/tests/expectations/parser/parser/unreachable/math_op_fail.out new file mode 100644 index 0000000000..352fa81524 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/math_op_fail.out @@ -0,0 +1,64 @@ +--- +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 [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 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 | ^" + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x;=b;\n | ^^" + - "Error [EPAR0370009]: unexpected string: expected '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:3\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 [EPAR0370005]: expected ; -- got '&'\n --> test:1:2\n |\n 1 | x&=b;\n | ^" + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x==b;\n | ^^^^^" + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x!=b;\n | ^^^^^" + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x<=b;\n | ^^^^^" + - "Error [EPAR0370041]: Expression statements are no longer supported.\n --> test:1:1\n |\n 1 | x>=b;\n | ^^^^^" diff --git a/tests/expectations/parser/parser/unreachable/math_op_pass.out b/tests/expectations/parser/parser/unreachable/math_op_pass.out new file mode 100644 index 0000000000..bb61e84671 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/math_op_pass.out @@ -0,0 +1,438 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Eq + span: + lo: 12 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Neq + span: + lo: 12 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Gt + span: + lo: 12 + hi: 17 + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Ge + span: + lo: 12 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Lt + span: + lo: 12 + hi: 17 + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":17,\\\"hi\\\":18}\"}" + op: Le + span: + lo: 12 + hi: 18 + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Binary: + left: + Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}" + right: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}" + op: Gt + span: + lo: 12 + hi: 17 + span: + lo: 0 + hi: 17 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x_\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" + accesses: [] + span: + lo: 0 + hi: 2 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + span: + lo: 0 + hi: 4 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xconsole\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":8}\"}" + accesses: [] + span: + lo: 0 + hi: 8 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}" + span: + lo: 0 + hi: 10 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xconst\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" + accesses: [] + span: + lo: 0 + hi: 6 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + span: + lo: 0 + hi: 8 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xlet\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + accesses: [] + span: + lo: 0 + hi: 4 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xfor\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + accesses: [] + span: + lo: 0 + hi: 4 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xif\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + accesses: [] + span: + lo: 0 + hi: 3 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 0 + hi: 5 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xelse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + accesses: [] + span: + lo: 0 + hi: 5 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + accesses: [] + span: + lo: 0 + hi: 3 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 0 + hi: 5 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + accesses: [] + span: + lo: 0 + hi: 4 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + accesses: [] + span: + lo: 0 + hi: 4 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + accesses: [] + span: + lo: 0 + hi: 4 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xi128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + accesses: [] + span: + lo: 0 + hi: 5 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu8\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":3}\"}" + accesses: [] + span: + lo: 0 + hi: 3 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 0 + hi: 5 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu16\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + accesses: [] + span: + lo: 0 + hi: 4 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu32\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + accesses: [] + span: + lo: 0 + hi: 4 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu64\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":4}\"}" + accesses: [] + span: + lo: 0 + hi: 4 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}" + span: + lo: 0 + hi: 6 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xu128\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + accesses: [] + span: + lo: 0 + hi: 5 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xreturn\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":7}\"}" + accesses: [] + span: + lo: 0 + hi: 7 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}" + span: + lo: 0 + hi: 9 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xtrue\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":5}\"}" + accesses: [] + span: + lo: 0 + hi: 5 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}" + span: + lo: 0 + hi: 7 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"xfalse\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":6}\"}" + accesses: [] + span: + lo: 0 + hi: 6 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}" + span: + lo: 0 + hi: 8 + - Assign: + operation: Assign + assignee: + identifier: "{\"name\":\"x0\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":2}\"}" + accesses: [] + span: + lo: 0 + hi: 2 + value: + Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":4}\"}" + span: + lo: 0 + hi: 4 diff --git a/tests/expectations/parser/parser/unreachable/postfix_fail.out b/tests/expectations/parser/parser/unreachable/postfix_fail.out new file mode 100644 index 0000000000..fed5d32151 --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/postfix_fail.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.out b/tests/expectations/parser/parser/unreachable/postfix_pass.out new file mode 100644 index 0000000000..e988e32eaa --- /dev/null +++ b/tests/expectations/parser/parser/unreachable/postfix_pass.out @@ -0,0 +1,379 @@ +--- +namespace: ParseStatement +expectation: Pass +outputs: + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aimport\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":19}\"}" + span: + lo: 0 + hi: 19 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"a_\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":14}\"}" + span: + lo: 0 + hi: 14 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aas\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aconsole\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":20}\"}" + span: + lo: 0 + hi: 20 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aconst\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":18}\"}" + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"alet\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"afor\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aif\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aelse\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai8\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai16\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai32\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai64\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"ai128\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au8\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":15}\"}" + span: + lo: 0 + hi: 15 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au16\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au32\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au64\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}" + span: + lo: 0 + hi: 16 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"au128\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"areturn\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":19}\"}" + span: + lo: 0 + hi: 19 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aself\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"aSelf\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"atrue\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":17}\"}" + span: + lo: 0 + hi: 17 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"afalse\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":18}\"}" + span: + lo: 0 + hi: 18 + - Definition: + declaration_type: Let + variable_names: + - mutable: true + identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}" + span: + lo: 4 + hi: 5 + type_: + IntegerType: U8 + value: + Identifier: "{\"name\":\"a0\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":14}\"}" + span: + lo: 0 + hi: 14 diff --git a/tests/test-framework/src/runner.rs b/tests/test-framework/src/runner.rs index 48388e7f58..ad2dbb2090 100644 --- a/tests/test-framework/src/runner.rs +++ b/tests/test-framework/src/runner.rs @@ -113,21 +113,19 @@ impl TestCases { let mut configs = Vec::new(); self.tests = find_tests(&self.path_prefix.clone()) - .filter(|(path, content)| { - let config = match extract_test_config(content) { - None => { - self.fail_categories.push(TestFailure { - path: path.to_str().unwrap_or("").to_string(), - errors: vec![TestError::MissingTestConfig], - }); - return true; - } - Some(cfg) => cfg, - }; - - let res = additional_check(&config); - configs.push(config); - res + .filter(|(path, content)| match extract_test_config(content) { + None => { + self.fail_categories.push(TestFailure { + path: path.to_str().unwrap_or("").to_string(), + errors: vec![TestError::MissingTestConfig], + }); + true + } + Some(cfg) => { + let res = additional_check(&cfg); + configs.push(cfg); + res + } }) .collect(); @@ -154,13 +152,11 @@ impl TestCases { let content = &content[end_of_header + 2..]; output.push(process(self, (path, content, &test_name, config))); - - std::env::remove_var("LEO_TESTFRAMEWORK"); } output } - fn clear_expectations(&self, path: &Path, expectation_category: &str) -> (PathBuf, Option) { + fn load_expectations(&self, path: &Path, expectation_category: &str) -> (PathBuf, Option) { let test_dir = [env!("CARGO_MANIFEST_DIR"), "../../tests/"].iter().collect::(); let relative_path = path.strip_prefix(&test_dir).expect("path error for test"); let expectation_path = test_dir @@ -200,7 +196,7 @@ pub fn run_tests(runner: &T, expectation_category: &str) { None => return, }; - let (expectation_path, expectations) = cases.clear_expectations(path, expectation_category); + let (expectation_path, expectations) = cases.load_expectations(path, expectation_category); let tests = match namespace.parse_type() { ParseType::Line => crate::fetch::split_tests_one_line(content) @@ -267,6 +263,44 @@ pub fn run_tests(runner: &T, expectation_category: &str) { }) } }); + + if !cases.fail_categories.is_empty() { + for (i, fail) in cases.fail_categories.iter().enumerate() { + println!( + "\n\n-----------------TEST #{} FAILED (and shouldn't have)-----------------", + i + 1 + ); + println!("File: {}", fail.path); + for error in &fail.errors { + println!("{}", error); + } + } + panic!( + "failed {}/{} tests in {}/{} categories", + pass_tests, + fail_tests + pass_tests, + cases.fail_categories.len(), + cases.fail_categories.len() + pass_categories + ); + } else { + for (path, new_expectation) in outputs { + std::fs::create_dir_all(path.parent().unwrap()).expect("failed to make test expectation parent directory"); + std::fs::write( + &path, + serde_yaml::to_string(&new_expectation).expect("failed to serialize expectation yaml"), + ) + .expect("failed to write expectation file"); + } + println!( + "passed {}/{} tests in {}/{} categories", + pass_tests, + fail_tests + pass_tests, + pass_categories, + pass_categories + ); + } + + std::env::remove_var("LEO_TESTFRAMEWORK"); } /// returns (name, content) for all benchmark samples