add test for FLAC__metadata_object_seektable_is_legal()

This commit is contained in:
Josh Coalson 2002-06-05 06:17:31 +00:00
parent d40f73d403
commit 7b2e3a3797

View File

@ -397,6 +397,13 @@ int test_metadata_object()
if(!check_seektable_(block, seekpoints, seekpoint_array)) if(!check_seektable_(block, seekpoints, seekpoint_array))
return 1; return 1;
printf("testing FLAC__metadata_object_seektable_is_legal()...");
if(!FLAC__metadata_object_seektable_is_legal(block)) {
printf("FAILED, returned false\n");
return 1;
}
printf("OK\n");
seekpoints = 0; seekpoints = 0;
printf("testing FLAC__metadata_object_seektable_resize_points(shrink to %u)...", seekpoints); printf("testing FLAC__metadata_object_seektable_resize_points(shrink to %u)...", seekpoints);
if(!FLAC__metadata_object_seektable_resize_points(block, seekpoints)) { if(!FLAC__metadata_object_seektable_resize_points(block, seekpoints)) {