From 07e9ef669cfcfd927db6e048378813b625be09f0 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Thu, 14 Apr 2022 16:05:44 -0400 Subject: [PATCH] add test --- test/test_output.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_output.py b/test/test_output.py index eed4489..1f103f2 100644 --- a/test/test_output.py +++ b/test/test_output.py @@ -1428,6 +1428,12 @@ def test_floatfmt_multi(): assert_equal(expected, result) +def test_floatfmt_precision(): + result = tabulate([[99999998999.999980]], floatfmt=".6f", tablefmt="plain") + expected = "99999998999.999980" + assert_equal(expected, result) + + def test_colalign_multi(): "Output: string columns with custom colalign" result = tabulate(