Skip to content

Commit

Permalink
test(cli): Add reproduction case
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 13, 2023
1 parent 548ac37 commit 86c4c9f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/typos-cli/tests/cmd/extend-words-case.in/_typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default.extend-words]
"trailling" = "trailing"
1 change: 1 addition & 0 deletions crates/typos-cli/tests/cmd/extend-words-case.in/file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public function noErrorOnTraillingSemicolonAndWhitespace(Connection $connection)
13 changes: 13 additions & 0 deletions crates/typos-cli/tests/cmd/extend-words-case.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
bin.name = "typos"
args = ""
status.code = 2
stdin = ""
stdout = """
error: `Trailling` should be `trailing`
--> ./file.txt:1:26
|
1 | public function noErrorOnTraillingSemicolonAndWhitespace(Connection $connection)
| ^^^^^^^^^
|
"""
stderr = ""

0 comments on commit 86c4c9f

Please sign in to comment.