aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Driessen <vincent@datafox.nl>2010-08-19 15:42:53 +0200
committerVincent Driessen <vincent@datafox.nl>2010-08-19 15:42:53 +0200
commitd8c457c07b22b16290878150a22f22330964f843 (patch)
treecf9d10a033b98ef479f05197e24a5eb87c5e7cf6
parentf84c47622786b654f2dfbe2e6d79b7f269a91a06 (diff)
downloadvim-rst-tables-d8c457c07b22b16290878150a22f22330964f843.tar.gz
vim-rst-tables-d8c457c07b22b16290878150a22f22330964f843.tar.bz2
vim-rst-tables-d8c457c07b22b16290878150a22f22330964f843.zip
Fixed the last failing test (stupid line ending bug).
-rw-r--r--tests/test_rst_tables.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_rst_tables.py b/tests/test_rst_tables.py
index 381adf8..eac65fe 100644
--- a/tests/test_rst_tables.py
+++ b/tests/test_rst_tables.py
@@ -213,9 +213,12 @@ a line ending.
reformat_table()
self.assertEquals(expect, vim.current.buffer)
- def notestCreateComplexTable(self):
+ def testCreateComplexTable(self):
raw_lines = self.read_fixture('multiline-cells')
- expect = """
+ # strip off the last (empty) line from raw_lines (since that line does
+ # not belong to the table
+ del raw_lines[-1]
+ expect = """\
+================+===============================================================+
| Feature | Description |
+================+===============================================================+
@@ -229,5 +232,5 @@ a line ending.
+----------------+---------------------------------------------------------------+
| | habitasse platea dictumst. Phasellus pretium iaculis. |
+----------------+---------------------------------------------------------------+
-""".strip().split('\n')
+""".rstrip().split('\n')
self.assertEquals(expect, draw_table(parse_table(raw_lines)))