mirror of
https://github.com/amix/vimrc
synced 2024-12-25 19:33:08 +00:00
16 lines
377 B
VimL
16 lines
377 B
VimL
|
let s:suite = themis#suite('error')
|
||
|
let s:assert = themis#helper('assert')
|
||
|
|
||
|
function! s:message() abort
|
||
|
redir => messages
|
||
|
silent! messages
|
||
|
redir END
|
||
|
return split(messages, '\n')[-1]
|
||
|
endfunction
|
||
|
|
||
|
function! s:suite.error()
|
||
|
let message = 'An error occurred.'
|
||
|
call lightline#error(message)
|
||
|
call s:assert.equals(s:message(), 'lightline.vim: ' . message)
|
||
|
endfunction
|