diff options
Diffstat (limited to 'samples/sample10_unittest.cc')
-rw-r--r-- | samples/sample10_unittest.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samples/sample10_unittest.cc b/samples/sample10_unittest.cc index 2813d040..0051cd5d 100644 --- a/samples/sample10_unittest.cc +++ b/samples/sample10_unittest.cc @@ -89,8 +89,7 @@ class LeakChecker : public EmptyTestEventListener { // You can generate a failure in any event handler except // OnTestPartResult. Just use an appropriate Google Test assertion to do // it. - EXPECT_TRUE(difference <= 0) - << "Leaked " << difference << " unit(s) of Water!"; + EXPECT_LE(difference, 0) << "Leaked " << difference << " unit(s) of Water!"; } int initially_allocated_; |