mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-10 12:03:48 -05:00
19 lines
695 B
VimL
19 lines
695 B
VimL
" vim: fdm=indent
|
|
source t/config.vim
|
|
|
|
call vspec#hint({'scope': 'tablemode#align#scope()', 'sid': 'tablemode#align#sid()'})
|
|
|
|
describe 'Align'
|
|
it 'should align table content correctly'
|
|
let lines = ['| This | is a | table |', '| This | is also | a table |']
|
|
let result = ['| This | is a | table |', '| This | is also | a table |']
|
|
Expect tablemode#align#Align(lines) == result
|
|
end
|
|
|
|
it 'should align table content with unicode characters correctly'
|
|
let lines = ['| This | is 測試 | table |', '| This | is also | a table |']
|
|
let result = ['| This | is 測試 | table |', '| This | is also | a table |']
|
|
Expect tablemode#align#Align(lines) == result
|
|
end
|
|
end
|