Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
d175c8bf
Unverified
Commit
d175c8bf
authored
Oct 30, 2017
by
Gennadiy Civil
Committed by
GitHub
Oct 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1313 from aninf-wo/heth/fix-faq-stars-issue-1312
remove markdown stars (bold) from code examples
parents
43d6ad75
8866af03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
FAQ.md
googletest/docs/FAQ.md
+4
-4
No files found.
googletest/docs/FAQ.md
View file @
d175c8bf
...
@@ -494,7 +494,7 @@ EXPECT_PRED1(IsPositive, 5);
...
@@ -494,7 +494,7 @@ EXPECT_PRED1(IsPositive, 5);
However, this will work:
However, this will work:
```
cpp
```
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
(The stuff inside the angled brackets for the
`static_cast`
operator is the
...
@@ -512,14 +512,14 @@ bool IsNegative(T x) {
...
@@ -512,14 +512,14 @@ bool IsNegative(T x) {
you can use it in a predicate assertion like this:
you can use it in a predicate assertion like this:
```
cpp
```
cpp
ASSERT_PRED1
(
IsNegative
*<
int
>*
,
-
5
);
ASSERT_PRED1
(
IsNegative
<
int
>
,
-
5
);
```
```
Things are more interesting if your template has more than one parameters. The
Things are more interesting if your template has more than one parameters. The
following won't compile:
following won't compile:
```
cpp
```
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
...
@@ -528,7 +528,7 @@ which is one more than expected. The workaround is to wrap the predicate
function in parentheses:
function in parentheses:
```
cpp
```
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