summaryrefslogtreecommitdiffstats
path: root/googletest/samples/sample1_unittest.cc
diff options
context:
space:
mode:
authormisterg <misterg@google.com>2017-08-07 17:20:57 (GMT)
committermisterg <misterg@google.com>2017-08-07 17:20:57 (GMT)
commit52a9c14c48ed8f3c68d1d10e53a5be761a901a17 (patch)
tree2fa76b7d48e10e3c5d5c9633a37da44780681aa3 /googletest/samples/sample1_unittest.cc
parentaa31cb67c2a9db4e6a93839bc2a29fe45e1dbd73 (diff)
downloadgoogletest-52a9c14c48ed8f3c68d1d10e53a5be761a901a17.zip
googletest-52a9c14c48ed8f3c68d1d10e53a5be761a901a17.tar.gz
googletest-52a9c14c48ed8f3c68d1d10e53a5be761a901a17.tar.bz2
Samples changes upstreaming
Diffstat (limited to 'googletest/samples/sample1_unittest.cc')
-rw-r--r--googletest/samples/sample1_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/googletest/samples/sample1_unittest.cc b/googletest/samples/sample1_unittest.cc
index 861eff9..8376bb4 100644
--- a/googletest/samples/sample1_unittest.cc
+++ b/googletest/samples/sample1_unittest.cc
@@ -72,6 +72,7 @@ namespace {
//
// </TechnicalDetails>
+
// Tests Factorial().
// Tests factorial of negative numbers.
@@ -99,7 +100,9 @@ TEST(FactorialTest, Negative) {
}
// Tests factorial of 0.
-TEST(FactorialTest, Zero) { EXPECT_EQ(1, Factorial(0)); }
+TEST(FactorialTest, Zero) {
+ EXPECT_EQ(1, Factorial(0));
+}
// Tests factorial of positive numbers.
TEST(FactorialTest, Positive) {
@@ -109,6 +112,7 @@ TEST(FactorialTest, Positive) {
EXPECT_EQ(40320, Factorial(8));
}
+
// Tests IsPrime()
// Tests negative input.