diff --git a/crates/typos-cli/tests/cmd/false-positives.in/sample.cpp b/crates/typos-cli/tests/cmd/false-positives.in/sample.cpp new file mode 100644 index 0000000..40455b1 --- /dev/null +++ b/crates/typos-cli/tests/cmd/false-positives.in/sample.cpp @@ -0,0 +1,5 @@ +int main() { + uint8 i = 0; + std::countr_one(i); + return 0; +} diff --git a/crates/typos-cli/tests/cmd/false-positives.toml b/crates/typos-cli/tests/cmd/false-positives.toml index 324f41d..0df3d54 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: `countr` should be `counter`, `contour`, `country`, `county` + --> ./sample.cpp:3:10 + | +3 | std::countr_one(i); + | ^^^^^^ + | +""" stderr = "" +status.code = 2