From 9e01ccbd3ebadd1ee3993e580808d27ad371fc71 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 19 May 2023 08:11:14 -0500 Subject: [PATCH] test(cli): Prevent false-positive regressions --- .../typos-cli/tests/cmd/false-positives.in/README.md | 1 + crates/typos-cli/tests/cmd/false-positives.toml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 crates/typos-cli/tests/cmd/false-positives.in/README.md create mode 100644 crates/typos-cli/tests/cmd/false-positives.toml diff --git a/crates/typos-cli/tests/cmd/false-positives.in/README.md b/crates/typos-cli/tests/cmd/false-positives.in/README.md new file mode 100644 index 0000000..f16cfc8 --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/README.md @@ -0,0 +1 @@ +add-ons should not be corrected to add-owns diff --git a/crates/typos-cli/tests/cmd/false-positives.toml b/crates/typos-cli/tests/cmd/false-positives.toml new file mode 100644 index 0000000..8f1381e --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.toml @@ -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"