Skip to content

Commit

Permalink
Fix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Mar 23, 2020
1 parent 070ac33 commit 94da094
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ doc/tags
.cache
.mypy_cache
.pytest_cache
vim-themis/
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -5,7 +5,7 @@ export THEMIS_HOME := ./vim-themis


install: vim-themis
pip install --upgrade -r test/requirements.txt
pip install --user --upgrade -r test/requirements.txt

lint:
vint --version
Expand Down
8 changes: 4 additions & 4 deletions test/autoload/denite/custom.vim
Expand Up @@ -9,13 +9,13 @@ endfunction

function! s:suite.custom_source() abort
let custom = denite#custom#_get().source
call s:assert.equals(denite#custom#source(
\ 'file_mru', 'foo', 'echo'), 1)
call s:assert.equals(denite#custom#source(
\ 'file_mru', 'matchers',
\ ['matcher/fuzzy', 'matcher/project_files']), 0)
call s:assert.equals(denite#custom#source(
\ 'file/rec', 'matchers', ['matcher/cpsm']), 0)
call s:assert.equals(denite#custom#source(
\ 'file/rec', {'matchers': ['matcher/cpsm']}), 0)
call s:assert.equals(denite#custom#source(
\ 'file_mru', 'default_action', 'echo'), 0)
call s:assert.equals(custom.file_mru.matchers,
Expand All @@ -27,10 +27,10 @@ endfunction

function! s:suite.custom_kind() abort
let custom = denite#custom#_get().kind
call s:assert.equals(denite#custom#kind(
\ 'file', 'foo', 'echo'), 1)
call s:assert.equals(denite#custom#kind(
\ 'file', 'default_action', 'echo'), 0)
call s:assert.equals(denite#custom#kind(
\ 'file', {'default_action': 'echo'}), 0)
call s:assert.equals(custom['file'].default_action, 'echo')
endfunction

Expand Down

0 comments on commit 94da094

Please sign in to comment.