Unverified Commit 7abf99d9 authored by Stian Valle's avatar Stian Valle Committed by GitHub
Browse files

Update primer.md

parent baf2115a
......@@ -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.
| Fatal assertion | Nonfatal assertion | Verifies |
| ----------------------- | ----------------------- | ---------------------- |
| `ASSERT_STREQ(str1, | `EXPECT_STREQ(str1, | the two C strings have |
| str2);` | str2);` | the same content |
| `ASSERT_STRNE(str1, | `EXPECT_STRNE(str1, | the two C strings have |
| str2);` | str2);` | different contents |
| `ASSERT_STRCASEEQ(str1, | `EXPECT_STRCASEEQ(str1, | the two C strings have |
| str2);` | str2);` | the same content, |
| ------------------------ | ------------------------ | ---------------------- |
| `ASSERT_STREQ(str1,` | `EXPECT_STREQ(str1,` | the two C strings have |
| `str2);` | `str2);` | the same content |
| `ASSERT_STRNE(str1,` | `EXPECT_STRNE(str1,` | the two C strings have |
| `str2);` | `str2);` | different contents |
| `ASSERT_STRCASEEQ(str1,` | `EXPECT_STRCASEEQ(str1,` | the two C strings have |
| `str2);` | `str2);` | the same content, |
| | | ignoring case |
| `ASSERT_STRCASENE(str1, | `EXPECT_STRCASENE(str1, | the two C strings have |
| str2);` | str2);` | different contents, |
| `ASSERT_STRCASENE(str1,` | `EXPECT_STRCASENE(str1,` | the two C strings have |
| `str2);` | `str2);` | different contents, |
| | | ignoring case |
Note that "CASE" in an assertion name means that case is ignored. A `NULL`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment