Skip to content

Commit 95c815d

Browse files
committed
re-enable test_alignment_of_decimal_numbers_with_commas
1 parent d42acbe commit 95c815d

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

test/test_regression.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,14 @@ def test_alignment_of_decimal_numbers_with_ansi_color():
258258

259259
def test_alignment_of_decimal_numbers_with_commas():
260260
"Regression: alignment for decimal numbers with comma separators"
261-
skip("test is temporarily disable until the feature is reimplemented")
262-
# table = [["c1r1", "14502.05"], ["c1r2", 105]]
263-
# result = tabulate(table, tablefmt="grid", floatfmt=',.2f')
264-
# expected = "\n".join(
265-
# ['+------+-----------+', '| c1r1 | 14,502.05 |',
266-
# '+------+-----------+', '| c1r2 | 105.00 |',
267-
# '+------+-----------+']
268-
# )
269-
# assert_equal(expected, result)
261+
table = [["c1r1", "14502.05"], ["c1r2", 105]]
262+
result = tabulate(table, tablefmt="grid", floatfmt=',.2f')
263+
expected = "\n".join(
264+
['+------+-----------+', '| c1r1 | 14,502.05 |',
265+
'+------+-----------+', '| c1r2 | 105.00 |',
266+
'+------+-----------+']
267+
)
268+
assert_equal(expected, result)
270269

271270

272271
def test_long_integers():

0 commit comments

Comments
 (0)