mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-11 20:43:47 -05:00
Rewrite tests with vim-testify
This commit is contained in:
18
t/autoload/tablemode/table/add_border_test.vim
Normal file
18
t/autoload/tablemode/table/add_border_test.vim
Normal file
@@ -0,0 +1,18 @@
|
||||
source t/config/options.vim
|
||||
source t/utils.vim
|
||||
|
||||
let s:test_file = 't/fixtures/table/sample_for_header.txt'
|
||||
function! s:setup()
|
||||
call utils#TestSetup(s:test_file)
|
||||
endfunction
|
||||
call testify#setup(function('s:setup'))
|
||||
call testify#teardown(function('utils#TestTeardown'))
|
||||
|
||||
function! s:TestAddBorder()
|
||||
call testify#assert#assert(!tablemode#table#IsHeader(2))
|
||||
call tablemode#table#AddBorder(3)
|
||||
call testify#assert#assert(tablemode#table#IsHeader(2))
|
||||
call testify#assert#assert(tablemode#table#IsBorder(3))
|
||||
call utils#TestUndo(s:test_file)
|
||||
endfunction
|
||||
call testify#it('AddBorder should be able to add borders correctly', function('s:TestAddBorder'))
|
||||
Reference in New Issue
Block a user