• Home
  • Raw
  • Download

Lines Matching refs:g_assert

52   g_assert (bytes_read == 5);  in test_iconv_state()
53 g_assert (bytes_written == 10); in test_iconv_state()
54 g_assert (strcmp (out, expected) == 0); in test_iconv_state()
74 g_assert (bytes_read == 2); in test_one_half()
75 g_assert (bytes_written == 1); in test_one_half()
76 g_assert (strcmp (out, "\xbd") == 0); in test_one_half()
85 g_assert (bytes_read == 0); in test_one_half()
86 g_assert (bytes_written == 0); in test_one_half()
87 g_assert (out == NULL); in test_one_half()
98 g_assert (bytes_read == 2); in test_one_half()
99 g_assert (bytes_written == 1); in test_one_half()
100 g_assert (strcmp (out, "a") == 0); in test_one_half()
121 g_assert (bytes_read == 4); in test_byte_order()
122 g_assert (bytes_written == 2); in test_byte_order()
123 g_assert (strcmp (out, expected) == 0); in test_byte_order()
132 g_assert (bytes_read == 4); in test_byte_order()
133 g_assert (bytes_written == 2); in test_byte_order()
134 g_assert (strcmp (out, expected) == 0); in test_byte_order()
156 g_assert (items_written == ucs4_len); in check_utf8_to_ucs4()
157 g_assert (result); in check_utf8_to_ucs4()
159 g_assert (result[i] == ucs4[i]); in check_utf8_to_ucs4()
172 g_assert (error || items_read2 == items_read); in check_utf8_to_ucs4()
173 g_assert (error || items_written2 == items_written2); in check_utf8_to_ucs4()
174 g_assert (!!result == !!result2); in check_utf8_to_ucs4()
175 g_assert (!!error == !!error2); in check_utf8_to_ucs4()
178 g_assert (result[i] == result2[i]); in check_utf8_to_ucs4()
191 g_assert (items_read == error_pos); in check_utf8_to_ucs4()
192 g_assert (items_written == ucs4_len); in check_utf8_to_ucs4()
193 g_assert (result); in check_utf8_to_ucs4()
195 g_assert (result[i] == ucs4[i]); in check_utf8_to_ucs4()
199 g_assert (error != NULL); in check_utf8_to_ucs4()
200 g_assert (result == NULL); in check_utf8_to_ucs4()
201 g_assert (items_read == error_pos); in check_utf8_to_ucs4()
204 g_assert (error3 != NULL); in check_utf8_to_ucs4()
205 g_assert (result3 == NULL); in check_utf8_to_ucs4()
211 g_assert (items_read == utf8_len); in check_utf8_to_ucs4()
212 g_assert (items_written == ucs4_len); in check_utf8_to_ucs4()
213 g_assert (result); in check_utf8_to_ucs4()
215 g_assert (result[i] == ucs4[i]); in check_utf8_to_ucs4()
218 g_assert (result3); in check_utf8_to_ucs4()
220 g_assert (result3[i] == ucs4[i]); in check_utf8_to_ucs4()
248 g_assert (error || items_read2 == items_read); in check_ucs4_to_utf8()
249 g_assert (error || items_written2 == items_written); in check_ucs4_to_utf8()
250 g_assert (!!result == !!result2); in check_ucs4_to_utf8()
251 g_assert (!!error == !!error2); in check_ucs4_to_utf8()
253 g_assert (strcmp (result, result2) == 0); in check_ucs4_to_utf8()
265 g_assert (error != NULL); in check_ucs4_to_utf8()
266 g_assert (result == NULL); in check_ucs4_to_utf8()
267 g_assert (items_read == error_pos); in check_ucs4_to_utf8()
270 g_assert (error3 != NULL); in check_ucs4_to_utf8()
271 g_assert (result3 == NULL); in check_ucs4_to_utf8()
277 g_assert (items_read == ucs4_len); in check_ucs4_to_utf8()
278 g_assert (items_written == utf8_len); in check_ucs4_to_utf8()
279 g_assert (result); in check_ucs4_to_utf8()
280 g_assert (strcmp (result, utf8) == 0); in check_ucs4_to_utf8()
283 g_assert (result3); in check_ucs4_to_utf8()
284 g_assert (strcmp (result3, utf8) == 0); in check_ucs4_to_utf8()
312 g_assert (error || items_read2 == items_read); in check_utf8_to_utf16()
313 g_assert (error || items_written2 == items_written2); in check_utf8_to_utf16()
314 g_assert (!!result == !!result2); in check_utf8_to_utf16()
315 g_assert (!!error == !!error2); in check_utf8_to_utf16()
318 g_assert (result[i] == result2[i]); in check_utf8_to_utf16()
331 g_assert (items_read == error_pos); in check_utf8_to_utf16()
332 g_assert (items_written == utf16_len); in check_utf8_to_utf16()
333 g_assert (result); in check_utf8_to_utf16()
335 g_assert (result[i] == utf16[i]); in check_utf8_to_utf16()
339 g_assert (error != NULL); in check_utf8_to_utf16()
340 g_assert (result == NULL); in check_utf8_to_utf16()
341 g_assert (items_read == error_pos); in check_utf8_to_utf16()
344 g_assert (error3 != NULL); in check_utf8_to_utf16()
345 g_assert (result3 == NULL); in check_utf8_to_utf16()
351 g_assert (items_read == utf8_len); in check_utf8_to_utf16()
352 g_assert (items_written == utf16_len); in check_utf8_to_utf16()
353 g_assert (result); in check_utf8_to_utf16()
355 g_assert (result[i] == utf16[i]); in check_utf8_to_utf16()
358 g_assert (result3); in check_utf8_to_utf16()
360 g_assert (result3[i] == utf16[i]); in check_utf8_to_utf16()
387 g_assert (error || items_read2 == items_read); in check_utf16_to_utf8()
388 g_assert (error || items_written2 == items_written); in check_utf16_to_utf8()
389 g_assert (!!result == !!result2); in check_utf16_to_utf8()
390 g_assert (!!error == !!error2); in check_utf16_to_utf8()
392 g_assert (strcmp (result, result2) == 0); in check_utf16_to_utf8()
405 g_assert (items_read == error_pos); in check_utf16_to_utf8()
406 g_assert (items_read + 1 == utf16_len); in check_utf16_to_utf8()
407 g_assert (items_written == utf8_len); in check_utf16_to_utf8()
408 g_assert (result); in check_utf16_to_utf8()
409 g_assert (strcmp (result, utf8) == 0); in check_utf16_to_utf8()
413 g_assert (error != NULL); in check_utf16_to_utf8()
414 g_assert (result == NULL); in check_utf16_to_utf8()
415 g_assert (items_read == error_pos); in check_utf16_to_utf8()
418 g_assert (error3 != NULL); in check_utf16_to_utf8()
419 g_assert (result3 == NULL); in check_utf16_to_utf8()
425 g_assert (items_read == utf16_len); in check_utf16_to_utf8()
426 g_assert (items_written == utf8_len); in check_utf16_to_utf8()
427 g_assert (result); in check_utf16_to_utf8()
428 g_assert (strcmp (result, utf8) == 0); in check_utf16_to_utf8()
431 g_assert (result3); in check_utf16_to_utf8()
432 g_assert (strcmp (result3, utf8) == 0); in check_utf16_to_utf8()
461 g_assert (error || items_read2 == items_read); in check_ucs4_to_utf16()
462 g_assert (error || items_written2 == items_written); in check_ucs4_to_utf16()
463 g_assert (!!result == !!result2); in check_ucs4_to_utf16()
464 g_assert (!!error == !!error2); in check_ucs4_to_utf16()
467 g_assert (result[i] == result2[i]); in check_ucs4_to_utf16()
479 g_assert (error != NULL); in check_ucs4_to_utf16()
480 g_assert (result == NULL); in check_ucs4_to_utf16()
481 g_assert (items_read == error_pos); in check_ucs4_to_utf16()
484 g_assert (error3 != NULL); in check_ucs4_to_utf16()
485 g_assert (result3 == NULL); in check_ucs4_to_utf16()
491 g_assert (items_read == ucs4_len); in check_ucs4_to_utf16()
492 g_assert (items_written == utf16_len); in check_ucs4_to_utf16()
493 g_assert (result); in check_ucs4_to_utf16()
495 g_assert (result[i] == utf16[i]); in check_ucs4_to_utf16()
498 g_assert (result3); in check_ucs4_to_utf16()
500 g_assert (result3[i] == utf16[i]); in check_ucs4_to_utf16()
527 g_assert (error || items_read2 == items_read); in check_utf16_to_ucs4()
528 g_assert (error || items_written2 == items_written2); in check_utf16_to_ucs4()
529 g_assert (!!result == !!result2); in check_utf16_to_ucs4()
530 g_assert (!!error == !!error2); in check_utf16_to_ucs4()
533 g_assert (result[i] == result2[i]); in check_utf16_to_ucs4()
546 g_assert (items_read == error_pos); in check_utf16_to_ucs4()
547 g_assert (items_read + 1 == utf16_len); in check_utf16_to_ucs4()
548 g_assert (items_written == ucs4_len); in check_utf16_to_ucs4()
549 g_assert (result); in check_utf16_to_ucs4()
551 g_assert (result[i] == ucs4[i]); in check_utf16_to_ucs4()
555 g_assert (error != NULL); in check_utf16_to_ucs4()
556 g_assert (result == NULL); in check_utf16_to_ucs4()
557 g_assert (items_read == error_pos); in check_utf16_to_ucs4()
560 g_assert (error3 != NULL); in check_utf16_to_ucs4()
561 g_assert (result3 == NULL); in check_utf16_to_ucs4()
567 g_assert (items_read == utf16_len); in check_utf16_to_ucs4()
568 g_assert (items_written == ucs4_len); in check_utf16_to_ucs4()
569 g_assert (result); in check_utf16_to_ucs4()
571 g_assert (result[i] == ucs4[i]); in check_utf16_to_ucs4()
574 g_assert (result3); in check_utf16_to_ucs4()
576 g_assert (result3[i] == ucs4[i]); in check_utf16_to_ucs4()