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