[gtk/curve-ops: 174/193] Only test conic weights between 1/20 and 20
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/curve-ops: 174/193] Only test conic weights between 1/20 and 20
- Date: Sun, 27 Dec 2020 04:57:07 +0000 (UTC)
commit aa0f1ce956199bc9f0cf89ff646db80ad11f9cd0
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]