mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 06:30:03 +08:00
14 lines
463 B
VimL
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:
|