Rewrite tests with vim-testify

This commit is contained in:
Dhruva Sagar
2023-03-01 07:22:48 +05:30
parent 9555a3e6e5
commit 7ec0b83dbd
37 changed files with 1241 additions and 862 deletions

View 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'))