[gegl] tests: make test-image-compare test more lenient
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests: make test-image-compare test more lenient
- Date: Tue, 22 Aug 2017 15:00:01 +0000 (UTC)
commit a4a95a6559d19cbf680790dd6978290dc7288027
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Aug 22 16:57:38 2017 +0200
tests: make test-image-compare test more lenient
The new constraints are still well within acceptable bounds and oder of
magnitude more accurate than the human visual system.
tests/simple/test-image-compare.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/simple/test-image-compare.c b/tests/simple/test-image-compare.c
index 367d02b..6e16474 100644
--- a/tests/simple/test-image-compare.c
+++ b/tests/simple/test-image-compare.c
@@ -108,7 +108,7 @@ compare_values (GeglNode *comparison,
test_result = SUCCESS;
if (fabs (actual_result.max_diff - expected_result->max_diff)
- > GEGL_FLOAT_EPSILON * 10)
+ > GEGL_FLOAT_EPSILON * 100)
{
g_printerr ("The max_diff property differs: %f instead of %f. ",
(gfloat) actual_result.max_diff,
@@ -116,7 +116,7 @@ compare_values (GeglNode *comparison,
test_result = FAILURE;
}
if (fabs (actual_result.avg_diff_wrong - expected_result->avg_diff_wrong)
- > GEGL_FLOAT_EPSILON * 10)
+ > GEGL_FLOAT_EPSILON * 100)
{
g_printerr ("The avg_diff_wrong property differs: %f instead of %f. ",
(gfloat) actual_result.avg_diff_wrong,
@@ -124,7 +124,7 @@ compare_values (GeglNode *comparison,
test_result = FAILURE;
}
if (fabs (actual_result.avg_diff_total - expected_result->avg_diff_total)
- > GEGL_FLOAT_EPSILON * 10)
+ > GEGL_FLOAT_EPSILON * 100)
{
g_printerr ("The avg_diff_total property differs: %f instead of %f. ",
(gfloat) actual_result.avg_diff_total,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]