| 88 | }; |
| 89 | |
| 90 | static bool test_remove(const UString &initial, const UString &expected, size_t offset, |
| 91 | size_t count) |
| 92 | { |
| 93 | auto removed = remove(initial, offset, count); |
| 94 | if (removed != expected) |
| 95 | { |
| 96 | LogError("\"%s\".remove(%zu, %zu) = \"%s\", expected \"%s\"", initial, offset, count, |
| 97 | removed, expected); |
| 98 | return false; |
| 99 | } |
| 100 | return true; |
| 101 | } |
| 102 | |
| 103 | static bool test_insert(const UString &initial, const UString &expected, size_t offset, |
| 104 | const UString &str) |