1.1 --- a/tests/test_table.py Wed Jul 11 00:47:30 2012 +0200
1.2 +++ b/tests/test_table.py Fri Jul 13 00:39:56 2012 +0200
1.3 @@ -40,17 +40,21 @@
1.4 <rowspan=2> 1 || 2 || 3
1.5 ==
1.6 <rowstyle="background-color: #f33"> 2 || 3
1.7 +==
1.8 +The first column || The second
1.9 + .. with the continuation of
1.10 + .. the text without indentation occurring.
1.11 """
1.12
1.13 attrs, rows = parse(table)
1.14 -expected = 11
1.15 +expected = 12
1.16
1.17 print table
1.18 print attrs
1.19 print rows
1.20 print len(rows) == expected, ": length is", len(rows), "==", expected
1.21 print
1.22 -for (row_attrs, columns), expected in zip(rows, [3, 2, 3, 3, 3, 2, 2, 2, 3, 3, 2]):
1.23 +for (row_attrs, columns), expected in zip(rows, [3, 2, 3, 3, 3, 2, 2, 2, 3, 3, 2, 2]):
1.24 print row_attrs
1.25 print columns
1.26 non_continuation_columns = [
1.27 @@ -63,4 +67,8 @@
1.28 print len(non_continuation_columns) == expected, ": length is", len(non_continuation_columns), "==", expected
1.29 print
1.30
1.31 +expected_text = "The second\nwith the continuation of\nthe text without indentation occurring.\n"
1.32 +text = rows[11][1][1][1]
1.33 +print text == expected_text, ": text is", repr(text)
1.34 +
1.35 # vim: tabstop=4 expandtab shiftwidth=4