diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-05-08 19:02:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-08 19:02:17 +0100 |
commit | f7ecf3f47a22de588c241cd17d75331875097110 (patch) | |
tree | d75173623b49f821f5581c1a298eb848a1f10625 /test/handler | |
parent | 7541a40859040d4cd2a5d504cc41ccb1237013b4 (diff) | |
parent | 3bc07b482bfae9211f96b3a737650fc4987536cb (diff) | |
download | ale-f7ecf3f47a22de588c241cd17d75331875097110.zip |
Merge pull request #1555 from BobuSumisu/nasm-linter
Added NASM assembly linter
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_nasm_handler.vader | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/handler/test_nasm_handler.vader b/test/handler/test_nasm_handler.vader new file mode 100644 index 00000000..9c7d9650 --- /dev/null +++ b/test/handler/test_nasm_handler.vader @@ -0,0 +1,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'" + \ ]) |