Skip to content

Commit

Permalink
Add test which would have shown regression regarding table.colsep
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Aug 13, 2022
1 parent 3c4cb45 commit d280176
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/roots/test-latex-table/complex.rst
Expand Up @@ -20,6 +20,25 @@ grid table
| cell5-1 |
+---------+---------+---------+

grid table with tabularcolumns having no vline
----------------------------------------------

.. tabularcolumns:: TTT

+---------+---------+---------+
| header1 | header2 | header3 |
+=========+=========+=========+
| cell1-1 | cell1-2 | cell1-3 |
+---------+ +---------+
| cell2-1 | | cell2-3 |
+ +---------+---------+
| | cell3-2-par1 |
+---------+ |
| cell4-1 | cell3-2-par2 |
+---------+---------+---------+
| cell5-1 |
+---------+---------+---------+

complex spanning cell
---------------------

Expand Down
7 changes: 7 additions & 0 deletions tests/test_build_latex.py
Expand Up @@ -1314,6 +1314,13 @@ def get_expected(name):
expected = get_expected('gridtable')
assert actual == expected

# grid table with tabularcolumns
# MEMO: filename should end with tabularcolumns but tabularcolumn has been
# used in existing other cases
actual = tables['grid table with tabularcolumns having no vline']
expected = get_expected('gridtable_with_tabularcolumn')
assert actual == expected

# complex spanning cell
actual = tables['complex spanning cell']
expected = get_expected('complex_spanning_cell')
Expand Down

0 comments on commit d280176

Please sign in to comment.