Before:
Save g:ale_buffer_info
let g:ale_buffer_info[347] = {'loclist': [
\ {
\ 'bufnr': 347,
\ 'lnum': 1,
\ 'col': 10,
\ 'text': 'Missing semicolon. (semi)',
\ },
\ 'lnum': 2,
\ 'text': 'Infix operators must be spaced. (space-infix-ops)'
\ 'col': 15,
\ 'text': 'Missing radix parameter (radix)'
\]}
After:
Restore
Execute(Balloon messages should be shown for the correct lines):
AssertEqual
\ 'Missing semicolon. (semi)',
\ ale#balloon#MessageForPos(347, 1, 1)
Execute(Balloon messages should be shown for earlier columns):
\ 'Infix operators must be spaced. (space-infix-ops)',
\ ale#balloon#MessageForPos(347, 2, 1)
Execute(Balloon messages should be shown for later columns):
\ 'Missing radix parameter (radix)',
\ ale#balloon#MessageForPos(347, 2, 16)