Skip to content

Commit

Permalink
Parser snapshot cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
g-r-a-n-t committed Oct 1, 2021
1 parent 8f60f58 commit a5804e2
Show file tree
Hide file tree
Showing 91 changed files with 93 additions and 93 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(contract_bad_name), contracts::parse_contract_def, true,\n \"contract 1X:\\n x: u8\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(contract_const_fn), contracts::parse_contract_def,\n false, \"contract C:\\n const fn f():\\n pass\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(contract_const_pub), contracts::parse_contract_def,\n false, \"contract C:\\n const pub x: u8\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(contract_empty_body), module::parse_module, true,\n \"contract X:\\n \\n \\ncontract Y:\\n x: u8\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(contract_field_after_def), module::parse_module, false,\n r#\"\ncontract C:\n fn f():\n pass\n x: u8\n\"#)"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(contract_invalid_version_requirement),\n module::parse_module, true, r#\"\npragma 0.o\ncontract C:\n pass\n\"#)"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(contract_missing_version_requirement),\n module::parse_module, true, r#\"\npragma\ncontract C:\n pass\n\"#)"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(contract_pub_event), contracts::parse_contract_def,\n false, \"contract C:\\n pub event E:\\n x: u8\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(emit_bad_call), functions::parse_stmt, true,\n \"emit MyEvent(1)()\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(emit_expr), functions::parse_stmt, true, \"emit x + 1\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(emit_no_args), functions::parse_stmt, true, \"emit x\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(expr_bad_prefix), expressions::parse_expr, true,\n \"*x + 1\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(for_no_in), functions::parse_stmt, true,\n \"for x:\\n pass\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(if_no_body), functions::parse_stmt, true,\n \"if x:\\nelse:\\n x\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(import_bad_name), module::parse_simple_import, true,\n \"import x as 123\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(module_bad_stmt), module::parse_module, true,\n \"if x:\\n y\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: "err_string(stringify!(module_nonsense), module::parse_module, true, \"))\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/errors.rs
source: crates/parser/tests/cases/errors.rs
expression: err

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(empty_contract_def), contracts::parse_contract_def,\n r#\"contract Foo:\n pass\n\"#)"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(empty_event_def), types::parse_event_def,\n \"event Foo:\\n pass\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(empty_struct_def), types::parse_struct_def,\n r#\"struct S:\n pass\n\"#)"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(event_def), types::parse_event_def,\n \"event Foo:\\n x: address\\n idx y: u8\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_attr1), expressions::parse_expr, \"foo.bar[0][y]\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_attr2), expressions::parse_expr, \"a[x].b[y](1)\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_call1), expressions::parse_expr, \"foo()\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_call2), expressions::parse_expr, \"foo(1,2,x=3)\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_group), expressions::parse_expr, \"(1 + 2) * 3\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_hex1), expressions::parse_expr, \"0xbeefbeef\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_hex2), expressions::parse_expr, \"0xFEED1234\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_list), expressions::parse_expr, \"[]\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_list2), expressions::parse_expr, \"[x, y, z,]\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_num1), expressions::parse_expr, \"12345\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_num2), expressions::parse_expr, \"00001\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_string), expressions::parse_expr,\n r#\"\"hi \\tmom\\n\"\"#)"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_ternary), expressions::parse_expr,\n \"x + 1 if y + 2 else z + 3\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_tuple1), expressions::parse_expr, \"(1,)\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_tuple2), expressions::parse_expr, \"(1, 2, \\n 3)\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_tuple3), expressions::parse_expr,\n \"(1, (2 + 3), (3 * 4, 5))\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(expr_unit), expressions::parse_expr, \"()\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(import_simple), module::parse_simple_import,\n \"import foo as bar, baz, bing as bop\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(module_stmts), module::parse_module,\n r#\"\npragma 0.5.0\n\nimport foo as bar, baz as bum\n\ntype X = Map<u8, u16>\n\ncontract A:\n pub const x: u256 = 10\n\ncontract B:\n pub x: X\n\"#)"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_bit1), expressions::parse_expr, \"a & b >> c\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_bit2), expressions::parse_expr, \"a ^ b & c\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_bit3), expressions::parse_expr, \"a | b ^ c\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_bnot), expressions::parse_expr, \"~x\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_bool), expressions::parse_expr, \"a or b and c\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_math), expressions::parse_expr,\n \"a + b * -c ** d / e % f\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_neg), expressions::parse_expr, \"-x\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_not), expressions::parse_expr, \"x and not y\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(ops_shift), expressions::parse_expr, \"a << b >> c\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(pragma1), module::parse_pragma, \"pragma 0.1.0\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(pragma2), module::parse_pragma, \"pragma 0.1.0-alpha\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(pragma3), module::parse_pragma, \"pragma >= 1.2, < 1.5\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(stmt_assert_msg), functions::parse_stmt,\n \"assert x == y, z\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(stmt_assert_no_msg), functions::parse_stmt,\n \"assert x == y\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(stmt_aug_add), functions::parse_stmt, \"x += y\")"

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: parser/tests/cases/parse_ast.rs
source: crates/parser/tests/cases/parse_ast.rs
expression: "ast_string(stringify!(stmt_aug_and), functions::parse_stmt, \"x &= y\")"

---
Expand Down
Loading

0 comments on commit a5804e2

Please sign in to comment.