MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / test_insert

Function test_insert

tests/test_unicode.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static bool test_insert(const UString &initial, const UString &expected, size_t offset,
104 const UString &str)
105{
106 auto inserted = insert_codepoints(initial, offset, str);
107 if (inserted != expected)
108 {
109 LogError("\"%s\".inserted(%zu, \"%s\") = \"%s\", expected \"%s\"", initial, offset, str,
110 inserted, expected);
111 return false;
112 }
113 return true;
114}
115
116int main(int argc, char **argv)
117{

Callers 1

mainFunction · 0.85

Calls 1

insert_codepointsFunction · 0.85

Tested by

no test coverage detected