Improved table.vim tests. Fixed #24.

This commit is contained in:
Dhruva Sagar
2014-04-22 00:11:40 +05:30
parent 79166b3d4e
commit 7e00cea7f5
3 changed files with 58 additions and 28 deletions

View File

@@ -34,4 +34,25 @@ describe 'tablemode'
end
end
end
describe 'Tableize'
before
new
read t/fixtures/tableize.txt
end
it 'should tableize with default delimiter'
:2,3call tablemode#TableizeRange('')
Expect tablemode#table#IsATableRow(2) to_be_true
Expect tablemode#spreadsheet#RowCount(2) == 2
Expect tablemode#spreadsheet#ColumnCount(2) == 3
end
it 'should tableize with given delimiter'
:2,3call tablemode#TableizeRange('/;')
Expect tablemode#table#IsATableRow(2) to_be_true
Expect tablemode#spreadsheet#RowCount(2) == 2
Expect tablemode#spreadsheet#ColumnCount(2) == 2
end
end
end