Improved tests

This commit is contained in:
Dhruva Sagar
2014-05-01 21:14:49 +05:30
parent 859eb42856
commit 8970d5ffbb

View File

@@ -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