diff --git a/crates/typos-cli/tests/cmd/force-exclude.in/binary b/crates/typos-cli/tests/cmd/force-exclude.in/binary new file mode 100644 index 0000000..e76a66f --- /dev/null +++ b/crates/typos-cli/tests/cmd/force-exclude.in/binary @@ -0,0 +1,3 @@ +%PDF + +hello diff --git a/crates/typos-cli/tests/cmd/force-exclude.toml b/crates/typos-cli/tests/cmd/force-exclude.toml index 4587740..22ecd95 100644 --- a/crates/typos-cli/tests/cmd/force-exclude.toml +++ b/crates/typos-cli/tests/cmd/force-exclude.toml @@ -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