Skip to content

Commit b48a0da

Browse files
committed
better ASSERT_CONTAINS output
1 parent 32f1432 commit b48a0da

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/TestSuite.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -254,18 +254,18 @@ test_error (const char *format, ...) BSON_GNUC_PRINTF (1, 2);
254254
} while (0)
255255

256256

257-
#define ASSERT_CONTAINS(a, b) \
258-
do { \
259-
if (NULL == strstr ((a), (b))) { \
260-
fprintf (stderr, \
261-
"%s:%d %s(): : [%s] does not contain with [%s]\n", \
262-
__FILE__, \
263-
__LINE__, \
264-
BSON_FUNC, \
265-
a, \
266-
b); \
267-
abort (); \
268-
} \
257+
#define ASSERT_CONTAINS(a, b) \
258+
do { \
259+
if (NULL == strstr ((a), (b))) { \
260+
fprintf (stderr, \
261+
"%s:%d %s(): [%s] does not contain [%s]\n", \
262+
__FILE__, \
263+
__LINE__, \
264+
BSON_FUNC, \
265+
a, \
266+
b); \
267+
abort (); \
268+
} \
269269
} while (0)
270270

271271
#define ASSERT_STARTSWITH(a, b) \

0 commit comments

Comments
 (0)