MCPcopy Create free account
hub / github.com/defold/defold / TEST

Function TEST

engine/dlib/src/test/test_utf8.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38const char seq2[] = {(char) 0xe2, (char) 0x98, (char) 0x9e, 0};
39
40TEST(dmUtf8, StrLen)
41{
42 ASSERT_EQ(0U, dmUtf8::StrLen(""));
43 ASSERT_EQ(1U, dmUtf8::StrLen("x"));
44
45 ASSERT_EQ(3U, dmUtf8::StrLen(seq1));
46 ASSERT_EQ(1U, dmUtf8::StrLen(seq2));
47}
48
49TEST(dmUtf8, NextChar)
50{

Callers

nothing calls this directly

Calls 3

StrLenFunction · 0.85
NextCharFunction · 0.85
ToUtf8Function · 0.85

Tested by

no test coverage detected