[goffice] test-math: remove obsolete test.



commit 9ee35f8da296b63c88f71b484b50c8406139cfe3
Author: Morten Welinder <terra gnome org>
Date:   Sun Apr 13 13:55:23 2014 -0400

    test-math: remove obsolete test.

 tests/test-math.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/tests/test-math.c b/tests/test-math.c
index f3d7c2b..fe76b9a 100644
--- a/tests/test-math.c
+++ b/tests/test-math.c
@@ -91,41 +91,11 @@ trig_tests (void)
 
 /* ------------------------------------------------------------------------- */
 
-#define TEST1(a_) do {                                         \
-       double d = (a_);                                        \
-       char *s = go_ascii_dtoa (d, 'g');                       \
-       double r = go_ascii_strtod (s, NULL);                   \
-       g_printerr ("dtoa: %.17g --> \"%s\" --> %.17g\n", d, s, r);     \
-       g_free (s);                                             \
-        g_assert (r == d);                                     \
-} while (0)
-
-static void
-test_dtoa (void)
-{
-       TEST1 (0.1);
-       TEST1 (go_pinf);
-       TEST1 (50388143.0682372152805328369140625);
-       TEST1 (54167628.179999999701976776123046875);
-       TEST1 (9161196241250.05078125);
-       TEST1 (9.87e+031);
-       TEST1 (9.944932e+031);
-       TEST1 (8.948471e+015);
-       TEST1 (1.23456789012345e+300);
-       TEST1 (1.23456e-300);
-       TEST1 (1e-006);
-}
-
-#undef TEST1
-
-/* ------------------------------------------------------------------------- */
-
 int
 main (int argc, char **argv)
 {
        libgoffice_init ();
 
-       test_dtoa ();
        trig_tests ();
 
        libgoffice_shutdown ();


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