diff --git a/autoload/spelunker/test/test_toggle.vim b/autoload/spelunker/test/test_toggle.vim index bede0d4..3a4ac03 100644 --- a/autoload/spelunker/test/test_toggle.vim +++ b/autoload/spelunker/test/test_toggle.vim @@ -9,13 +9,14 @@ let s:save_cpo = &cpo set cpo&vim function! spelunker#test#test_toggle#test() - call s:test_toggle() " test global toggle - call s:test_toggle_buffer() " test local toggle call s:test_is_enabled() call s:test_is_enabled_global() call s:test_is_enabled_buffer() - call s:force_enable() + call s:test_toggle() " test global toggle + call s:test_toggle_buffer() " test local toggle + + call s:force_enable_global() endfunction " toggle_mode @@ -31,14 +32,17 @@ function! s:test_toggle() " highlightがなくなっていることを確認 silent! call spelunker#toggle#toggle() + call assert_equal(1, spelunker#toggle#is_enabled()) + let l:result = getmatches() call assert_equal(1, len(l:result)) call assert_equal('SpelunkerSpellBad', l:result[0]['group']) call assert_equal('\v[A-Za-z]@