示例#1
0
 def test_generate_latex_table(self):
     data = [["a", "bb"], ["ccc", "dddd"]]
     self.assertEqual(generate_latex_table(data), '\\begin{table}[H]\n\\caption{Caption}\n\\label{Label}\n\\begin{tabular*}{\\textwidth}{@{\\extracolsep{\\fill}}cc}\n\\hline\na & bb\\\\\nccc & dddd\\\\\n\\hline\n\\end{tabular*}\n\\end{table}')
示例#2
0
 def test_generate_latex_table(self):
     data = [["a", "bb"], ["ccc", "dddd"]]
     self.assertEqual(
         generate_latex_table(data),
         '\\begin{table}[H]\n\\caption{Caption}\n\\label{Label}\n\\begin{tabular*}{\\textwidth}{@{\\extracolsep{\\fill}}cc}\n\\hline\na & bb\\\\\nccc & dddd\\\\\n\\hline\n\\end{tabular*}\n\\end{table}'
     )