diff options
| author | Mikhail Romanko <me@blankhex.com> | 2024-04-14 13:53:50 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2024-04-14 13:53:50 +0300 |
| commit | 7b97af5898bba05f29daa4d322eed9e31e4d8ab8 (patch) | |
| tree | b9df711937f7e7bab331911f17f656ef84327d85 | |
| parent | ac5df0ebe9a6ac67b9be4cc319f5cd0625b50178 (diff) | |
| download | bhlib-old-7b97af5898bba05f29daa4d322eed9e31e4d8ab8.tar.gz | |
Fix missing newline in unit assert messages
| -rw-r--r-- | unit/include/bh/unit.h | 4 |
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; \ } |
