[gtk/path-work-rebased: 84/121] Only test conic weights between 1/20 and 20




commit 6d04869c85eec4ba9178fe7d289d325121872271
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Dec 12 09:58:32 2020 -0500

    Only test conic weights between 1/20 and 20
    
    The rest just give us no end of numeric trouble.

 testsuite/gsk/curve.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/gsk/curve.c b/testsuite/gsk/curve.c
index b04d9b0aba..649149f360 100644
--- a/testsuite/gsk/curve.c
+++ b/testsuite/gsk/curve.c
@@ -12,9 +12,9 @@ static float
 random_weight (void)
 {
   if (g_test_rand_bit ())
-    return g_test_rand_double_range (0, 100);
+    return g_test_rand_double_range (0, 20);
   else
-    return 1.0 / g_test_rand_double_range (1, 100);
+    return 1.0 / g_test_rand_double_range (1, 20);
 }
 
 static void


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