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
8866af03
Commit
8866af03
authored
Oct 29, 2017
by
Herbert Thielen
Browse files
remove markdown stars (bold) from code examples
parent
3121b204
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
googletest/docs/FAQ.md
googletest/docs/FAQ.md
+4
-4
No files found.
googletest/docs/FAQ.md
View file @
8866af03
...
...
@@ -494,7 +494,7 @@ EXPECT_PRED1(IsPositive, 5);
However, this will work:
```
cpp
EXPECT_PRED1
(
*
static_cast
<
bool
(
*
)(
int
)
>
*
(
IsPositive
),
5
);
EXPECT_PRED1
(
static_cast
<
bool
(
*
)(
int
)
>
(
IsPositive
),
5
);
```
(The stuff inside the angled brackets for the
`static_cast`
operator is the
...
...
@@ -512,14 +512,14 @@ bool IsNegative(T x) {
you can use it in a predicate assertion like this:
```
cpp
ASSERT_PRED1
(
IsNegative
*
<
int
>
*
,
-
5
);
ASSERT_PRED1
(
IsNegative
<
int
>
,
-
5
);
```
Things are more interesting if your template has more than one parameters. The
following won't compile:
```
cpp
ASSERT_PRED2
(
*
GreaterThan
<
int
,
int
>
*
,
5
,
0
);
ASSERT_PRED2
(
GreaterThan
<
int
,
int
>
,
5
,
0
);
```
...
...
@@ -528,7 +528,7 @@ which is one more than expected. The workaround is to wrap the predicate
function in parentheses:
```
cpp
ASSERT_PRED2
(
*
(
GreaterThan
<
int
,
int
>
)
*
,
5
,
0
);
ASSERT_PRED2
((
GreaterThan
<
int
,
int
>
),
5
,
0
);
```
...
...
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