test: More clearly print errors in the NAN tests

This commit is contained in:
Martin Storsjö committed 2018-06-04 10:08:47 +03:00
1 parent 0e86b1ed49
commit 6a3080fa58
1 file changed
+1 -1
+1 -1
View File
@@ -66,7 +66,7 @@ const char *context = "";
tests++; \
if (!isnan(x)) { \
fails++; \
printf("%s:%d: %s%s failed, got %f\n", __FILE__, __LINE__, context, #x, (double)x); \
printf("%s:%d: %s%s failed, got %f, expected NAN\n", __FILE__, __LINE__, context, #x, (double)x); \
} \
} while (0)