mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-11 12:33:47 -05:00
Improved tests
This commit is contained in:
32
t/table.vim
32
t/table.vim
@@ -100,14 +100,16 @@ describe 'table'
|
||||
|
||||
describe 'Realign'
|
||||
describe 'without header alignments'
|
||||
before
|
||||
new
|
||||
read t/fixtures/table/sample_realign_before.txt
|
||||
end
|
||||
describe 'for simple'
|
||||
before
|
||||
new
|
||||
read t/fixtures/table/sample_realign_before.txt
|
||||
end
|
||||
|
||||
it 'should be aligned properly'
|
||||
call tablemode#table#Realign(1)
|
||||
Expect getline(1,'$') == readfile('t/fixtures/table/sample_realign_after.txt')
|
||||
it 'should be aligned properly'
|
||||
call tablemode#table#Realign(1)
|
||||
Expect getline(1,'$') == readfile('t/fixtures/table/sample_realign_after.txt')
|
||||
end
|
||||
end
|
||||
|
||||
describe 'for unicode'
|
||||
@@ -125,14 +127,16 @@ describe 'table'
|
||||
end
|
||||
|
||||
describe 'with header alignments'
|
||||
before
|
||||
new
|
||||
read t/fixtures/table/sample_header_realign_before.txt
|
||||
end
|
||||
describe 'for simple'
|
||||
before
|
||||
new
|
||||
read t/fixtures/table/sample_header_realign_before.txt
|
||||
end
|
||||
|
||||
it 'should be aligned properly'
|
||||
call tablemode#table#Realign(1)
|
||||
Expect getline(1,'$') == readfile('t/fixtures/table/sample_header_realign_after.txt')
|
||||
it 'should be aligned properly'
|
||||
call tablemode#table#Realign(1)
|
||||
Expect getline(1,'$') == readfile('t/fixtures/table/sample_header_realign_after.txt')
|
||||
end
|
||||
end
|
||||
|
||||
describe 'for unicode'
|
||||
|
||||
Reference in New Issue
Block a user