This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/handler/test_nasm_handler.vader

31 lines
820 B
Text
Raw Normal View History

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',
\ },
\ ],
2018-05-04 20:33:08 +00:00
\ 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'"
\ ])