Skip to content

Commit 197a803

Browse files
committed
add regression test for issue #209 - test_mixed_bool_strings_and_numeric_strings
1 parent 1d11331 commit 197a803

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/test_regression.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,3 +560,10 @@ def test_empty_table_with_maxheadercolwidths():
560560
]
561561
)
562562
assert_equal(expected, result)
563+
564+
565+
def test_mixed_bool_strings_and_numeric_strings():
566+
"Regression: column with bool-like strings and numeric strings should not crash (issue #209)"
567+
result = tabulate([["False"], ["1."]])
568+
expected = "\n".join(["-----", "False", " 1", "-----"])
569+
assert_equal(expected, result)

0 commit comments

Comments
 (0)