diff --git a/crates/solidity/outputs/cargo/tests/src/cst_output/generated/string_literal.rs b/crates/solidity/outputs/cargo/tests/src/cst_output/generated/string_literal.rs index f91857854e..74d4c360b1 100644 --- a/crates/solidity/outputs/cargo/tests/src/cst_output/generated/string_literal.rs +++ b/crates/solidity/outputs/cargo/tests/src/cst_output/generated/string_literal.rs @@ -13,3 +13,13 @@ fn escape_newline_double_quote() -> Result<()> { fn escape_newline_single_quote() -> Result<()> { run("StringLiteral", "escape_newline_single_quote") } + +#[test] +fn tabs_double_quote() -> Result<()> { + run("StringLiteral", "tabs_double_quote") +} + +#[test] +fn tabs_single_quote() -> Result<()> { + run("StringLiteral", "tabs_single_quote") +} diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.4.11-failure.yml new file mode 100644 index 0000000000..5cd1c489e0 --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.4.11-failure.yml @@ -0,0 +1,17 @@ +# This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +Source: > + 1 │ "tab: " │ 0..7 + +Errors: # 1 total + - > + Error: Expected DoubleQuotedStringLiteral or SingleQuotedStringLiteral. + ╭─[crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/input.sol:1:1] + │ + 1 │ "tab: " + │ ────┬───── + │ ╰─────── Error occurred here. + ───╯ + +Tree: + - (SKIPPED): '"tab:\t"\n' # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.4.12-success.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.4.12-success.yml new file mode 100644 index 0000000000..bc7b64b701 --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.4.12-success.yml @@ -0,0 +1,11 @@ +# This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +Source: > + 1 │ "tab: " │ 0..7 + +Errors: [] + +Tree: + - (StringLiteral): # '"tab:\t"\n' (0..8) + - (variant꞉ DoubleQuotedStringLiteral): '"tab:\t"' # (0..7) + - (TrailingTrivia) ► (EndOfLine): "\n" # (7..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.7.0-failure.yml new file mode 100644 index 0000000000..5cd1c489e0 --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/generated/0.7.0-failure.yml @@ -0,0 +1,17 @@ +# This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +Source: > + 1 │ "tab: " │ 0..7 + +Errors: # 1 total + - > + Error: Expected DoubleQuotedStringLiteral or SingleQuotedStringLiteral. + ╭─[crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/input.sol:1:1] + │ + 1 │ "tab: " + │ ────┬───── + │ ╰─────── Error occurred here. + ───╯ + +Tree: + - (SKIPPED): '"tab:\t"\n' # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/input.sol b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/input.sol new file mode 100644 index 0000000000..94bcffd3bc --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_double_quote/input.sol @@ -0,0 +1 @@ +"tab: " diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.4.11-failure.yml new file mode 100644 index 0000000000..c93f60fe60 --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.4.11-failure.yml @@ -0,0 +1,17 @@ +# This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +Source: > + 1 │ 'tab: ' │ 0..7 + +Errors: # 1 total + - > + Error: Expected DoubleQuotedStringLiteral or SingleQuotedStringLiteral. + ╭─[crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/input.sol:1:1] + │ + 1 │ 'tab: ' + │ ────┬───── + │ ╰─────── Error occurred here. + ───╯ + +Tree: + - (SKIPPED): "'tab:\t'\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.4.12-success.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.4.12-success.yml new file mode 100644 index 0000000000..cfc09624ca --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.4.12-success.yml @@ -0,0 +1,11 @@ +# This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +Source: > + 1 │ 'tab: ' │ 0..7 + +Errors: [] + +Tree: + - (StringLiteral): # "'tab:\t'\n" (0..8) + - (variant꞉ SingleQuotedStringLiteral): "'tab:\t'" # (0..7) + - (TrailingTrivia) ► (EndOfLine): "\n" # (7..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.7.0-failure.yml b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.7.0-failure.yml new file mode 100644 index 0000000000..c93f60fe60 --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/generated/0.7.0-failure.yml @@ -0,0 +1,17 @@ +# This file is generated automatically by infrastructure scripts. Please don't edit by hand. + +Source: > + 1 │ 'tab: ' │ 0..7 + +Errors: # 1 total + - > + Error: Expected DoubleQuotedStringLiteral or SingleQuotedStringLiteral. + ╭─[crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/input.sol:1:1] + │ + 1 │ 'tab: ' + │ ────┬───── + │ ╰─────── Error occurred here. + ───╯ + +Tree: + - (SKIPPED): "'tab:\t'\n" # (0..8) diff --git a/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/input.sol b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/input.sol new file mode 100644 index 0000000000..f47543004c --- /dev/null +++ b/crates/solidity/testing/snapshots/cst_output/StringLiteral/tabs_single_quote/input.sol @@ -0,0 +1 @@ +'tab: '