mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 02:20:58 -05:00
test(cli): Show existing O_WRONLY behavior
This commit is contained in:
parent
66a70abc40
commit
9f1d7017e2
2 changed files with 13 additions and 1 deletions
|
@ -1 +1,5 @@
|
|||
import os
|
||||
|
||||
from numpy.typing import NDArray # should work
|
||||
|
||||
print(os.O_WRONLY) # should work
|
||||
|
|
|
@ -1,4 +1,12 @@
|
|||
bin.name = "typos"
|
||||
stdin = ""
|
||||
stdout = ""
|
||||
stdout = """
|
||||
error: `WRONLY` should be `WRONGLY`
|
||||
--> ./sample.py:5:12
|
||||
|
|
||||
5 | print(os.O_WRONLY) # should work
|
||||
| ^^^^^^
|
||||
|
|
||||
"""
|
||||
stderr = ""
|
||||
status.code = 2
|
||||
|
|
Loading…
Reference in a new issue