| 379 | } |
| 380 | |
| 381 | void string_test::test_copy() |
| 382 | { |
| 383 | std::string check{"CCABB"}; |
| 384 | |
| 385 | std::string str1{"ACCCA"}; |
| 386 | std::string str2{"BBBBB"}; |
| 387 | |
| 388 | str1.copy(const_cast<char*>(str2.c_str()), 3, 2); |
| 389 | test_eq( |
| 390 | "copy", |
| 391 | str2.begin(), str2.end(), |
| 392 | check.begin(), check.end() |
| 393 | ); |
| 394 | } |
| 395 | |
| 396 | void string_test::test_find() |
| 397 | { |