summaryrefslogtreecommitdiff
path: root/test/handler/test_asm_handler.vader
blob: 7cee77837aacf0b081dfb9de4d7480c0f0e6bedd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Execute(The asm GCC handler should parse lines from GCC 6.3.1 correctly):
  runtime ale_linters/asm/gcc.vim

  AssertEqual
  \ [
  \    {
  \      'bufnr': 357,
  \      'lnum': 38,
  \      'vcol': 0,
  \      'col': 0,
  \      'text': "too many memory references for `mov'",
  \      'type': 'E',
  \      'nr': -1,
  \    },
  \    {
  \      'bufnr': 357,
  \      'lnum': 42,
  \      'vcol': 0,
  \      'col': 0,
  \      'text': "incorrect register `%ax' used with `l' suffix",
  \      'type': 'E',
  \      'nr': -1,
  \    },
  \ ],
  \ ale_linters#asm#gcc#Handle(357, [
  \   "{standard input}: Assembler messages:",
  \   "{standard_input}:38: Error: too many memory references for `mov'",
  \   "{standard input}:42: Error: incorrect register `%ax' used with `l' suffix",
  \ ])

After:
  call ale#linter#Reset()