| 61 | } |
| 62 | |
| 63 | static bool testFromCStrNull(cm::String str) |
| 64 | { |
| 65 | cm::String const& str_const = str; |
| 66 | ASSERT_TRUE(bool(str_const) == false); |
| 67 | ASSERT_TRUE(str_const.data() == nullptr); |
| 68 | ASSERT_TRUE(str_const.size() == 0); |
| 69 | ASSERT_TRUE(str_const.empty()); |
| 70 | ASSERT_TRUE(str_const.is_stable()); |
| 71 | ASSERT_TRUE(str.c_str() == nullptr); |
| 72 | ASSERT_TRUE(str.str().empty()); |
| 73 | ASSERT_TRUE(str.is_stable()); |
| 74 | return true; |
| 75 | } |
| 76 | |
| 77 | static bool testConstructFromCStrNull() |
| 78 | { |