[gtk/curve-ops: 53/67] 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: 53/67] Only test conic weights between 1/20 and 20
- Date: Sun, 20 Dec 2020 06:37:02 +0000 (UTC)
commit e3ac15bc2f6d93a55d3cacec46533d9d850b225c
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]