mirror of
https://github.com/crate-ci/typos.git
synced 2026-10-17 09:35:11 +02:00
test(cli): Verify disallowed functionality
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
[default.extend-identifiers]
|
||||
hello = ""
|
||||
@@ -0,0 +1 @@
|
||||
hello `hello`
|
||||
@@ -0,0 +1,17 @@
|
||||
bin.name = "typos"
|
||||
stdin = ""
|
||||
stdout = """
|
||||
error: `hello` is disallowed
|
||||
--> ./file:1:1
|
||||
|
|
||||
1 | hello `hello`
|
||||
| ^^^^^
|
||||
|
|
||||
error: `hello` is disallowed
|
||||
--> ./file:1:8
|
||||
|
|
||||
1 | hello `hello`
|
||||
| ^^^^^
|
||||
|
|
||||
"""
|
||||
stderr = ""
|
||||
Reference in New Issue
Block a user