diff options
author | 0xHyoga <0xhyoga@cygnusdao.finance> | 2023-06-27 11:44:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 18:44:20 +0900 |
commit | 5ab35a7a30e4ce000840f9caba3deabf86d2d030 (patch) | |
tree | 094b2dfbe8807e799059ac338aea10ac22812c20 /test/handler | |
parent | c0eff9f2f18c5408596ce1e8e43dc7933340e514 (diff) | |
download | ale-5ab35a7a30e4ce000840f9caba3deabf86d2d030.zip |
Update cairo linter to Cairo 1.0 (#4530)
* update cairo linter
* new cairo handler test
* add another handler instead of replacing
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_sierra_handler.vader | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/handler/test_sierra_handler.vader b/test/handler/test_sierra_handler.vader new file mode 100644 index 00000000..889ac49c --- /dev/null +++ b/test/handler/test_sierra_handler.vader @@ -0,0 +1,20 @@ +Before: + runtime ale_linters/cairo/sierra.vim + +After: + call ale#linter#Reset() + +Execute(The starknet handler should handle error messages correctly): + AssertEqual + \ [ + \ { + \ 'lnum': 16, + \ 'col': 25, + \ 'text': 'Plugin diagnostic: Type not found', + \ 'type': 'E', + \ }, + \ ], + \ ale_linters#cairo#sierra#Handle(bufnr(''), [ + \ 'error: Plugin diagnostic: Type not found', + \ ' --> lib.cairo:16:25', + \ ]) |