mirror of
https://github.com/google/googletest.git
synced 2026-04-30 19:09:20 +08:00
Merge a66bcb534d90072cf91ab80470db224c95532621 into d72f9c8aea6817cdf1ca0ac10887f328de7f3da2
This commit is contained in:
commit
806150fe60
@ -1819,7 +1819,7 @@ class [[nodiscard]] TestWithParam : public Test,
|
||||
GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
|
||||
GTEST_NONFATAL_FAILURE_)
|
||||
#define GTEST_EXPECT_FALSE(condition) \
|
||||
GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
|
||||
GTEST_TEST_BOOLEAN_(condition, #condition, true, false, \
|
||||
GTEST_NONFATAL_FAILURE_)
|
||||
#define GTEST_ASSERT_TRUE(condition) \
|
||||
GTEST_TEST_BOOLEAN_(condition, #condition, false, true, GTEST_FATAL_FAILURE_)
|
||||
|
||||
@ -1448,7 +1448,7 @@ class [[nodiscard]] NeverThrown {
|
||||
#define GTEST_TEST_BOOLEAN_(expression, text, actual, expected, fail) \
|
||||
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
|
||||
if (const ::testing::AssertionResult gtest_ar_ = \
|
||||
::testing::AssertionResult(expression)) \
|
||||
::testing::AssertionResult(expression); gtest_ar_==expected) \
|
||||
; \
|
||||
else \
|
||||
fail(::testing::internal::GetBoolAssertionFailureMessage( \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user