From d280176250cd910a37bdca3a5a478207d5c7c210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B?= <2589111+jfbu@users.noreply.github.com> Date: Sat, 13 Aug 2022 19:47:20 +0200 Subject: [PATCH] Add test which would have shown regression regarding table.colsep --- tests/roots/test-latex-table/complex.rst | 19 +++++++++++++++++++ tests/test_build_latex.py | 7 +++++++ 2 files changed, 26 insertions(+) diff --git a/tests/roots/test-latex-table/complex.rst b/tests/roots/test-latex-table/complex.rst index 06a4eaaf5e6..d648ff194c4 100644 --- a/tests/roots/test-latex-table/complex.rst +++ b/tests/roots/test-latex-table/complex.rst @@ -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 --------------------- diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index 6ada0350c6c..a24c7ce803d 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -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')