Skip to content

Commit

Permalink
add a regression test for issue #110
Browse files Browse the repository at this point in the history
  • Loading branch information
astanin committed Feb 19, 2021
1 parent bfc922c commit a17907c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,11 @@ def test_custom_tablefmt():
expected = "\n".join(["A B", "--- ---", "foo bar", "baz qux"])
result = tabulate(rows, headers=["A", "B"], tablefmt=tablefmt)
assert_equal(result, expected)


def test_string_with_comma_between_digits_without_floatfmt_grouping_option():
"Regression: accept commas in numbers-as-text when grouping is not defined (github issue #110)"
table = [["126,000"]]
expected = "126,000"
result = tabulate(table, tablefmt="plain")
assert_equal(result, expected) # no exception

0 comments on commit a17907c

Please sign in to comment.