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
d70cd4e3
Unverified
Commit
d70cd4e3
authored
Feb 25, 2019
by
Ryan Sinnet
Committed by
GitHub
Feb 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix grammatical error in primer.md
parent
37ae1fc5
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 @
d70cd4e3
...
@@ -190,7 +190,7 @@ evaluation order.
...
@@ -190,7 +190,7 @@ evaluation order.
tests if they are in the same memory location, not if they have the same value.
tests if they are in the same memory location, not if they have the same value.
Therefore, if you want to compare C strings (e.g.
`const char*`
) by value, use
Therefore, if you want to compare C strings (e.g.
`const char*`
) by value, use
`ASSERT_STREQ()`
, which will be described later on. In particular, to assert
`ASSERT_STREQ()`
, which will be described later on. In particular, to assert
that a C string is
`NULL`
, use
`ASSERT_STREQ(c_string, NULL)`
. Consider us
e
that a C string is
`NULL`
, use
`ASSERT_STREQ(c_string, NULL)`
. Consider us
ing
`ASSERT_EQ(c_string, nullptr)`
if c++11 is supported. To compare two
`string`
`ASSERT_EQ(c_string, nullptr)`
if c++11 is supported. To compare two
`string`
objects, you should use
`ASSERT_EQ`
.
objects, you should use
`ASSERT_EQ`
.
...
...
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