File: test_nasm_handler.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (30 lines) | stat: -rw-r--r-- 820 bytes parent folder | download | duplicates (3)
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
Before:
  runtime ale_linters/nasm/nasm.vim

After:
  call ale#linter#Reset()

Execute(The nasm handler should parse GCC style output from nasm correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 2,
  \     'text': "label alone on a line without a colon might be in error",
  \     'type': 'W',
  \   },
  \   {
  \     'lnum': 4,
  \     'text': "invalid combination of opcode and operands",
  \     'type': 'E',
  \   },
  \   {
  \     'lnum': 7,
  \     'text': "unable to open include file `bar.asm'",
  \     'type': 'E',
  \   },
  \ ],
  \ ale_linters#nasm#nasm#Handle(bufnr(''), [
  \   "tmp.asm:2: warning: label alone on a line without a colon might be in error",
  \   "tmp.asm:4: error: invalid combination of opcode and operands",
  \   "tmp.asm:7: fatal: unable to open include file `bar.asm'"
  \ ])