mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
test(cli): Prevent false-positive regressions
This commit is contained in:
parent
78a3c66d00
commit
9e01ccbd3e
2 changed files with 13 additions and 0 deletions
1
crates/typos-cli/tests/cmd/false-positives.in/README.md
Normal file
1
crates/typos-cli/tests/cmd/false-positives.in/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
add-ons should not be corrected to add-owns
|
12
crates/typos-cli/tests/cmd/false-positives.toml
Normal file
12
crates/typos-cli/tests/cmd/false-positives.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
bin.name = "typos"
|
||||
stdin = ""
|
||||
stdout = """
|
||||
error: `ons` should be `owns`
|
||||
--> ./README.md:1:5
|
||||
|
|
||||
1 | add-ons should not be corrected to add-owns
|
||||
| ^^^
|
||||
|
|
||||
"""
|
||||
stderr = ""
|
||||
status = "failed"
|
Loading…
Reference in a new issue