summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
author0xHyoga <0xhyoga@cygnusdao.finance>2023-06-27 11:44:20 +0200
committerGitHub <noreply@github.com>2023-06-27 18:44:20 +0900
commit5ab35a7a30e4ce000840f9caba3deabf86d2d030 (patch)
tree094b2dfbe8807e799059ac338aea10ac22812c20 /test/handler
parentc0eff9f2f18c5408596ce1e8e43dc7933340e514 (diff)
downloadale-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.vader20
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',
+ \ ])