mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-26 01:22:08 -05:00
test(config): Verify bad merge
This commit is contained in:
parent
84c8b30e06
commit
72c773aade
3 changed files with 27 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
[type.rust]
|
||||
check-filename = false
|
||||
|
||||
[default.extend-words]
|
||||
foo = "bar"
|
||||
|
||||
[files]
|
||||
extend-exclude = [
|
||||
"_typos.toml"
|
||||
]
|
1
crates/typos-cli/tests/cmd/extend-builtin-dict.in/foo.rs
Normal file
1
crates/typos-cli/tests/cmd/extend-builtin-dict.in/foo.rs
Normal file
|
@ -0,0 +1 @@
|
|||
flate2
|
16
crates/typos-cli/tests/cmd/extend-builtin-dict.toml
Normal file
16
crates/typos-cli/tests/cmd/extend-builtin-dict.toml
Normal file
|
@ -0,0 +1,16 @@
|
|||
bin.name = "typos"
|
||||
args = ""
|
||||
status.code = 2
|
||||
stdin = '''
|
||||
\n\n
|
||||
Destory
|
||||
'''
|
||||
stdout = """
|
||||
error: `flate` should be `flat`
|
||||
--> ./foo.rs:1:1
|
||||
|
|
||||
1 | flate2
|
||||
| ^^^^^
|
||||
|
|
||||
"""
|
||||
stderr = ""
|
Loading…
Reference in a new issue