diff options
author | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:11:56 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:11:56 +0200 |
commit | 9931e0888b2419326ae10ebbfae532261c5c125f (patch) | |
tree | 7504be5daccbb7b7d1ea396754de47b11ed790e5 /vim/bundle/lightline.vim/test/concatenate.vim | |
parent | e573b3020c032400eed60b649a2cbf55266e6bb0 (diff) | |
download | myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.gz myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.tar.bz2 myconfigs-9931e0888b2419326ae10ebbfae532261c5c125f.zip |
Fix submodules
Diffstat (limited to 'vim/bundle/lightline.vim/test/concatenate.vim')
m--------- | vim/bundle/lightline.vim | 0 | ||||
-rw-r--r-- | vim/bundle/lightline.vim/test/concatenate.vim | 90 |
2 files changed, 0 insertions, 90 deletions
diff --git a/vim/bundle/lightline.vim b/vim/bundle/lightline.vim new file mode 160000 +Subproject 430ce2cb063b39a0c7950cafd617e333acb6759 diff --git a/vim/bundle/lightline.vim/test/concatenate.vim b/vim/bundle/lightline.vim/test/concatenate.vim deleted file mode 100644 index 6fd2723..0000000 --- a/vim/bundle/lightline.vim/test/concatenate.vim +++ /dev/null @@ -1,90 +0,0 @@ -let s:suite = themis#suite('concatenate') -let s:assert = themis#helper('assert') - -function! s:suite.before_each() - let g:lightline = { 'subseparator': { 'left': '>', 'right': '<' } } - call lightline#init() -endfunction - -function! s:suite.nil() - call s:assert.equals(lightline#concatenate([], 0), '') - call s:assert.equals(lightline#concatenate([], 1), '') -endfunction - -function! s:suite.one() - call s:assert.equals(lightline#concatenate(['foo'], 0), 'foo') - call s:assert.equals(lightline#concatenate(['foo'], 1), 'foo') -endfunction - -function! s:suite.two() - call s:assert.equals(lightline#concatenate(['foo', 'bar'], 0), 'foo > bar') - call s:assert.equals(lightline#concatenate(['foo', 'bar'], 1), 'foo < bar') -endfunction - -function! s:suite.three() - call s:assert.equals(lightline#concatenate(['foo', 'bar', 'baz'], 0), 'foo > bar > baz') - call s:assert.equals(lightline#concatenate(['foo', 'bar', 'baz'], 1), 'foo < bar < baz') -endfunction - -function! s:suite.one_empty() - call s:assert.equals(lightline#concatenate([''], 0), '') - call s:assert.equals(lightline#concatenate([''], 1), '') -endfunction - -function! s:suite.two_empty_left() - call s:assert.equals(lightline#concatenate(['', 'bar'], 0), 'bar') - call s:assert.equals(lightline#concatenate(['', 'bar'], 1), 'bar') -endfunction - -function! s:suite.two_empty_right() - call s:assert.equals(lightline#concatenate(['foo', ''], 0), 'foo') - call s:assert.equals(lightline#concatenate(['foo', ''], 1), 'foo') -endfunction - -function! s:suite.two_empty_both() - call s:assert.equals(lightline#concatenate(['', ''], 0), '') - call s:assert.equals(lightline#concatenate(['', ''], 1), '') -endfunction - -function! s:suite.three_empty_left() - call s:assert.equals(lightline#concatenate(['', 'bar', 'baz'], 0), 'bar > baz') - call s:assert.equals(lightline#concatenate(['', 'bar', 'baz'], 1), 'bar < baz') -endfunction - -function! s:suite.three_empty_middle() - call s:assert.equals(lightline#concatenate(['foo', '', 'baz'], 0), 'foo > baz') - call s:assert.equals(lightline#concatenate(['foo', '', 'baz'], 1), 'foo < baz') -endfunction - -function! s:suite.three_empty_right() - call s:assert.equals(lightline#concatenate(['foo', 'bar', ''], 0), 'foo > bar') - call s:assert.equals(lightline#concatenate(['foo', 'bar', ''], 1), 'foo < bar') -endfunction - -function! s:suite.three_empty_middle_right() - call s:assert.equals(lightline#concatenate(['foo', '', ''], 0), 'foo') - call s:assert.equals(lightline#concatenate(['foo', '', ''], 1), 'foo') -endfunction - -function! s:suite.three_empty_left_right() - call s:assert.equals(lightline#concatenate(['', 'bar', ''], 0), 'bar') - call s:assert.equals(lightline#concatenate(['', 'bar', ''], 1), 'bar') -endfunction - -function! s:suite.three_empty_left_middle() - call s:assert.equals(lightline#concatenate(['', '', 'baz'], 0), 'baz') - call s:assert.equals(lightline#concatenate(['', '', 'baz'], 1), 'baz') -endfunction - -function! s:suite.three_empty_all() - call s:assert.equals(lightline#concatenate(['', '', ''], 0), '') - call s:assert.equals(lightline#concatenate(['', '', ''], 1), '') -endfunction - -function! s:suite.keep_original() - let xs = ['', 'bar', ''] - call s:assert.equals(lightline#concatenate(xs, 0), 'bar') - call s:assert.equals(xs, ['', 'bar', '']) - call s:assert.equals(lightline#concatenate(xs, 1), 'bar') - call s:assert.equals(xs, ['', 'bar', '']) -endfunction |