test(cli): Verify some Julia terms

This commit is contained in:
Ed Page 2023-10-16 20:40:15 -05:00
parent d8ac870213
commit a2777f710b
2 changed files with 33 additions and 1 deletions

View 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";

View file

@ -1,4 +1,30 @@
bin.name = "typos" bin.name = "typos"
stdin = "" 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 = "" stderr = ""
status.code = 2