mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-24 18:10:56 -05:00
test: Show countr behavior
This commit is contained in:
parent
3ddcf00482
commit
de9928a5f8
2 changed files with 14 additions and 1 deletions
5
crates/typos-cli/tests/cmd/false-positives.in/sample.cpp
Normal file
5
crates/typos-cli/tests/cmd/false-positives.in/sample.cpp
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
int main() {
|
||||||
|
uint8 i = 0;
|
||||||
|
std::countr_one(i);
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -1,4 +1,12 @@
|
||||||
bin.name = "typos"
|
bin.name = "typos"
|
||||||
stdin = ""
|
stdin = ""
|
||||||
stdout = ""
|
stdout = """
|
||||||
|
error: `countr` should be `counter`, `contour`, `country`, `county`
|
||||||
|
--> ./sample.cpp:3:10
|
||||||
|
|
|
||||||
|
3 | std::countr_one(i);
|
||||||
|
| ^^^^^^
|
||||||
|
|
|
||||||
|
"""
|
||||||
stderr = ""
|
stderr = ""
|
||||||
|
status.code = 2
|
||||||
|
|
Loading…
Reference in a new issue