mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 09:01:04 -05:00
test: Add e2e test for multiwidth characters
This commit is contained in:
parent
e096eb2095
commit
d34c8e64c3
3 changed files with 38 additions and 0 deletions
5
tests/cmd/stdin-failure-multiwidth.stdin
Normal file
5
tests/cmd/stdin-failure-multiwidth.stdin
Normal file
|
@ -0,0 +1,5 @@
|
|||
한 Apropriate world
|
||||
한 Apropriate world
|
||||
😵💫 Apropriate world
|
||||
👁️🗨️ Apropriate world
|
||||
Apropriate world
|
30
tests/cmd/stdin-failure-multiwidth.stdout
Normal file
30
tests/cmd/stdin-failure-multiwidth.stdout
Normal file
|
@ -0,0 +1,30 @@
|
|||
error: `Apropriate` should be `Appropriate`
|
||||
--> -:1:2
|
||||
|
|
||||
1 | 한 Apropriate world
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
error: `Apropriate` should be `Appropriate`
|
||||
--> -:2:2
|
||||
|
|
||||
2 | 한 Apropriate world
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
error: `Apropriate` should be `Appropriate`
|
||||
--> -:3:2
|
||||
|
|
||||
3 | 😵💫 Apropriate world
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
error: `Apropriate` should be `Appropriate`
|
||||
--> -:4:2
|
||||
|
|
||||
4 | 👁️🗨️ Apropriate world
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
error: `Apropriate` should be `Appropriate`
|
||||
--> -:5:1
|
||||
|
|
||||
5 | Apropriate world
|
||||
| ^^^^^^^^^^
|
||||
|
|
3
tests/cmd/stdin-failure-multiwidth.toml
Normal file
3
tests/cmd/stdin-failure-multiwidth.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
bin.name = "typos"
|
||||
args = "-"
|
||||
status.code = 2
|
Loading…
Reference in a new issue