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
82396f2d
Commit
82396f2d
authored
Sep 02, 2016
by
tommyleo2
Committed by
GitHub
Sep 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Primer.md
fix bug in string comparison assertions table where _str2_ is mistakenly written as _str_2
parent
ed9d1e1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Primer.md
googletest/docs/Primer.md
+1
-1
No files found.
googletest/docs/Primer.md
View file @
82396f2d
...
...
@@ -179,7 +179,7 @@ two `string` objects, use `EXPECT_EQ`, `EXPECT_NE`, and etc instead.
|
**Fatal assertion**
|
**Nonfatal assertion**
|
**Verifies**
|
|:--------------------|:-----------------------|:-------------|
|
`ASSERT_STREQ(`
_str1_
`, `
_str2_
`);`
|
`EXPECT_STREQ(`
_str1_
`, `
_str
_
2
`);`
| the two C strings have the same content |
|
`ASSERT_STREQ(`
_str1_
`, `
_str2_
`);`
|
`EXPECT_STREQ(`
_str1_
`, `
_str
2_
`);`
| the two C strings have the same content |
|
`ASSERT_STRNE(`
_str1_
`, `
_str2_
`);`
|
`EXPECT_STRNE(`
_str1_
`, `
_str2_
`);`
| the two C strings have different content |
|
`ASSERT_STRCASEEQ(`
_str1_
`, `
_str2_
`);`
|
`EXPECT_STRCASEEQ(`
_str1_
`, `
_str2_
`);`
| the two C strings have the same content, ignoring case |
|
`ASSERT_STRCASENE(`
_str1_
`, `
_str2_
`);`
|
`EXPECT_STRCASENE(`
_str1_
`, `
_str2_
`);`
| the two C strings have different content, ignoring case |
...
...
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