mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
test(cli): Add reproduction case
This commit is contained in:
parent
548ac37a5d
commit
86c4c9fb4a
3 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
[default.extend-words]
|
||||||
|
"trailling" = "trailing"
|
1
crates/typos-cli/tests/cmd/extend-words-case.in/file.txt
Normal file
1
crates/typos-cli/tests/cmd/extend-words-case.in/file.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
public function noErrorOnTraillingSemicolonAndWhitespace(Connection $connection)
|
13
crates/typos-cli/tests/cmd/extend-words-case.toml
Normal file
13
crates/typos-cli/tests/cmd/extend-words-case.toml
Normal file
|
@ -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 = ""
|
Loading…
Reference in a new issue