1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:30:04 +08:00
SpaceVim/bundle/unite.vim/test/grep.vim
2020-06-13 14:06:35 +08:00

14 lines
463 B
VimL

let s:suite = themis#suite('parser')
let s:assert = themis#helper('assert')
function! s:suite.source() abort
call s:assert.equals(unite#sources#grep#parse(
\ 'foo:1:bar'), ['foo', '1', '0', 'bar'])
call s:assert.equals(unite#sources#grep#parse(
\ 'C:/foo:1:bar'), ['C:/foo', '1', '0', 'bar'])
call s:assert.equals(unite#sources#grep#parse(
\ 'C:/foo:1:0:bar'), ['C:/foo', '1', '0', 'bar'])
endfunction
" vim:foldmethod=marker:fen: