Deleted Added
full compact
test_archive_string_conversion.c (302408) test_archive_string_conversion.c (305188)
1/*-
2 * Copyright (c) 2011-2012 Michihiro NAKAJIMA
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 786 unchanged lines hidden (view full) ---

795 assertEqualIntA(a, ARCHIVE_OK, archive_read_support_filter_all(a));
796 assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_raw(a));
797 assertEqualIntA(a, ARCHIVE_OK,
798 archive_read_open_filename(a, reffile, 512));
799
800 assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae));
801 assert((fp = fopen(testdata, "w")) != NULL);
802 while ((size = archive_read_data(a, buff, 512)) > 0)
1/*-
2 * Copyright (c) 2011-2012 Michihiro NAKAJIMA
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 786 unchanged lines hidden (view full) ---

795 assertEqualIntA(a, ARCHIVE_OK, archive_read_support_filter_all(a));
796 assertEqualIntA(a, ARCHIVE_OK, archive_read_support_format_raw(a));
797 assertEqualIntA(a, ARCHIVE_OK,
798 archive_read_open_filename(a, reffile, 512));
799
800 assertEqualIntA(a, ARCHIVE_OK, archive_read_next_header(a, &ae));
801 assert((fp = fopen(testdata, "w")) != NULL);
802 while ((size = archive_read_data(a, buff, 512)) > 0)
803 fwrite(buff, 1, size, fp);
804 fclose(fp);
803 assertEqualInt(size, fwrite(buff, 1, size, fp));
804 assertEqualInt(0, fclose(fp));
805 assertEqualInt(ARCHIVE_OK, archive_read_free(a));
806
807 test_archive_string_normalization_nfc(testdata);
808 test_archive_string_normalization_mac_nfd(testdata);
809 test_archive_string_canonicalization();
810}
805 assertEqualInt(ARCHIVE_OK, archive_read_free(a));
806
807 test_archive_string_normalization_nfc(testdata);
808 test_archive_string_normalization_mac_nfd(testdata);
809 test_archive_string_canonicalization();
810}