diff options
author | w0rp <w0rp@users.noreply.github.com> | 2017-03-27 12:32:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-27 12:32:42 +0100 |
commit | 8ca82af4ab9e1d95f8b577eba68f2b443b7dba07 (patch) | |
tree | 27f3d011ab778cb963f7489501bd70a8151183d1 /test | |
parent | c467a075123c14bbdde8abfd38d03edd4e285168 (diff) | |
parent | d84d91ff35cf2852556c10a6bed6c3979348c507 (diff) | |
download | ale-8ca82af4ab9e1d95f8b577eba68f2b443b7dba07.zip |
Merge pull request #414 from lucaskolstad/add_asm_linter
Add support for ASM files using GCC
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_asm_handler.vader | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/handler/test_asm_handler.vader b/test/handler/test_asm_handler.vader new file mode 100644 index 00000000..7cee7783 --- /dev/null +++ b/test/handler/test_asm_handler.vader @@ -0,0 +1,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() |