diff options
Diffstat (limited to 'googletest/test/gtest_assert_by_exception_test.cc')
-rw-r--r-- | googletest/test/gtest_assert_by_exception_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/googletest/test/gtest_assert_by_exception_test.cc b/googletest/test/gtest_assert_by_exception_test.cc index 0eae857..7dfd48c 100644 --- a/googletest/test/gtest_assert_by_exception_test.cc +++ b/googletest/test/gtest_assert_by_exception_test.cc @@ -80,8 +80,7 @@ TEST(Test, Test) { try { AssertFalse(); } catch(const testing::AssertionException& e) { - if (strstr(e.what(), "Expected failure") != NULL) - throw; + if (strstr(e.what(), "Expected failure") != nullptr) throw; printf("%s", "A failed assertion did throw an exception of the right type, " |