Skip to content

Commit

Permalink
fix: some typos in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotnh committed Jul 1, 2022
1 parent 96f5142 commit 2cf9987
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions googlemock/test/gmock-actions_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ TEST(DefaultValueOfReferenceTest, IsInitiallyUnset) {
EXPECT_FALSE(DefaultValue<MyNonDefaultConstructible&>::IsSet());
}

// Tests that DefaultValue<T&>::Exists is false initiallly.
// Tests that DefaultValue<T&>::Exists is false initially.
TEST(DefaultValueOfReferenceTest, IsInitiallyNotExisting) {
EXPECT_FALSE(DefaultValue<int&>::Exists());
EXPECT_FALSE(DefaultValue<MyDefaultConstructible&>::Exists());
Expand Down Expand Up @@ -807,7 +807,7 @@ TEST(ReturnTest, MoveOnlyResultType) {
"");
}

// Tests that Return(v) is covaraint.
// Tests that Return(v) is covariant.

struct Base {
bool operator==(const Base&) { return true; }
Expand Down
2 changes: 1 addition & 1 deletion googlemock/test/gmock-matchers-misc_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ TEST(AnyOfArrayTest, Matchers) {
}

TEST_P(AnyOfArrayTestP, ExplainsMatchResultCorrectly) {
// AnyOfArray and AllOfArry use the same underlying template-template,
// AnyOfArray and AllOfArray use the same underlying template-template,
// thus it is sufficient to test one here.
const std::vector<int> v0{};
const std::vector<int> v1{1};
Expand Down
2 changes: 1 addition & 1 deletion googletest/include/gtest/internal/gtest-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ class TestFactoryBase {
TestFactoryBase& operator=(const TestFactoryBase&) = delete;
};

// This class provides implementation of TeastFactoryBase interface.
// This class provides implementation of TestFactoryBase interface.
// It is used in TEST and TEST_F macros.
template <class TestClass>
class TestFactoryImpl : public TestFactoryBase {
Expand Down
4 changes: 2 additions & 2 deletions googletest/src/gtest-internal-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,9 @@ class GTEST_API_ UnitTestImpl {
virtual ~UnitTestImpl();

// There are two different ways to register your own TestPartResultReporter.
// You can register your own repoter to listen either only for test results
// You can register your own reporter to listen either only for test results
// from the current thread or for results from all threads.
// By default, each per-thread test result repoter just passes a new
// By default, each per-thread test result reporter just passes a new
// TestPartResult to the global test result reporter, which registers the
// test part result for the currently running test.

Expand Down

0 comments on commit 2cf9987

Please sign in to comment.