diff --git a/test/c/std/wbmp.c b/test/c/std/wbmp.c index 7f2010fe..0fc128dd 100644 --- a/test/c/std/wbmp.c +++ b/test/c/std/wbmp.c @@ -93,17 +93,17 @@ const char* test_wuffs_wbmp_decode_image_config() { wuffs_base__io_buffer src = ((wuffs_base__io_buffer){ .data = global_src_slice, }); - CHECK_STRING(read_file(&src, "test/data/muybridge-frame-000.wbmp")); + CHECK_STRING(read_file(&src, "test/data/bricks-nodither.wbmp")); CHECK_STATUS("decode_image_config", wuffs_wbmp__decoder__decode_image_config(&dec, &ic, &src)); uint32_t got_width = wuffs_base__pixel_config__width(&ic.pixcfg); - uint32_t want_width = 30; + uint32_t want_width = 160; if (got_width != want_width) { RETURN_FAIL("width: got %" PRIu32 ", want %" PRIu32, got_width, want_width); } uint32_t got_height = wuffs_base__pixel_config__height(&ic.pixcfg); - uint32_t want_height = 20; + uint32_t want_height = 120; if (got_height != want_height) { RETURN_FAIL("height: got %" PRIu32 ", want %" PRIu32, got_height, want_height); diff --git a/test/data/README.md b/test/data/README.md index b188b3f9..1190ed79 100644 --- a/test/data/README.md +++ b/test/data/README.md @@ -6,8 +6,9 @@ were generated by script/extract-palette-indexes.go The \*.jpeg files are usually the canonical versions of the test/data images, and other versions (\*.bmp, \*.gif, \*.png, \*.tiff) were generated by -ImageMagick's convert command line tool. The \*.webp versions were generated by -the cwebp command line tool. +ImageMagick's convert command line tool. The \*.wbmp versions were generated by +the `script/convert-png-to-wbmp.go` command line tool. The \*.webp versions +were generated by the cwebp command line tool. diff --git a/test/data/bricks-nodither.wbmp b/test/data/bricks-nodither.wbmp new file mode 100644 index 00000000..8186e868 Binary files /dev/null and b/test/data/bricks-nodither.wbmp differ diff --git a/test/data/hat.wbmp b/test/data/hat.wbmp new file mode 100644 index 00000000..bf30907d Binary files /dev/null and b/test/data/hat.wbmp differ