/[jscoverage]/trunk/tests/encodings.c
ViewVC logotype

Diff of /trunk/tests/encodings.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 302 by siliconforks, Mon Oct 13 05:11:20 2008 UTC revision 309 by siliconforks, Mon Oct 13 06:24:16 2008 UTC
# Line 177  Line 177 
177    result = jscoverage_bytes_to_characters("US-ASCII", malformed_ascii, 4, &characters, &num_characters);    result = jscoverage_bytes_to_characters("US-ASCII", malformed_ascii, 4, &characters, &num_characters);
178    
179    assert(result == JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE);    assert(result == JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE);
180    #endif
181    
182    /* malformed UTF-8 */    /* malformed UTF-8 */
   /* NOTE: Windows simply decodes as many bytes as it can, then it stops */  
183    uint8_t malformed_utf8[] = {    uint8_t malformed_utf8[] = {
184      'e',      'e',
185      0xe8,      0xe8,
# Line 190  Line 190 
190    result = jscoverage_bytes_to_characters("UTF-8", malformed_utf8, 4, &characters, &num_characters);    result = jscoverage_bytes_to_characters("UTF-8", malformed_utf8, 4, &characters, &num_characters);
191    
192    assert(result == JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE);    assert(result == JSCOVERAGE_ERROR_INVALID_BYTE_SEQUENCE);
 #endif  
193    
194    return 0;    return 0;
195  }  }

Legend:
Removed from v.302  
changed lines
  Added in v.309

  ViewVC Help
Powered by ViewVC 1.1.24