mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
25 lines
852 B
VimL
25 lines
852 B
VimL
source t/config/options.vim
|
|
|
|
function! s:TestTablemodeEnable()
|
|
silent call tablemode#Enable()
|
|
call testify#assert#assert(b:table_mode_active)
|
|
endfunction
|
|
call testify#it('tablemode#Enable should work', function('s:TestTablemodeEnable'))
|
|
|
|
function! s:TestTablemodeDisable()
|
|
silent call tablemode#Disable()
|
|
call testify#assert#assert(!b:table_mode_active)
|
|
endfunction
|
|
call testify#it('tablemode#Disable should work', function('s:TestTablemodeDisable'))
|
|
|
|
function! s:TestTablemodeToggle()
|
|
if exists('b:table_mode_active')
|
|
call testify#assert#assert(!b:table_mode_active)
|
|
endif
|
|
silent call tablemode#Toggle()
|
|
call testify#assert#assert(b:table_mode_active)
|
|
silent call tablemode#Toggle()
|
|
call testify#assert#assert(!b:table_mode_active)
|
|
endfunction
|
|
call testify#it('tablemode#Toggle should work', function('s:TestTablemodeToggle'))
|