We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 975b98c commit 6bee90fCopy full SHA for 6bee90f
tests/test_api.py
@@ -242,5 +242,22 @@ def test_given_col_align(self) -> None:
242
1 & 2 \\
243
3 & 4 \\
244
\endrule
245
+\end{tabular}"""
246
+ )
247
+
248
+ def test_one_dimensional(self) -> None:
249
+ """One dimensinal vectors are expanded properly."""
250
+ mat = np.arange(1, 4)
251
252
+ out = to_tabular(mat)
253
254
+ assert (
255
+ out
256
+ == r"""\begin{tabular}{c c c}
257
+\toprule
258
+Col 1 & Col 2 & Col 3 \\
259
+\midrule
260
+1 & 2 & 3 \\
261
+\endrule
262
\end{tabular}"""
263
)
0 commit comments