diff options
author | Chris Baish <chris.baish@gmail.com> | 2019-07-19 06:33:26 (GMT) |
---|---|---|
committer | Chris Baish <chris.baish@gmail.com> | 2019-07-19 06:33:26 (GMT) |
commit | 3525e3984282c827c7207245b1d4a47f4eaf3c91 (patch) | |
tree | 771c8d5275c4d48a0f181fdb33acebc83308a565 /googletest/docs | |
parent | af11cda5656cdaebbd077810a8b469985499ba57 (diff) | |
download | googletest-3525e3984282c827c7207245b1d4a47f4eaf3c91.zip googletest-3525e3984282c827c7207245b1d4a47f4eaf3c91.tar.gz googletest-3525e3984282c827c7207245b1d4a47f4eaf3c91.tar.bz2 |
Moved explanation to single line as wellrefs/pull/2341/head
Diffstat (limited to 'googletest/docs')
-rw-r--r-- | googletest/docs/primer.md | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/googletest/docs/primer.md b/googletest/docs/primer.md index b0646c5..43f1872 100644 --- a/googletest/docs/primer.md +++ b/googletest/docs/primer.md @@ -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*. |