| 227 | } |
| 228 | |
| 229 | static bool testAssignFromInitList() |
| 230 | { |
| 231 | std::cout << "testAssignFromInitList()\n"; |
| 232 | cm::String str; |
| 233 | str = { 'a', 'b', 'c' }; |
| 234 | ASSERT_TRUE(str.size() == 3); |
| 235 | ASSERT_TRUE(std::strncmp(str.data(), "abc", 3) == 0); |
| 236 | ASSERT_TRUE(str.is_stable()); |
| 237 | return true; |
| 238 | } |
| 239 | |
| 240 | static bool testConstructFromBuffer() |
| 241 | { |