summaryrefslogtreecommitdiff
path: root/test/test_match.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_match.c')
-rw-r--r--test/test_match.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_match.c b/test/test_match.c
index 00dcdb0..8d52191 100644
--- a/test/test_match.c
+++ b/test/test_match.c
@@ -5,7 +5,8 @@
#include "greatest/greatest.h"
-#define ASSERT_SCORE_EQ(a,b) ASSERT_EQ_FMT((a), (b), "%f")
+#define SCORE_TOLERANCE 0.000001
+#define ASSERT_SCORE_EQ(a,b) ASSERT_IN_RANGE((a), (b), SCORE_TOLERANCE)
#define ASSERT_INT_EQ(a,b) ASSERT_EQ_FMT((a), (b), "%d")
/* has_match(char *needle, char *haystack) */