Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
bf6df7ea
Commit
bf6df7ea
authored
Jul 26, 2019
by
Krystian Kuzniarek
Browse files
fix typos
parent
2134e3fd
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
googletest/test/gtest_test_utils.py
googletest/test/gtest_test_utils.py
+2
-2
googletest/test/gtest_unittest.cc
googletest/test/gtest_unittest.cc
+4
-4
No files found.
googletest/test/gtest_test_utils.py
View file @
bf6df7ea
...
@@ -215,10 +215,10 @@ class Subprocess:
...
@@ -215,10 +215,10 @@ class Subprocess:
Returns:
Returns:
An object that represents outcome of the executed process. It has the
An object that represents outcome of the executed process. It has the
following attributes:
following attributes:
terminated_by_signal True if
f
the child process has been terminated
terminated_by_signal True if the child process has been terminated
by a signal.
by a signal.
signal Sygnal that terminated the child process.
signal Sygnal that terminated the child process.
exited True if
f
the child process exited normally.
exited True if the child process exited normally.
exit_code The code with which the child process exited.
exit_code The code with which the child process exited.
output Child process's stdout and stderr output
output Child process's stdout and stderr output
combined in a string.
combined in a string.
...
...
googletest/test/gtest_unittest.cc
View file @
bf6df7ea
...
@@ -2167,12 +2167,12 @@ static Environment* record_property_env GTEST_ATTRIBUTE_UNUSED_ =
...
@@ -2167,12 +2167,12 @@ static Environment* record_property_env GTEST_ATTRIBUTE_UNUSED_ =
// First, some predicates and predicate-formatters needed by the tests.
// First, some predicates and predicate-formatters needed by the tests.
// Returns true if
f
the argument is an even number.
// Returns true if the argument is an even number.
bool IsEven(int n) {
bool IsEven(int n) {
return (n % 2) == 0;
return (n % 2) == 0;
}
}
// A functor that returns true if
f
the argument is an even number.
// A functor that returns true if the argument is an even number.
struct IsEvenFunctor {
struct IsEvenFunctor {
bool operator()(int n) { return IsEven(n); }
bool operator()(int n) { return IsEven(n); }
};
};
...
@@ -2216,12 +2216,12 @@ struct AssertIsEvenFunctor {
...
@@ -2216,12 +2216,12 @@ struct AssertIsEvenFunctor {
}
}
};
};
// Returns true if
f
the sum of the arguments is an even number.
// Returns true if the sum of the arguments is an even number.
bool SumIsEven2(int n1, int n2) {
bool SumIsEven2(int n1, int n2) {
return IsEven(n1 + n2);
return IsEven(n1 + n2);
}
}
// A functor that returns true if
f
the sum of the arguments is an even
// A functor that returns true if the sum of the arguments is an even
// number.
// number.
struct SumIsEven3Functor {
struct SumIsEven3Functor {
bool operator()(int n1, int n2, int n3) {
bool operator()(int n1, int n2, int n3) {
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment