]> git-server-git.apps.pok.os.sepia.ceph.com Git - googletest.git/commitdiff
Moved explanation to single line as well
authorChris Baish <chris.baish@gmail.com>
Fri, 19 Jul 2019 06:33:26 +0000 (07:33 +0100)
committerChris Baish <chris.baish@gmail.com>
Fri, 19 Jul 2019 06:33:26 +0000 (07:33 +0100)
googletest/docs/primer.md

index b0646c5719d33e38c1ae03511b6485efbf398cbf..43f1872df0a3e7f3a97e36356a27a75f7817f9b1 100644 (file)
@@ -213,18 +213,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,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          |
+| 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*.