summaryrefslogtreecommitdiff
path: root/test/handler/test_scarb_handler.vader
blob: 96c5f7652dfd6783e8037252598d1a80d890edc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Before:
  runtime ale_linters/cairo/scarb.vim

After:
  call ale#linter#Reset()

Execute(Check scarb output parsing):
  AssertEqual
  \ [
  \   {
  \     'lnum': 40,
  \     'col': 48,
  \     'text': 'Skipped tokens. Expected: Const/Module/Use/FreeFunction/ExternFunction/ExternType/Trait/Impl/Struct/Enum/TypeAlias/InlineMacro or an attribute.',
  \     'type': 'E',
  \   },
  \ ],
  \ ale#handlers#cairo#HandleCairoErrors(bufnr(''), [
  \   'error: Skipped tokens. Expected: Const/Module/Use/FreeFunction/ExternFunction/ExternType/Trait/Impl/Struct/Enum/TypeAlias/InlineMacro or an attribute.',
  \   '  --> /path/to/file.cairo:40:48',
  \ ])