test(cli): Consolidate files

This commit is contained in:
Ed Page 2023-03-17 23:30:24 -05:00
parent 797574c10a
commit 0eae00fee2
16 changed files with 147 additions and 73 deletions

View file

@ -1,2 +1,4 @@
bin.name = "typos"
status.code = 2
stdin = ""
stderr = ""

View file

@ -1,2 +0,0 @@
\n\n
Destory

View file

@ -1,2 +0,0 @@
\n\n
Destroy

View file

@ -1,3 +1,12 @@
bin.name = "typos"
args = "--write-changes -"
status.code = 0
stdin = '''
\n\n
Destory
'''
stdout = """
/n/n
Destroy
"""
stderr = ""

View file

@ -1,3 +1,43 @@
bin.name = "typos"
args = "../../README.md"
status.code = 2
stdin = ""
stdout = """
error: `Supress` should be `Suppress`
--> ../../README.md:78:19
|
78 | \"AttributeID.*Supress.*\",
| ^^^^^^^
|
error: `Supress` should be `Suppress`
--> ../../README.md:83:12
|
83 | AttributeIDSupressMenu = \"AttributeIDSupressMenu\"
| ^^^^^^^
|
error: `Supress` should be `Suppress`
--> ../../README.md:83:38
|
83 | AttributeIDSupressMenu = \"AttributeIDSupressMenu\"
| ^^^^^^^
|
error: `Teh` should be `The`
--> ../../README.md:86:30
|
86 | # Don't correct the surname \"Teh\"
| ^^^
|
error: `teh` should be `the`
--> ../../README.md:87:1
|
87 | teh = \"teh\"
| ^^^
|
error: `teh` should be `the`
--> ../../README.md:87:8
|
87 | teh = \"teh\"
| ^^^
|
"""
stderr = ""

View file

@ -1,3 +1,5 @@
bin.name = "typos"
args = "."
status.code = 2
stdin = ""
stderr = ""

View file

@ -1 +0,0 @@
Apropriate world

View file

@ -1 +0,0 @@
Appropriate world

View file

@ -1,2 +1,9 @@
bin.name = "typos"
args = "--write-changes -"
stdin = '''
Apropriate world
'''
stdout = """
Appropriate world
"""
stderr = ""

View file

@ -1,34 +0,0 @@
---
Korean character (NFC)
Grapheme clusters: 1, codepoints: 1, UnicodeWidthStr::width() == 2
한 Apropriate world
^^^^^^^^^^ highlight here
---
Korean character (NFD).
Grapheme clusters: 1, codepoints: 3, UnicodeWidthStr::width() == 2
한 Apropriate world
^^^^^^^^^^ highlight here
---
Eye in Speech Bubble Emoji (U+1F441 U+FE0F U+200D U+1F5E8 U+FE0F, Recommended Emoji ZWJ Sequences, v2.0)
Grapheme clusters: 1, codepoints: 5, UnicodeWidthStr::width() == 2 (Read NOTE: https://github.com/unicode-rs/unicode-width)
👁️‍🗨️ Apropriate world
^^^^^^^^^^ highlight here
---
Face with spiral eyes (U+1F635 U+200D U+1F4AB, Recommended Emoji ZWJ Sequence, v13.1)
Grapheme clusters: 1, codepoints: 3, UnicodeWidthStr::width() == 4 (Read NOTE: https://github.com/unicode-rs/unicode-width)
😵‍💫 Apropriate world
^^^^^^^^^^ highlight here
---
Horizontal tab (\t, U+09)
Grapheme clusters: 1, codepoints: 1, UnicodeWidthStr::width() == 0
Apropriate world
^^^^^^^^^^ highlight here

View file

@ -1,30 +0,0 @@
error: `Apropriate` should be `Appropriate`
--> -:5:3
|
5 | 한 Apropriate world
| ^^^^^^^^^^
|
error: `Apropriate` should be `Appropriate`
--> -:12:3
|
12 | 한 Apropriate world
| ^^^^^^^^^^
|
error: `Apropriate` should be `Appropriate`
--> -:19:3
|
19 | 👁️‍🗨️ Apropriate world
| ^^^^^^^^^^
|
error: `Apropriate` should be `Appropriate`
--> -:26:3
|
26 | 😵‍💫 Apropriate world
| ^^^^^^^^^^
|
error: `Apropriate` should be `Appropriate`
--> -:33:2
|
33 | Apropriate world
| ^^^^^^^^^^
|

View file

@ -1,3 +1,72 @@
bin.name = "typos"
args = "-"
status.code = 2
status.code = 2
stdin = '''
---
Korean character (NFC)
Grapheme clusters: 1, codepoints: 1, UnicodeWidthStr::width() == 2
Apropriate world
^^^^^^^^^^ highlight here
---
Korean character (NFD).
Grapheme clusters: 1, codepoints: 3, UnicodeWidthStr::width() == 2
Apropriate world
^^^^^^^^^^ highlight here
---
Eye in Speech Bubble Emoji (U+1F441 U+FE0F U+200D U+1F5E8 U+FE0F, Recommended Emoji ZWJ Sequences, v2.0)
Grapheme clusters: 1, codepoints: 5, UnicodeWidthStr::width() == 2 (Read NOTE: https://github.com/unicode-rs/unicode-width)
👁🗨 Apropriate world
^^^^^^^^^^ highlight here
---
Face with spiral eyes (U+1F635 U+200D U+1F4AB, Recommended Emoji ZWJ Sequence, v13.1)
Grapheme clusters: 1, codepoints: 3, UnicodeWidthStr::width() == 4 (Read NOTE: https://github.com/unicode-rs/unicode-width)
😵💫 Apropriate world
^^^^^^^^^^ highlight here
---
Horizontal tab (\t, U+09)
Grapheme clusters: 1, codepoints: 1, UnicodeWidthStr::width() == 0
Apropriate world
^^^^^^^^^^ highlight here
'''
stdout = """
error: `Apropriate` should be `Appropriate`
--> -:5:3
|
5 | Apropriate world
| ^^^^^^^^^^
|
error: `Apropriate` should be `Appropriate`
--> -:12:3
|
12 | Apropriate world
| ^^^^^^^^^^
|
error: `Apropriate` should be `Appropriate`
--> -:19:3
|
19 | 👁🗨 Apropriate world
| ^^^^^^^^^^
|
error: `Apropriate` should be `Appropriate`
--> -:26:3
|
26 | 😵💫 Apropriate world
| ^^^^^^^^^^
|
error: `Apropriate` should be `Appropriate`
--> -:33:2
|
33 | Apropriate world
| ^^^^^^^^^^
|
"""
stderr = ""

View file

@ -1 +0,0 @@
Apropriate world

View file

@ -1,3 +1,15 @@
bin.name = "typos"
args = "-"
status.code = 2
stdin = '''
Apropriate world
'''
stdout = """
error: `Apropriate` should be `Appropriate`
--> -:1:1
|
1 | Apropriate world
| ^^^^^^^^^^
|
"""
stderr = ""

View file

@ -1 +0,0 @@
Hello world

View file

@ -1,2 +1,7 @@
bin.name = "typos"
args = "-"
stdin = '''
Hello world
'''
stdout = ""
stderr = ""