1.1 --- a/tests/test_table.py Fri Jul 13 00:39:56 2012 +0200
1.2 +++ b/tests/test_table.py Fri Jul 13 01:03:11 2012 +0200
1.3 @@ -44,17 +44,20 @@
1.4 The first column || The second
1.5 .. with the continuation of
1.6 .. the text without indentation occurring.
1.7 +==
1.8 +A test || Of...
1.9 + ...non-continuation
1.10 """
1.11
1.12 attrs, rows = parse(table)
1.13 -expected = 12
1.14 +expected = 13
1.15
1.16 print table
1.17 print attrs
1.18 print rows
1.19 print len(rows) == expected, ": length is", len(rows), "==", expected
1.20 print
1.21 -for (row_attrs, columns), expected in zip(rows, [3, 2, 3, 3, 3, 2, 2, 2, 3, 3, 2, 2]):
1.22 +for (row_attrs, columns), expected in zip(rows, [3, 2, 3, 3, 3, 2, 2, 2, 3, 3, 2, 2, 2]):
1.23 print row_attrs
1.24 print columns
1.25 non_continuation_columns = [
1.26 @@ -71,4 +74,8 @@
1.27 text = rows[11][1][1][1]
1.28 print text == expected_text, ": text is", repr(text)
1.29
1.30 +expected_text = "Of...\n ...non-continuation\n"
1.31 +text = rows[12][1][1][1]
1.32 +print text == expected_text, ": text is", repr(text)
1.33 +
1.34 # vim: tabstop=4 expandtab shiftwidth=4