Project

General

Profile

Feature #75

code coverage - ConvertUTF.c

Added by Jason Pyeron over 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
01/05/2015
Due date:
% Done:

0%


Description

Create unit test(s) to address the finge cases

14:  212:ConversionResult ConvertUTF16toUTF8 (
...
-: 240: } else { /* We don't have the 16 bits following the high surrogate. /
#####: 241: --source; /
return to the high surrogate /
#####: 242: result = sourceExhausted;
#####: 243: break;
3: 244: }
110: 245: } else if (flags == strictConversion) {
-: 246: /
UTF-16 surrogate values are illegal in UTF-32 /
110: 247: if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END) {
#####: 248: --source; /
return to the illegal value itself */
#####: 249: result = sourceIllegal;
#####: 250: break;
-: 251: }
-: 252: }

Also available in: Atom PDF