From 8970d5ffbb1ba91209934ad31b87bcc5e0bd2b57 Mon Sep 17 00:00:00 2001 From: Dhruva Sagar Date: Thu, 1 May 2014 21:14:49 +0530 Subject: [PATCH] Improved tests --- t/table.vim | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/t/table.vim b/t/table.vim index 599e900..9740c37 100644 --- a/t/table.vim +++ b/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'