Skip to content

Commit

Permalink
test(cli): Prevent false-positive regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 19, 2023
1 parent 78a3c66 commit 9e01ccb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/typos-cli/tests/cmd/false-positives.in/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add-ons should not be corrected to add-owns
12 changes: 12 additions & 0 deletions crates/typos-cli/tests/cmd/false-positives.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 9e01ccb

Please sign in to comment.