X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/test/handler/test_appleswiftformat_handler.vader diff --git a/.vim/bundle/ale/test/handler/test_appleswiftformat_handler.vader b/.vim/bundle/ale/test/handler/test_appleswiftformat_handler.vader new file mode 100644 index 00000000..818bd9c5 --- /dev/null +++ b/.vim/bundle/ale/test/handler/test_appleswiftformat_handler.vader @@ -0,0 +1,28 @@ +Before: + runtime ale_linters/swift/appleswiftformat.vim + +After: + call ale#linter#Reset() + +Execute(The appleswiftformat handler should parse lines correctly): + AssertEqual + \ [ + \ { + \ 'lnum': 4, + \ 'col': 21, + \ 'type': 'W', + \ 'code': 'DoNotUseSemicolons', + \ 'text': 'remove '';'' and move the next statement to the new line', + \ }, + \ { + \ 'lnum': 3, + \ 'col': 12, + \ 'type': 'W', + \ 'code': 'Spacing', + \ 'text': 'remove 1 space' + \ }, + \ ], + \ ale_linters#swift#appleswiftformat#Handle(bufnr(''), [ + \ 'Sources/main.swift:4:21: warning: [DoNotUseSemicolons] remove '';'' and move the next statement to the new line', + \ 'Sources/main.swift:3:12: warning: [Spacing] remove 1 space', + \ ])