| 130 | } |
| 131 | |
| 132 | static bool is_valid(test_utf8_char s) |
| 133 | { |
| 134 | bool valid = cm_utf8_is_valid(s.data()) != 0; |
| 135 | if (!valid) { |
| 136 | report_valid(false, s); |
| 137 | printf("expected valid, reported as invalid\n"); |
| 138 | return false; |
| 139 | } |
| 140 | report_valid(true, s); |
| 141 | printf("valid as expected\n"); |
| 142 | return true; |
| 143 | } |
| 144 | |
| 145 | static bool is_invalid(test_utf8_char s) |
| 146 | { |
no test coverage detected
searching dependent graphs…