mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
test(cmd): Show binary exclude bug
This commit is contained in:
parent
598daf1da6
commit
b33ced2143
2 changed files with 13 additions and 2 deletions
3
crates/typos-cli/tests/cmd/force-exclude.in/binary
Normal file
3
crates/typos-cli/tests/cmd/force-exclude.in/binary
Normal file
|
@ -0,0 +1,3 @@
|
|||
%PDF
|
||||
|
||||
hello
|
|
@ -1,5 +1,13 @@
|
|||
bin.name = "typos"
|
||||
args = "file.ignore ignore/file parent/ignore/file --force-exclude"
|
||||
args = "file.ignore ignore/file parent/ignore/file binary --force-exclude"
|
||||
stdin = ""
|
||||
stdout = ""
|
||||
stdout = """
|
||||
error: `hello` should be `goodbye`
|
||||
--> binary:3:1
|
||||
|
|
||||
3 | hello
|
||||
| ^^^^^
|
||||
|
|
||||
"""
|
||||
stderr = ""
|
||||
status.code = 2
|
||||
|
|
Loading…
Reference in a new issue