mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 16:47:28 +01:00
Generate C function arguments.
Also rename "io.buf1" to just "buf1".
This commit is contained in:
1 parent
ee27dffa9e
commit
4c0a659a18
9 files changed
+106
-29
No files matched your search
+8
-2
@@ -19,7 +19,10 @@ const char* test_filename = "gif/basic.c";
|
||||
|
||||
void test_constructor_not_called() {
|
||||
puffs_gif_lzw_decoder dec;
|
||||
puffs_gif_status status = puffs_gif_lzw_decoder_decode(&dec);
|
||||
puffs_base_buf1 dst = {0};
|
||||
puffs_base_buf1 src = {0};
|
||||
puffs_gif_status status =
|
||||
puffs_gif_lzw_decoder_decode(&dec, &dst, &src, false);
|
||||
if (status != puffs_gif_error_constructor_not_called) {
|
||||
FAIL("test_null_receiver: status: got %d, want %d", status,
|
||||
puffs_gif_error_constructor_not_called);
|
||||
@@ -27,7 +30,10 @@ void test_constructor_not_called() {
|
||||
}
|
||||
|
||||
void test_null_receiver() {
|
||||
puffs_gif_status status = puffs_gif_lzw_decoder_decode(NULL);
|
||||
puffs_base_buf1 dst = {0};
|
||||
puffs_base_buf1 src = {0};
|
||||
puffs_gif_status status =
|
||||
puffs_gif_lzw_decoder_decode(NULL, &dst, &src, false);
|
||||
if (status != puffs_gif_error_null_receiver) {
|
||||
FAIL("test_null_receiver: status: got %d, want %d", status,
|
||||
puffs_gif_error_null_receiver);
|
||||
|
||||
+4
-1
@@ -20,7 +20,10 @@ const char* test_filename = "gif/lzw.c";
|
||||
void test_lzw_decode() {
|
||||
puffs_gif_lzw_decoder dec;
|
||||
puffs_gif_lzw_decoder_constructor(&dec, PUFFS_VERSION, 0);
|
||||
puffs_gif_status status = puffs_gif_lzw_decoder_decode(&dec);
|
||||
puffs_base_buf1 dst = {0};
|
||||
puffs_base_buf1 src = {0};
|
||||
puffs_gif_status status =
|
||||
puffs_gif_lzw_decoder_decode(&dec, &dst, &src, false);
|
||||
if (status != puffs_gif_status_ok) {
|
||||
FAIL("test_lzw_decode: status: got %d, want %d", status,
|
||||
puffs_gif_status_ok);
|
||||
|
||||
Reference in new issue
Block a user