summaryrefslogtreecommitdiffstats
path: root/googletest/docs
diff options
context:
space:
mode:
authorStian Valle <stianvalle@gmail.com>2018-07-21 13:50:45 (GMT)
committerGitHub <noreply@github.com>2018-07-21 13:50:45 (GMT)
commitbb9fc6f66e4954576a51cc05c99f01ff97c2da29 (patch)
tree0863d2dd69f8e714564145a9ea61f1d2d704297b /googletest/docs
parent7abf99d941ba0c865114702bff4b4e88b3e34564 (diff)
downloadgoogletest-bb9fc6f66e4954576a51cc05c99f01ff97c2da29.zip
googletest-bb9fc6f66e4954576a51cc05c99f01ff97c2da29.tar.gz
googletest-bb9fc6f66e4954576a51cc05c99f01ff97c2da29.tar.bz2
Update primer.mdrefs/pull/1678/head
Diffstat (limited to 'googletest/docs')
-rw-r--r--googletest/docs/primer.md18
1 files changed, 6 insertions, 12 deletions
diff --git a/googletest/docs/primer.md b/googletest/docs/primer.md
index 7e03112..260d50b 100644
--- a/googletest/docs/primer.md
+++ b/googletest/docs/primer.md
@@ -219,18 +219,12 @@ as `ASSERT_EQ(expected, actual)`, so lots of existing code uses this order. Now
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, |
-| | | ignoring case |
-| `ASSERT_STRCASENE(str1,` | `EXPECT_STRCASENE(str1,` | the two C strings have |
-| `str2);` | `str2);` | different contents, |
-| | | ignoring case |
+| Fatal assertion | Nonfatal assertion | Verifies |
+| ------------------------------- | ------------------------------- | -------------------------------------------------------- |
+| `ASSERT_STREQ(str1, str2);` | `EXPECT_STREQ(str1, str2);` | the two C strings have the same content |
+| `ASSERT_STRNE(str1, str2);` | `EXPECT_STRNE(str1, str2);` | the two C strings have different contents |
+| `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 contents, ignoring case |
Note that "CASE" in an assertion name means that case is ignored. A `NULL`
pointer and an empty string are considered *different*.