Add more test/data/*.wbmp files
diff --git a/test/c/std/wbmp.c b/test/c/std/wbmp.c
index 7f2010f..0fc128d 100644
--- a/test/c/std/wbmp.c
+++ b/test/c/std/wbmp.c
@@ -93,17 +93,17 @@
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 b188b3f..1190ed7 100644
--- a/test/data/README.md
+++ b/test/data/README.md
@@ -6,8 +6,9 @@
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 0000000..8186e86
--- /dev/null
+++ b/test/data/bricks-nodither.wbmp
Binary files differ
diff --git a/test/data/hat.wbmp b/test/data/hat.wbmp
new file mode 100644
index 0000000..bf30907
--- /dev/null
+++ b/test/data/hat.wbmp
Binary files differ