| 33 | } |
| 34 | |
| 35 | static bool testFromNullPtr(cm::String str) |
| 36 | { |
| 37 | cm::String const& str_const = str; |
| 38 | ASSERT_TRUE(bool(str_const) == false); |
| 39 | ASSERT_TRUE(str_const.data() == nullptr); |
| 40 | ASSERT_TRUE(str_const.size() == 0); |
| 41 | ASSERT_TRUE(str_const.empty()); |
| 42 | ASSERT_TRUE(str_const.is_stable()); |
| 43 | ASSERT_TRUE(str.c_str() == nullptr); |
| 44 | ASSERT_TRUE(str.str().empty()); |
| 45 | ASSERT_TRUE(str.is_stable()); |
| 46 | return true; |
| 47 | } |
| 48 | |
| 49 | static bool testConstructFromNullPtr() |
| 50 | { |