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
9311242d
Commit
9311242d
authored
Jul 30, 2019
by
Gennadiy Civil
Browse files
Merge pull request #2356 from kuzkry:typos
PiperOrigin-RevId: 260786935
parents
0647b90e
bf6df7ea
Changes
42
Show 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 @
9311242d
...
...
@@ -215,10 +215,10 @@ class Subprocess:
Returns:
An object that represents outcome of the executed process. It has the
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.
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.
output Child process's stdout and stderr output
combined in a string.
...
...
googletest/test/gtest_unittest.cc
View file @
9311242d
...
...
@@ -2167,12 +2167,12 @@ static Environment* record_property_env GTEST_ATTRIBUTE_UNUSED_ =
// 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
)
{
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
{
bool
operator
()(
int
n
)
{
return
IsEven
(
n
);
}
};
...
...
@@ -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
)
{
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.
struct
SumIsEven3Functor
{
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