[goffice] GOFormat: more tests.



commit 3c82461b763f9d91caf759e4eb444ec731139973
Author: Morten Welinder <terra gnome org>
Date:   Fri Apr 11 14:17:54 2014 -0400

    GOFormat: more tests.

 tests/test-format.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/test-format.c b/tests/test-format.c
index daa333b..551144b 100644
--- a/tests/test-format.c
+++ b/tests/test-format.c
@@ -109,6 +109,14 @@ test_general_format (void)
        test_general_format_1 (0.12509999001, 8, "0.1251");
        test_general_format_1 (0.12509999001, 7, "0.1251");
        test_general_format_1 (0.12509999001, 6, "0.1251");
+
+       test_general_format_1 (6861116509411105.0, 20, "6.86111650941111E+15");
+       test_general_format_1 (6861116509411105.0, 19, "6.8611165094111E+15");
+       test_general_format_1 (6861116509411105.0, 18, "6.861116509411E+15");
+       test_general_format_1 (6861116509411105.0, 17, "6.86111650941E+15");
+       test_general_format_1 (6861116509411105.0, 16, "6.8611165094E+15");
+       test_general_format_1 (6861116509411105.0, 15, "6.861116509E+15");
+       test_general_format_1 (6861116509411105.0, 14, "6.86111651E+15");
 }
 
 /* ------------------------------------------------------------------------- */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]