| 5 | using namespace OpenApoc; |
| 6 | |
| 7 | static bool test_32_8_roundtrip(const UString &str) |
| 8 | { |
| 9 | auto u32str = to_u32string(str); |
| 10 | auto u8str = to_ustring(u32str); |
| 11 | if (u8str != str) |
| 12 | { |
| 13 | LogError("String \"%s\" ended up as \"%s\" after utf8->utf32->utf8 roundtrip", str, u8str); |
| 14 | return false; |
| 15 | } |
| 16 | return true; |
| 17 | } |
| 18 | |
| 19 | struct example_unicode |
| 20 | { |
no test coverage detected