Lines Matching refs:expression

267 #define EXPECT_TRUE(expression)                                            \
269 if (!(expression)) { \
275 #expression); \
280 #define EXPECT_FALSE(expression) \
282 if (!!(expression)) { \
288 #expression); \
298 opname, op, expected, expression, is_assert) \
301 MINITEST_DEFINE_LOCAL_EXPR_(minitest_actual, expression); \
307 #expression); \
322 #define MINITEST_EXPECT_BINOP_(opname, op, expected, expression) \
323 MINITEST_EXPECT_ASSERT_BINOP_(opname, op, expected, expression, false)
325 #define EXPECT_EQ(expected, expression) \
326 MINITEST_EXPECT_BINOP_(EQ, ==, expected, expression)
328 #define EXPECT_NE(expected, expression) \
329 MINITEST_EXPECT_BINOP_(NE, !=, expected, expression)
331 #define EXPECT_LE(expected, expression) \
332 MINITEST_EXPECT_BINOP_(LE, <=, expected, expression)
334 #define EXPECT_LT(expected, expression) \
335 MINITEST_EXPECT_BINOP_(LT, <, expected, expression)
337 #define EXPECT_GE(expected, expression) \
338 MINITEST_EXPECT_BINOP_(GE, >=, expected, expression)
340 #define EXPECT_GT(expected, expression) \
341 MINITEST_EXPECT_BINOP_(GT, >, expected, expression)
343 #define MINITEST_EXPECT_ASSERT_STR_(expected, expression, is_eq, is_assert) \
348 const char* minitest_actual = (expression); \
355 #expression); \
365 #expression); \
373 #define EXPECT_STREQ(expected, expression) \
374 MINITEST_EXPECT_ASSERT_STR_(expected, expression, true, false)
376 #define EXPECT_STRNEQ(expected, expression) \
377 MINITEST_EXPECT_ASSERT_STR_(expected, expression, false, false)
380 expected, expected_len, expression, expression_len, is_eq, is_assert) \
386 const char* minitest_actual = (expression); \
394 #expression); \
402 #expression); \
419 #expression, \
431 #define EXPECT_MEMEQ(expected, expected_len, expression, expression_len) \
433 expected, expected_len, expression, expression_len, true, false)
435 #define EXPECT_MEMNEQ(expected, expected_len, expression, expression_len) \
437 expected, expected_len, expression, expression_len, false, false)
439 #define ASSERT_TRUE(expression) \
441 if (!(expression)) { \
447 #expression); \
453 #define ASSERT_FALSE(expression) \
455 if (!!(expression)) { \
461 #expression); \
467 #define MINITEST_ASSERT_BINOP_(opname, op, expected, expression) \
468 MINITEST_EXPECT_ASSERT_BINOP_(opname, op, expected, expression, true)
470 #define ASSERT_EQ(expected, expression) \
471 MINITEST_ASSERT_BINOP_(EQ, ==, expected, expression)
473 #define ASSERT_NE(expected, expression) \
474 MINITEST_ASSERT_BINOP_(NE, !=, expected, expression)
476 #define ASSERT_LE(expected, expression) \
477 MINITEST_ASSERT_BINOP_(LE, <=, expected, expression)
479 #define ASSERT_LT(expected, expression) \
480 MINITEST_ASSERT_BINOP_(LT, <, expected, expression)
482 #define ASSERT_GE(expected, expression) \
483 MINITEST_ASSERT_BINOP_(GE, >=, expected, expression)
485 #define ASSERT_GT(expected, expression) \
486 MINITEST_ASSERT_BINOP_(GT, >, expected, expression)
488 #define ASSERT_STREQ(expected, expression) \
489 MINITEST_EXPECT_ASSERT_STR_(expected, expression, true, true)
491 #define ASSERT_STRNEQ(expected, expression) \
492 MINITEST_EXPECT_ASSERT_STR_(expected, expression, false, true)
494 #define ASSERT_MEMEQ(expected, expected_len, expression, expression_len) \
496 expected, expected_len, expression, expression_len, true, true)
498 #define ASSERT_MEMNEQ(expected, expected_len, expression, expression_len) \
500 expected, expected_len, expression, expression_len, false, true)