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:
@@ -100,6 +100,7 @@ describe 'table'
|
|||||||
|
|
||||||
describe 'Realign'
|
describe 'Realign'
|
||||||
describe 'without header alignments'
|
describe 'without header alignments'
|
||||||
|
describe 'for simple'
|
||||||
before
|
before
|
||||||
new
|
new
|
||||||
read t/fixtures/table/sample_realign_before.txt
|
read t/fixtures/table/sample_realign_before.txt
|
||||||
@@ -109,6 +110,7 @@ describe 'table'
|
|||||||
call tablemode#table#Realign(1)
|
call tablemode#table#Realign(1)
|
||||||
Expect getline(1,'$') == readfile('t/fixtures/table/sample_realign_after.txt')
|
Expect getline(1,'$') == readfile('t/fixtures/table/sample_realign_after.txt')
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe 'for unicode'
|
describe 'for unicode'
|
||||||
before
|
before
|
||||||
@@ -125,6 +127,7 @@ describe 'table'
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe 'with header alignments'
|
describe 'with header alignments'
|
||||||
|
describe 'for simple'
|
||||||
before
|
before
|
||||||
new
|
new
|
||||||
read t/fixtures/table/sample_header_realign_before.txt
|
read t/fixtures/table/sample_header_realign_before.txt
|
||||||
@@ -134,6 +137,7 @@ describe 'table'
|
|||||||
call tablemode#table#Realign(1)
|
call tablemode#table#Realign(1)
|
||||||
Expect getline(1,'$') == readfile('t/fixtures/table/sample_header_realign_after.txt')
|
Expect getline(1,'$') == readfile('t/fixtures/table/sample_header_realign_after.txt')
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
describe 'for unicode'
|
describe 'for unicode'
|
||||||
before
|
before
|
||||||
|
|||||||
Reference in New Issue
Block a user