| 101 | } |
| 102 | |
| 103 | static bool test_insert(const UString &initial, const UString &expected, size_t offset, |
| 104 | const UString &str) |
| 105 | { |
| 106 | auto inserted = insert_codepoints(initial, offset, str); |
| 107 | if (inserted != expected) |
| 108 | { |
| 109 | LogError("\"%s\".inserted(%zu, \"%s\") = \"%s\", expected \"%s\"", initial, offset, str, |
| 110 | inserted, expected); |
| 111 | return false; |
| 112 | } |
| 113 | return true; |
| 114 | } |
| 115 | |
| 116 | int main(int argc, char **argv) |
| 117 | { |
no test coverage detected