test(cmd): Show binary exclude bug

This commit is contained in:
Ed Page 2024-10-23 05:08:49 -05:00
parent 598daf1da6
commit b33ced2143
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,3 @@
%PDF
hello

View file

@ -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