]> git-server-git.apps.pok.os.sepia.ceph.com Git - googletest.git/commitdiff
Merge pull request #2341 from ChrisBaish:master
authorGennadiy Civil <misterg@google.com>
Fri, 2 Aug 2019 17:27:06 +0000 (13:27 -0400)
committerGennadiy Civil <misterg@google.com>
Fri, 2 Aug 2019 17:27:07 +0000 (13:27 -0400)
PiperOrigin-RevId: 261344735

1  2 
googletest/docs/primer.md

index cbb48ec0eb3430fa625f6dc307d333d02b021353,43f1872df0a3e7f3a97e36356a27a75f7817f9b1..30d86a5509b751f2038d2f006c6b3c137d396fc0
@@@ -221,19 -213,13 +221,17 @@@ as `ASSERT_EQ(expected, actual)`, so lo
  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          :
++<!-- mdformat off(github rendering does not support multiline tables) -->
++
+ | 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 |
++<!-- mdformat on-->
 +
  Note that "CASE" in an assertion name means that case is ignored. A `NULL`
  pointer and an empty string are considered *different*.