summaryrefslogtreecommitdiff
path: root/test/handler/test_llvm_mc_handler.vader
blob: e38ca304947239abc00d035b670ed30a6655ce64 (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
Before:
  runtime ale_linters/asm/llvm_mc.vim

After:
  call ale#linter#Reset()

Execute(The asm llvm-mc handler should parse lines correctly):

  AssertEqual
  \ [
  \    {
  \      'lnum': 10,
  \      'col' : 15,
  \      'text': "invalid operand for instruction",
  \      'type': 'E',
  \    },
  \    {
  \      'lnum': 11,
  \      'col' : 2,
  \      'text': "invalid instruction mnemonic 'lpaq'",
  \      'type': 'E',
  \    },
  \ ],
  \ ale_linters#asm#llvm_mc#Handle(357, [
  \   "xorq %rbp, %rbp",
  \   "{standard_input}:10:15: error: invalid operand for instruction",
  \   "{standard input}:11:2: error: invalid instruction mnemonic 'lpaq'",
  \ ])