Update primer.md
Correct formatting in table
This commit is contained in:
parent
2ef13f524b
commit
adb490773e
|
@ -215,16 +215,16 @@ 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`
|
||||||
pointer and an empty string are considered *different*.
|
pointer and an empty string are considered *different*.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user