ASCII and already-precomposed (NFC) text must pass through untouched (fast path).
| 17 | |
| 18 | // ASCII and already-precomposed (NFC) text must pass through untouched (fast path). |
| 19 | TEST(Utf8ComposeNfc, PassesThroughAsciiAndNfc) { |
| 20 | EXPECT_EQ(utf8ComposeNfc(""), ""); |
| 21 | EXPECT_EQ(utf8ComposeNfc("hello world"), "hello world"); |
| 22 | EXPECT_EQ(utf8ComposeNfc("caf\xC3\xA9"), "caf\xC3\xA9"); // é already U+00E9 |
| 23 | } |
| 24 | |
| 25 | // Single combining mark composes onto its base letter. |
| 26 | TEST(Utf8ComposeNfc, ComposesSingleMark) { |
nothing calls this directly
no test coverage detected