mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Re-organize test/c/std/gif.c.
This commit is contained in:
1 parent
622d115148
commit
dec40addf5
1 file changed
+13
-13
+13
-13
@@ -25,18 +25,6 @@ uint8_t global_src_buffer[BUFFER_SIZE];
|
||||
|
||||
// ---------------- Basic Tests
|
||||
|
||||
void test_constructor_not_called() {
|
||||
test_funcname = __func__;
|
||||
puffs_gif_lzw_decoder dec = {{0}};
|
||||
puffs_base_buf1 dst = {0};
|
||||
puffs_base_buf1 src = {0};
|
||||
puffs_gif_status status = puffs_gif_lzw_decoder_decode(&dec, &dst, &src);
|
||||
if (status != puffs_gif_error_constructor_not_called) {
|
||||
FAIL("status: got %d, want %d", status,
|
||||
puffs_gif_error_constructor_not_called);
|
||||
}
|
||||
}
|
||||
|
||||
void test_bad_argument_null() {
|
||||
test_funcname = __func__;
|
||||
puffs_gif_lzw_decoder dec;
|
||||
@@ -84,6 +72,18 @@ void test_bad_receiver() {
|
||||
}
|
||||
}
|
||||
|
||||
void test_constructor_not_called() {
|
||||
test_funcname = __func__;
|
||||
puffs_gif_lzw_decoder dec = {{0}};
|
||||
puffs_base_buf1 dst = {0};
|
||||
puffs_base_buf1 src = {0};
|
||||
puffs_gif_status status = puffs_gif_lzw_decoder_decode(&dec, &dst, &src);
|
||||
if (status != puffs_gif_error_constructor_not_called) {
|
||||
FAIL("status: got %d, want %d", status,
|
||||
puffs_gif_error_constructor_not_called);
|
||||
}
|
||||
}
|
||||
|
||||
void test_puffs_version_bad() {
|
||||
test_funcname = __func__;
|
||||
puffs_gif_lzw_decoder dec;
|
||||
@@ -249,10 +249,10 @@ cleanup0:;
|
||||
// The empty comments forces clang-format to place one element per line.
|
||||
test tests[] = {
|
||||
// Basic Tests
|
||||
test_constructor_not_called, //
|
||||
test_bad_argument_null, //
|
||||
test_bad_argument_out_of_range, //
|
||||
test_bad_receiver, //
|
||||
test_constructor_not_called, //
|
||||
test_puffs_version_bad, //
|
||||
test_puffs_version_good, //
|
||||
test_status_is_error, //
|
||||
|
||||
Reference in new issue
Block a user