diff options
| author | Tyge Lovset <[email protected]> | 2022-08-20 10:14:17 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-08-20 10:14:17 +0200 |
| commit | e8f5177eb163cb7ab274f45b946bd65ae36617e5 (patch) | |
| tree | 732e38af64afb738894f40cbb8df82f8d1bcc3ee /include/stc | |
| parent | 415b9e2aa906527806ad803bed789efbb07709c5 (diff) | |
| download | STC-modified-e8f5177eb163cb7ab274f45b946bd65ae36617e5.tar.gz STC-modified-e8f5177eb163cb7ab274f45b946bd65ae36617e5.zip | |
Reduced precision threshold for floats
Diffstat (limited to 'include/stc')
| -rw-r--r-- | include/stc/stctest.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/stctest.h b/include/stc/stctest.h index 2b544af8..4120a800 100644 --- a/include/stc/stctest.h +++ b/include/stc/stctest.h @@ -65,7 +65,7 @@ #include <stdarg.h>
#include <inttypes.h>
-#define STC_FLOAT_EPSILON 1e-7
+#define STC_FLOAT_EPSILON 1e-6
#define STC_DOUBLE_EPSILON 1e-13
@@ -74,7 +74,7 @@ #define EXPECT_TRUE1(expr, v) \
do { if (!_stctest_assert(__FILE__, __LINE__, #expr, (expr) != 0)) { \
- char _fmt[32]; sprintf(_fmt, " :: %%s => %s\n", _stctest_FMT(v)); \
+ char _fmt[32]; sprintf(_fmt, " ; %%s => %s\n", _stctest_FMT(v)); \
printf(_fmt, #v, v); \
}} while (0)
@@ -111,7 +111,7 @@ #define _stctest_CHECK(a, OP, b, e) \
do { if (!_stctest_assert(__FILE__, __LINE__, #a " " #OP " " #b, _stctest_CMP(a, OP, b, e))) { \
- char _fmt[32]; sprintf(_fmt, " :: %s %s %s\n", _stctest_FMT(a), #OP, _stctest_FMT(b)); \
+ char _fmt[32]; sprintf(_fmt, " ; %s %s %s\n", _stctest_FMT(a), #OP, _stctest_FMT(b)); \
printf(_fmt, a, b); \
}} while (0)
|
