From b33ced21437431cbfa1beeaea6e6249cf79968b8 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 23 Oct 2024 05:08:49 -0500 Subject: [PATCH] test(cmd): Show binary exclude bug --- crates/typos-cli/tests/cmd/force-exclude.in/binary | 3 +++ crates/typos-cli/tests/cmd/force-exclude.toml | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 crates/typos-cli/tests/cmd/force-exclude.in/binary 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