mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 17:45:10 +02:00
test: Show countr behavior
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
int main() {
|
||||
uint8 i = 0;
|
||||
std::countr_one(i);
|
||||
return 0;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user