diff options
author | misterg <misterg@google.com> | 2017-08-07 17:20:57 (GMT) |
---|---|---|
committer | misterg <misterg@google.com> | 2017-08-07 17:20:57 (GMT) |
commit | 52a9c14c48ed8f3c68d1d10e53a5be761a901a17 (patch) | |
tree | 2fa76b7d48e10e3c5d5c9633a37da44780681aa3 /googletest/samples/sample1_unittest.cc | |
parent | aa31cb67c2a9db4e6a93839bc2a29fe45e1dbd73 (diff) | |
download | googletest-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.cc | 6 |
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. |