aboutsummaryrefslogtreecommitdiffstats
path: root/samples/sample10_unittest.cc
diff options
context:
space:
mode:
authorvladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2011-11-04 17:56:23 +0000
committervladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925>2011-11-04 17:56:23 +0000
commit8965a6a0d2165f32e6413594bba6367f271f51e7 (patch)
treeab0e0f5e0fd23697673ec2e0edca67079375dd2c /samples/sample10_unittest.cc
parent829402edcffe712ed4c79412ca020525cd8295ad (diff)
downloadgoogletest-8965a6a0d2165f32e6413594bba6367f271f51e7.tar.gz
googletest-8965a6a0d2165f32e6413594bba6367f271f51e7.tar.bz2
googletest-8965a6a0d2165f32e6413594bba6367f271f51e7.zip
Improves conformance to the Google C++ Style Guide (by Greg Miller).
Diffstat (limited to 'samples/sample10_unittest.cc')
-rw-r--r--samples/sample10_unittest.cc3
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_;