test: More clearly print errors in the NAN tests
This commit is contained in:
1 parent
0e86b1ed49
commit
6a3080fa58
1 file changed
+1
-1
+1
-1
@@ -66,7 +66,7 @@ const char *context = "";
|
|||||||
tests++; \
|
tests++; \
|
||||||
if (!isnan(x)) { \
|
if (!isnan(x)) { \
|
||||||
fails++; \
|
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)
|
} while (0)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user