diff options
Diffstat (limited to 'test/Tests/Readers/LaTeX.hs')
-rw-r--r-- | test/Tests/Readers/LaTeX.hs | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/test/Tests/Readers/LaTeX.hs b/test/Tests/Readers/LaTeX.hs index a8d969659..87074e990 100644 --- a/test/Tests/Readers/LaTeX.hs +++ b/test/Tests/Readers/LaTeX.hs @@ -157,17 +157,26 @@ tests = [ testGroup "tokenization" ] , "Table with multirow item" =: T.unlines ["\\begin{tabular}{c}" - ,"\\multirow{2}{c}{One}\\\\Two\\\\" + ,"\\multirow{2}{5em}{One}\\\\Two\\\\" ,"\\end{tabular}" ] =?> table' [AlignCenter] - [ Row nullAttr [ cell AlignCenter (RowSpan 2) (ColSpan 1) (plain "One") ] + [ Row nullAttr [ cell AlignDefault (RowSpan 2) (ColSpan 1) (plain "One") ] + , Row nullAttr [ simpleCell (plain "Two") ] + ] + , "Table with multirow item using full prototype" =: + T.unlines ["\\begin{tabular}{c}" + ,"\\multirow[c]{2}[3]{5em}[1in]{One}\\\\Two\\\\" + ,"\\end{tabular}" + ] =?> + table' [AlignCenter] + [ Row nullAttr [ cell AlignDefault (RowSpan 2) (ColSpan 1) (plain "One") ] , Row nullAttr [ simpleCell (plain "Two") ] ] , "Table with nested multirow/multicolumn item" =: T.unlines [ "\\begin{tabular}{c c c}" - , "\\multirow{2}{c}{\\multicolumn{2}{c}{One}}&Two\\\\" - , "Three\\\\" + , "\\multicolumn{2}{c}{\\multirow{2}{5em}{One}}&Two\\\\" + , "& & Three\\\\" , "Four&Five&Six\\\\" , "\\end{tabular}" ] =?> |