Skip to content

Commit

Permalink
add tests for tabs in strings
Browse files Browse the repository at this point in the history
Originally fixed by NomicFoundation#800

Closes NomicFoundation#790
  • Loading branch information
OmarTawfik committed Feb 29, 2024
1 parent f1cdae6 commit 058b9be
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"tab: "
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'tab: '

0 comments on commit 058b9be

Please sign in to comment.