Skip to content

Commit 07e9ef6

Browse files
committed
add test
1 parent dac53ae commit 07e9ef6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_output.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,12 @@ def test_floatfmt_multi():
14281428
assert_equal(expected, result)
14291429

14301430

1431+
def test_floatfmt_precision():
1432+
result = tabulate([[99999998999.999980]], floatfmt=".6f", tablefmt="plain")
1433+
expected = "99999998999.999980"
1434+
assert_equal(expected, result)
1435+
1436+
14311437
def test_colalign_multi():
14321438
"Output: string columns with custom colalign"
14331439
result = tabulate(

0 commit comments

Comments
 (0)