105 const char* utf8String;
114 for (
auto testCase : testCases) {
115 const char* str = testCase.utf8String;
117 REPORTER_ASSERT(r, str == testCase.utf8String + strlen(testCase.utf8String));
119 char buff[5] = {0, 0, 0, 0, 0};
121 if (buff[len] != 0) {
122 ERRORF(r,
"unexpected write");
130 ERRORF(r,
"unexpected failure.");
134 ERRORF(r,
"wrote too much");
137 str = testCase.utf8String;