diff options
| author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2017-09-06 14:29:25 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-06 14:29:25 -0400 |
| commit | 8b491162f79282b79292e0f4166194b3f7ccb7b1 (patch) | |
| tree | b6e5d65fcf25c9353d110820cad4a1ab7e1be353 /googletest/test | |
| parent | a1c332cdbe89ea3b0be9ea5bef18aefe835d7ee1 (diff) | |
| parent | 8a3ccc3ee36342c149a696b3c0e5ba9d4938efa9 (diff) | |
| download | googletest-8b491162f79282b79292e0f4166194b3f7ccb7b1.tar.gz googletest-8b491162f79282b79292e0f4166194b3f7ccb7b1.tar.bz2 googletest-8b491162f79282b79292e0f4166194b3f7ccb7b1.zip | |
Merge branch 'master' into support_xboxone
Diffstat (limited to 'googletest/test')
| -rw-r--r-- | googletest/test/gtest-param-test_test.cc | 8 | ||||
| -rw-r--r-- | googletest/test/gtest_unittest.cc | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/googletest/test/gtest-param-test_test.cc b/googletest/test/gtest-param-test_test.cc index 8b278bb9..857f6c5e 100644 --- a/googletest/test/gtest-param-test_test.cc +++ b/googletest/test/gtest-param-test_test.cc @@ -141,7 +141,7 @@ void VerifyGenerator(const ParamGenerator<T>& generator, << ", expected_values[i] is " << PrintValue(expected_values[i]) << ", *it is " << PrintValue(*it) << ", and 'it' is an iterator created with the copy constructor.\n"; - it++; + ++it; } EXPECT_TRUE(it == generator.end()) << "At the presumed end of sequence when accessing via an iterator " @@ -161,7 +161,7 @@ void VerifyGenerator(const ParamGenerator<T>& generator, << ", expected_values[i] is " << PrintValue(expected_values[i]) << ", *it is " << PrintValue(*it) << ", and 'it' is an iterator created with the copy constructor.\n"; - it++; + ++it; } EXPECT_TRUE(it == generator.end()) << "At the presumed end of sequence when accessing via an iterator " @@ -196,7 +196,7 @@ TEST(IteratorTest, ParamIteratorConformsToForwardIteratorConcept) { << "element same as its source points to"; // Verifies that iterator assignment works as expected. - it++; + ++it; EXPECT_FALSE(*it == *it2); it2 = it; EXPECT_TRUE(*it == *it2) << "Assigned iterators must point to the " @@ -215,7 +215,7 @@ TEST(IteratorTest, ParamIteratorConformsToForwardIteratorConcept) { // Verifies that prefix and postfix operator++() advance an iterator // all the same. it2 = it; - it++; + ++it; ++it2; EXPECT_TRUE(*it == *it2); } diff --git a/googletest/test/gtest_unittest.cc b/googletest/test/gtest_unittest.cc index 1d3c7c7a..f84def90 100644 --- a/googletest/test/gtest_unittest.cc +++ b/googletest/test/gtest_unittest.cc @@ -3115,13 +3115,13 @@ TEST(DISABLED_TestCase, DISABLED_TestShouldNotRun) { FAIL() << "Unexpected failure: Test in disabled test case should not be run."; } -// Check that when all tests in a test case are disabled, SetupTestCase() and +// Check that when all tests in a test case are disabled, SetUpTestCase() and // TearDownTestCase() are not called. class DisabledTestsTest : public Test { protected: static void SetUpTestCase() { FAIL() << "Unexpected failure: All tests disabled in test case. " - "SetupTestCase() should not be called."; + "SetUpTestCase() should not be called."; } static void TearDownTestCase() { @@ -7655,7 +7655,7 @@ TEST(NativeArrayTest, MethodsWork) { EXPECT_EQ(0, *it); ++it; EXPECT_EQ(1, *it); - it++; + ++it; EXPECT_EQ(2, *it); ++it; EXPECT_EQ(na.end(), it); |
