From 230710374b5d5759120db76571140ced47619262 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Mon, 26 Aug 2024 09:54:12 -0500 Subject: [PATCH] test(cli): Verify locale false positives We can't test much more until we have a way of dealing with `--no-default-features` in tests --- crates/typos-cli/tests/cmd/en-us.in/README.md | 4 ++++ crates/typos-cli/tests/cmd/en-us.in/_typos.toml | 2 ++ crates/typos-cli/tests/cmd/en-us.toml | 4 ++++ 3 files changed, 10 insertions(+) create mode 100644 crates/typos-cli/tests/cmd/en-us.in/README.md create mode 100644 crates/typos-cli/tests/cmd/en-us.in/_typos.toml create mode 100644 crates/typos-cli/tests/cmd/en-us.toml diff --git a/crates/typos-cli/tests/cmd/en-us.in/README.md b/crates/typos-cli/tests/cmd/en-us.in/README.md new file mode 100644 index 000000000..8acf91a30 --- /dev/null +++ b/crates/typos-cli/tests/cmd/en-us.in/README.md @@ -0,0 +1,4 @@ +We should not correct +- goes +- ret +- prev diff --git a/crates/typos-cli/tests/cmd/en-us.in/_typos.toml b/crates/typos-cli/tests/cmd/en-us.in/_typos.toml new file mode 100644 index 000000000..ee784ae04 --- /dev/null +++ b/crates/typos-cli/tests/cmd/en-us.in/_typos.toml @@ -0,0 +1,2 @@ +[default] +locale = "en-us" diff --git a/crates/typos-cli/tests/cmd/en-us.toml b/crates/typos-cli/tests/cmd/en-us.toml new file mode 100644 index 000000000..324f41d7f --- /dev/null +++ b/crates/typos-cli/tests/cmd/en-us.toml @@ -0,0 +1,4 @@ +bin.name = "typos" +stdin = "" +stdout = "" +stderr = ""