aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unit/include/bh/unit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/unit/include/bh/unit.h b/unit/include/bh/unit.h
index 42d41cd..62c0d87 100644
--- a/unit/include/bh/unit.h
+++ b/unit/include/bh/unit.h
@@ -7,14 +7,14 @@ typedef int (*bh_unit_cb_t)(void);
#define bh_unit_assert(e) \
if (!(e)) { \
- printf("%s:%d\t%s", __FILE__, __LINE__, #e); \
+ printf("%s:%d\t%s\n", __FILE__, __LINE__, #e); \
return -1; \
}
#define bh_unit_assert_delta(x, y, e) \
if ((((x)>(y))?((x)-(y)):((y)-(x)))>(e)) { \
- printf("%s:%d\t%s", __FILE__, __LINE__, #x " == " #y); \
+ printf("%s:%d\t%s\n", __FILE__, __LINE__, #x " == " #y); \
return -1; \
}