aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVincent Driessen <vincent@datafox.nl>2010-08-19 00:24:25 +0200
committerVincent Driessen <vincent@datafox.nl>2010-08-19 00:24:25 +0200
commitfae01af853842a405b52010ea7a2f41fe4243e8c (patch)
treef57ac48a580b35848527f8bbf0c7698c7a7803d4 /tests
parent97aac6aa3f960464a783d194266d994515f4ffe9 (diff)
downloadvim-rst-tables-fae01af853842a405b52010ea7a2f41fe4243e8c.tar.gz
vim-rst-tables-fae01af853842a405b52010ea7a2f41fe4243e8c.tar.bz2
vim-rst-tables-fae01af853842a405b52010ea7a2f41fe4243e8c.zip
Deal with spaces at the end of the line.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_rst_tables.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_rst_tables.py b/tests/test_rst_tables.py
index d44c234..b3df5ad 100644
--- a/tests/test_rst_tables.py
+++ b/tests/test_rst_tables.py
@@ -77,6 +77,11 @@ a line ending.
expected = [['x', 'y', ''], ['a', 'b', 'c'], ['only one', '', '']]
self.assertEquals(expected, parse_table(input))
+ def testParseDealsWithSpacesAtLineEnd(self):
+ input = ['x y ', 'a b ', 'only one']
+ expected = [['x', 'y'], ['a', 'b'], ['only one', '']]
+ self.assertEquals(expected, parse_table(input))
+
def testTableLine(self):
self.assertEquals('', table_line([], True))
self.assertEquals('++', table_line([0], True))