MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / TEST

Function TEST

test/utf8_compose/Utf8ComposeTest.cpp:19–23  ·  view source on GitHub ↗

ASCII and already-precomposed (NFC) text must pass through untouched (fast path).

Source from the content-addressed store, hash-verified

17
18// ASCII and already-precomposed (NFC) text must pass through untouched (fast path).
19TEST(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.
26TEST(Utf8ComposeNfc, ComposesSingleMark) {

Callers

nothing calls this directly

Calls 1

utf8ComposeNfcFunction · 0.85

Tested by

no test coverage detected