mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
test(cli): Verify some Julia terms
This commit is contained in:
parent
d8ac870213
commit
a2777f710b
2 changed files with 33 additions and 1 deletions
6
crates/typos-cli/tests/cmd/false-positives.in/sample.jl
Normal file
6
crates/typos-cli/tests/cmd/false-positives.in/sample.jl
Normal file
|
@ -0,0 +1,6 @@
|
|||
# one egal: ===
|
||||
# three egals: === === ===
|
||||
|
||||
# When we need to refer to keywords without saying them
|
||||
var modul = "hello";
|
||||
var usig = "hello";
|
|
@ -1,4 +1,30 @@
|
|||
bin.name = "typos"
|
||||
stdin = ""
|
||||
stdout = ""
|
||||
stdout = """
|
||||
error: `egal` should be `equal`
|
||||
--> ./sample.jl:1:7
|
||||
|
|
||||
1 | # one egal: ===
|
||||
| ^^^^
|
||||
|
|
||||
error: `egals` should be `equals`
|
||||
--> ./sample.jl:2:9
|
||||
|
|
||||
2 | # three egals: === === ===
|
||||
| ^^^^^
|
||||
|
|
||||
error: `modul` should be `module`
|
||||
--> ./sample.jl:5:5
|
||||
|
|
||||
5 | var modul = \"hello\";
|
||||
| ^^^^^
|
||||
|
|
||||
error: `usig` should be `using`
|
||||
--> ./sample.jl:6:5
|
||||
|
|
||||
6 | var usig = \"hello\";
|
||||
| ^^^^
|
||||
|
|
||||
"""
|
||||
stderr = ""
|
||||
status.code = 2
|
||||
|
|
Loading…
Reference in a new issue