| 143 | } |
| 144 | |
| 145 | static bool is_invalid(test_utf8_char s) |
| 146 | { |
| 147 | bool valid = cm_utf8_is_valid(s.data()) != 0; |
| 148 | if (valid) { |
| 149 | report_invalid(false, s); |
| 150 | printf("expected invalid, reported as valid\n"); |
| 151 | return false; |
| 152 | } |
| 153 | report_invalid(true, s); |
| 154 | printf("invalid as expected\n"); |
| 155 | return true; |
| 156 | } |
| 157 | |
| 158 | int testUTF8(int /*unused*/, char* /*unused*/[]) |
| 159 | { |
no test coverage detected
searching dependent graphs…