@@ -258,15 +258,14 @@ def test_alignment_of_decimal_numbers_with_ansi_color():
258258
259259def 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
272271def test_long_integers ():
0 commit comments