mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-10 20:13:46 -05:00
Rewrite tests with vim-testify
This commit is contained in:
24
t/autoload/tablemode_test.vim
Normal file
24
t/autoload/tablemode_test.vim
Normal file
@@ -0,0 +1,24 @@
|
||||
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'))
|
||||
Reference in New Issue
Block a user