Skip to content
Prev Previous commit
Next Next commit
Update test_convert.py
  • Loading branch information
DenverCoder1 committed Oct 20, 2023
commit d668717aa2dd5a02e43e2d6673430380a7e4549e
19 changes: 19 additions & 0 deletions tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,22 @@ def test_east_asian_wide_characters_and_zero_width_no_wcwidth():
"╚════╩═══════════════╝"
)
assert text == expected


def test_multiline_cells_with_wrappable_lines():
text = t2a(
header=["Test"],
body=[["Line One...\nSecond Line...\nLineNumThree\nLineFour\nFive FinalLine"]],
)
expected = (
"╔════════════════╗\n"
"║ Test ║\n"
"╟────────────────╢\n"
"║ Line One... ║\n"
"║ Second Line... ║\n"
"║ LineNumThree ║\n"
"║ LineFour ║\n"
"║ Five FinalLine ║\n"
"╚════════════════╝"
)
assert text == expected