From 56df0bd8d66ef3cc9f4c7e99f0b228cc5ff8dd47 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 16 Apr 2024 11:36:40 -0500 Subject: [PATCH] test(dict): Show dBA behavior --- .../typos-cli/tests/cmd/false-positives.in/sample.txt | 1 + crates/typos-cli/tests/cmd/false-positives.toml | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 crates/typos-cli/tests/cmd/false-positives.in/sample.txt diff --git a/crates/typos-cli/tests/cmd/false-positives.in/sample.txt b/crates/typos-cli/tests/cmd/false-positives.in/sample.txt new file mode 100644 index 0000000..be21ae4 --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/sample.txt @@ -0,0 +1 @@ +Audio volume: 23.6 dBA diff --git a/crates/typos-cli/tests/cmd/false-positives.toml b/crates/typos-cli/tests/cmd/false-positives.toml index 324f41d..d966f6a 100644 --- a/crates/typos-cli/tests/cmd/false-positives.toml +++ b/crates/typos-cli/tests/cmd/false-positives.toml @@ -1,4 +1,12 @@ bin.name = "typos" stdin = "" -stdout = "" +stdout = """ +error: `BA` should be `BY`, `BE` + --> ./sample.txt:1:21 + | +1 | Audio volume: 23.6 dBA + | ^^ + | +""" stderr = "" +status.code = 2