MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / TestCharUtilBasic

Function TestCharUtilBasic

src/twtest/charutil_t.cpp:80–89  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////// Basic //////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

78// Basic
79///////////////////////////////////////////////////////////////////////////
80void TestCharUtilBasic()
81{
82 CheckChars("foo");
83 CheckChars("fo\x23 54");
84
85 if (localeIsUtf8())
86 CheckChars("\U0001F408", 4); //Cat emoji, if UTF-8
87 else
88 CheckChars("\U0001F408", 1); // just a bag of bytes otherwise
89}
90
91void RegisterSuite_CharUtil()
92{

Callers

nothing calls this directly

Calls 2

CheckCharsFunction · 0.85
localeIsUtf8Function · 0.85

Tested by

no test coverage detected