| 217 | } |
| 218 | |
| 219 | static bool testConstructFromInitList() |
| 220 | { |
| 221 | std::cout << "testConstructFromInitList()\n"; |
| 222 | cm::String const str{ 'a', 'b', 'c' }; |
| 223 | ASSERT_TRUE(str.size() == 3); |
| 224 | ASSERT_TRUE(std::strncmp(str.data(), "abc", 3) == 0); |
| 225 | ASSERT_TRUE(str.is_stable()); |
| 226 | return true; |
| 227 | } |
| 228 | |
| 229 | static bool testAssignFromInitList() |
| 230 | { |