test(cli): Verify disallowed functionality

This commit is contained in:
Ed Page 2023-08-09 08:15:05 -05:00
parent 6d31a7ef84
commit 3f41a6791c
3 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,2 @@
[default.extend-identifiers]
hello = ""

View file

@ -0,0 +1 @@
hello `hello`

View file

@ -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 = ""