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
7abf99d9
Unverified
Commit
7abf99d9
authored
Jul 21, 2018
by
Stian Valle
Committed by
GitHub
Jul 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update primer.md
parent
baf2115a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
primer.md
googletest/docs/primer.md
+9
-9
No files found.
googletest/docs/primer.md
View file @
7abf99d9
...
@@ -220,16 +220,16 @@ The assertions in this group compare two **C strings**. If you want to compare
...
@@ -220,16 +220,16 @@ The assertions in this group compare two **C strings**. If you want to compare
two
`string`
objects, use
`EXPECT_EQ`
,
`EXPECT_NE`
, and etc instead.
two
`string`
objects, use
`EXPECT_EQ`
,
`EXPECT_NE`
, and etc instead.
| Fatal assertion | Nonfatal assertion | Verifies |
| Fatal assertion | Nonfatal assertion | Verifies |
| -----------------------
|
----------------------- | ---------------------- |
| -----------------------
- | -
----------------------- | ---------------------- |
|
`ASSERT_STREQ(str1,
| `
EXPECT_STREQ(str1,
| the two C strings have |
|
`ASSERT_STREQ(str1,
`
|
`EXPECT_STREQ(str1,`
| the two C strings have |
|
str2);
` |
str2);`
| the same content |
|
`str2);`
|
`
str2);`
| the same content |
|
`ASSERT_STRNE(str1,
| `
EXPECT_STRNE(str1,
| the two C strings have |
|
`ASSERT_STRNE(str1,
`
|
`EXPECT_STRNE(str1,`
| the two C strings have |
|
str2);
` |
str2);`
| different contents |
|
`str2);`
|
`
str2);`
| different contents |
|
`ASSERT_STRCASEEQ(str1,
| `
EXPECT_STRCASEEQ(str1,
| the two C strings have |
|
`ASSERT_STRCASEEQ(str1,
`
|
`EXPECT_STRCASEEQ(str1,`
| the two C strings have |
|
str2);
` |
str2);`
| the same content, |
|
`str2);`
|
`
str2);`
| the same content, |
| | | ignoring case |
| | | ignoring case |
|
`ASSERT_STRCASENE(str1,
| `
EXPECT_STRCASENE(str1,
| the two C strings have |
|
`ASSERT_STRCASENE(str1,
`
|
`EXPECT_STRCASENE(str1,`
| the two C strings have |
|
str2);
` |
str2);`
| different contents, |
|
`str2);`
|
`
str2);`
| different contents, |
| | | ignoring case |
| | | ignoring case |
Note that "CASE" in an assertion name means that case is ignored. A
`NULL`
Note that "CASE" in an assertion name means that case is ignored. A
`NULL`
...
...
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