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

Function test_remove

tests/test_unicode.cpp:90–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88};
89
90static bool test_remove(const UString &initial, const UString &expected, size_t offset,
91 size_t count)
92{
93 auto removed = remove(initial, offset, count);
94 if (removed != expected)
95 {
96 LogError("\"%s\".remove(%zu, %zu) = \"%s\", expected \"%s\"", initial, offset, count,
97 removed, expected);
98 return false;
99 }
100 return true;
101}
102
103static bool test_insert(const UString &initial, const UString &expected, size_t offset,
104 const UString &str)

Callers 1

mainFunction · 0.85

Calls 1

removeFunction · 0.85

Tested by

no test coverage detected