install.fairie/dotfiles/.vim/plugged/ale/test/handler/test_ada_gcc_handler.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

36 lines
848 B
Text

Before:
runtime ale_linters/ada/gcc.vim
After:
call ale#linter#Reset()
Execute(The gcc handler for Ada should parse input correctly):
AssertEqual
\ [
\ {
\ 'bufnr': 0,
\ 'lnum': 8,
\ 'col': 5,
\ 'type': 'W',
\ 'text': 'variable "X" is assigned but never read',
\ },
\ {
\ 'bufnr': 0,
\ 'lnum': 6,
\ 'col': 22,
\ 'type': 'E',
\ 'text': 'type definition expected',
\ },
\ {
\ 'bufnr': 0,
\ 'lnum': 8,
\ 'col': 9,
\ 'type': 'E',
\ 'text': 'aspect specifications not allowed here',
\ },
\ ],
\ ale_linters#ada#gcc#Handle(0, [
\ 'foobar.adb:8:05: warning: variable "X" is assigned but never read',
\ 'foobar.ads:6:22: type definition expected',
\ 'foobar.ads:8:09: aspect specifications not allowed here',
\ ])