diff options
author | Atsuya Takagi <asoftonight@gmail.com> | 2021-01-02 15:42:38 +0900 |
---|---|---|
committer | Atsuya Takagi <asoftonight@gmail.com> | 2021-01-23 00:08:01 +0900 |
commit | 4ed520a2192cfee9b93f329e46a0a57c2bd2e771 (patch) | |
tree | 5dfa11d44b60f175dcedb833e3ae847953b1c181 /test | |
parent | a1e6df987c28dd3e0efb7422f4ad85ee3bb3bebc (diff) | |
download | ale-4ed520a2192cfee9b93f329e46a0a57c2bd2e771.zip |
add initial files
Diffstat (limited to 'test')
-rw-r--r-- | test/handler/test_vala_lint_handler.vader | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/handler/test_vala_lint_handler.vader b/test/handler/test_vala_lint_handler.vader new file mode 100644 index 00000000..cee8674a --- /dev/null +++ b/test/handler/test_vala_lint_handler.vader @@ -0,0 +1,37 @@ +Before: + runtime ale_linters/vala/vala_lint.vim + +After: + call ale#linter#Reset() + +Execute(The Vala-Lint handler should parse lines correctly): + AssertEqual + \ [ + \ { + \ 'lnum': 18, + \ 'col': 18, + \ 'text': 'Expected space before paren', + \ 'code': 'space-before-paren', + \ 'type': 'E', + \ }, + \ { + \ 'lnum': 64, + \ 'col': 37, + \ 'text': 'Expected space before paren', + \ 'code': 'space-before-paren', + \ 'type': 'E', + \ }, + \ { + \ 'lnum': 73, + \ 'col': 37, + \ 'text': 'Expected space before paren', + \ 'code': 'space-before-paren', + \ 'type': 'E', + \ }, + \ ], + \ ale_linters#vala#vala_lint#Handle(bufnr(''), [ + \ 'Application.vala', + \ ' 18.18 error Expected space before paren space-before-paren', + \ ' 64.37 error Expected space before paren space-before-paren', + \ ' 73.37 error Expected space before paren space-before-paren', + \ ]) |