Files
vim-table-mode/t/autoload/tablemode/table/is_border_test.vim
2023-03-01 07:22:48 +05:30

22 lines
795 B
VimL

source t/config/options.vim
source t/utils.vim
let s:test_file = 't/fixtures/table/sample_with_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:TestIsBorder()
call testify#assert#assert(tablemode#table#IsBorder(2))
call testify#assert#assert(tablemode#table#IsBorder(4))
call testify#assert#assert(tablemode#table#IsBorder(7))
call testify#assert#assert(!tablemode#table#IsBorder(1))
call testify#assert#assert(!tablemode#table#IsBorder(3))
call testify#assert#assert(!tablemode#table#IsBorder(5))
call testify#assert#assert(!tablemode#table#IsBorder(6))
endfunction
call testify#it('IsBorder should be correct', function('s:TestIsBorder'))