Rename test/testdata to test/data

This commit is contained in:
Nigel Tao committed 2018-03-16 10:48:33 +11:00
1 parent bbc3d34e1b
commit d1399fac19
107 files changed
+110 -114

No files matched your search

+3 -3
View File
@@ -110,9 +110,9 @@ output.
# GIF
The 1k, 10k, etc. numbers are approximately how many bytes of pixel data there
are in the decoded image. For example, the `test/testdata/harvesters.*` images
are 1165 × 859 (approximately 1000k pixels) and a GIF image (a paletted image)
is 1 byte per pixel.
are in the decoded image. For example, the `test/data/harvesters.*` images are
1165 × 859 (approximately 1000k pixels) and a GIF image (a paletted image) is 1
byte per pixel.
name speed
+1 -1
View File
@@ -16,7 +16,7 @@
gifplayer prints an ASCII representation of the GIF image read from stdin. To
play Eadweard Muybridge's iconic galloping horse animation, run:
$cc gifplayer.c && ./a.out < ../../test/testdata/muybridge.gif; rm -f a.out
$cc gifplayer.c && ./a.out < ../../test/data/muybridge.gif; rm -f a.out
for a C compiler $cc, such as clang or gcc.
*/
+1 -1
View File
@@ -118,7 +118,7 @@ int main(int argc, char** argv) {
/*
The remainder of this C program was generated from running this Go program via:
go run x.go < ../../test/testdata/pjw-thumbnail.gif
go run x.go < ../../test/data/pjw-thumbnail.gif
----
package main
+1 -1
View File
@@ -24,7 +24,7 @@ When working on the fuzz implementation, or as a sanity check, defining
WUFFS_CONFIG__FUZZLIB_MAIN will let you manually run fuzz over a set of files:
g++ -DWUFFS_CONFIG__FUZZLIB_MAIN gif_fuzzer.cc
./a.out ../../../test/testdata/*.gif
./a.out ../../../test/data/*.gif
rm -f ./a.out
It should print "PASS", amongst other information, and exit(0).
+1 -1
View File
@@ -24,7 +24,7 @@ When working on the fuzz implementation, or as a sanity check, defining
WUFFS_CONFIG__FUZZLIB_MAIN will let you manually run fuzz over a set of files:
g++ -DWUFFS_CONFIG__FUZZLIB_MAIN zlib_fuzzer.cc
./a.out ../../../test/testdata/*.zlib
./a.out ../../../test/data/*.zlib
rm -f ./a.out
It should print "PASS", amongst other information, and exit(0).
+1 -1
View File
@@ -57,7 +57,7 @@ func main() {
}
func main1() error {
src, err := ioutil.ReadFile("../../test/testdata/harvesters.gif")
src, err := ioutil.ReadFile("../../test/data/harvesters.gif")
if err != nil {
return err
}
+1 -1
View File
@@ -62,7 +62,7 @@ const LAST_PIXEL: u8 = 3; // Bottom right pixel's blue component is 0x03.
fn main() {
let mut dst = [0; NUM_BYTES];
let src = include_bytes!("../../../test/testdata/harvesters.gif");
let src = include_bytes!("../../../test/data/harvesters.gif");
let start = Instant::now();
+1 -1
View File
@@ -50,7 +50,7 @@ const LAST_PIXEL: u8 = 1; // Bottom right pixel's palette index is 0x01.
fn main() {
let mut dst = [0; NUM_BYTES];
let src = include_bytes!("../../../test/testdata/harvesters.gif");
let src = include_bytes!("../../../test/data/harvesters.gif");
let start = Instant::now();
+1 -1
View File
@@ -20,7 +20,7 @@ package main
// #include lines that uses "quoted files" (but not <bracketed files>).
//
// The output should be a stand-alone C file that other people can easily
// compile and run with no further dependencies, other than testdata files.
// compile and run with no further dependencies, other than test/data files.
//
// Usage: go run inline-c-relative-includes.go path/to/foo.c
+6 -6
View File
@@ -21,9 +21,9 @@ Wrangling those formats that build on deflate (gzip, zip and zlib) is not
provided by this package. For zlib, look at the `std/zlib` package instead. The
other formats are TODO.
For example, look at `test/testdata/romeo.txt*`. First, the uncompressed text:
For example, look at `test/data/romeo.txt*`. First, the uncompressed text:
$ xxd test/testdata/romeo.txt
$ xxd test/data/romeo.txt
00000000: 526f 6d65 6f20 616e 6420 4a75 6c69 6574 Romeo and Juliet
00000010: 0a45 7863 6572 7074 2066 726f 6d20 4163 .Excerpt from Ac
etc
@@ -32,7 +32,7 @@ For example, look at `test/testdata/romeo.txt*`. First, the uncompressed text:
The raw deflate encoding:
$ xxd test/testdata/romeo.txt.deflate
$ xxd test/data/romeo.txt.deflate
00000000: 4d53 c16e db30 0cbd f32b d853 2e46 0e3d MS.n.0...+.S.F.=
00000010: 2e87 20ed 0234 c5ba 0049 861e 861d 149b .. ..4...I......
etc
@@ -45,7 +45,7 @@ C string name of the original, uncompressed file, "romeo.txt", amongst other
data. The footer contains a 4 byte CRC32 checksum and a 4 byte length of the
uncompressed file (0x3ae = 942 bytes).
$ xxd test/testdata/romeo.txt.gz
$ xxd test/data/romeo.txt.gz
00000000: 1f8b 0808 26d8 5d59 0003 726f 6d65 6f2e ....&.]Y..romeo.
00000010: 7478 7400 4d53 c16e db30 0cbd f32b d853 txt.MS.n.0...+.S
etc
@@ -56,7 +56,7 @@ The zlib format wraps a 2 byte header and 4 byte footer around the raw deflate
data. The footer contains a 4 byte Adler32 checksum. TODO: move this to
std/zlib/README.md.
$ xxd test/testdata/romeo.txt.zlib
$ xxd test/data/romeo.txt.zlib
00000000: 789c 4d53 c16e db30 0cbd f32b d853 2e46 x.MS.n.0...+.S.F
00000010: 0e3d 2e87 20ed 0234 c5ba 0049 861e 861d .=.. ..4...I....
etc
@@ -66,7 +66,7 @@ std/zlib/README.md.
# Wire Format Worked Example
Consider `test/testdata/romeo.txt.deflate`. The relevant spec is RFC 1951.
Consider `test/data/romeo.txt.deflate`. The relevant spec is RFC 1951.
offset xoffset ASCII hex binary
000000 0x0000 M 0x4D 0b_0100_1101
+10 -10
View File
@@ -7,7 +7,7 @@ specification](https://www.w3.org/Graphics/GIF/spec-gif89a.txt).
# Wire Format Worked Example
Consider `test/testdata/bricks-nodither.gif`.
Consider `test/data/bricks-nodither.gif`.
offset xoffset ASCII hex binary
000000 0x0000 G 0x47 0b_0100_0111
@@ -206,10 +206,10 @@ Significant Bits) and MSB (Most Significant Bits) first. The GIF format uses
LSB first. The PDF and TIFF formats use MSB first, but are not discussed here.
It is not an official format, but the
`test/testdata/bricks-nodither.indexes.giflzw` file contains the extracted
"Pixel Data" payload from `test/testdata/bricks-nodither.gif`, preceded by the
one byte `log2(literal_width)`. Deriving a separate file, as a separate,
contiguous stream, makes it easier to discuss the LZW compression format.
`test/data/bricks-nodither.indexes.giflzw` file contains the extracted "Pixel
Data" payload from `test/data/bricks-nodither.gif`, preceded by the one byte
`log2(literal_width)`. Deriving a separate file, as a separate, contiguous
stream, makes it easier to discuss the LZW compression format.
offset xoffset ASCII hex binary
000000 0x0000 . 0x08 0b_0000_1000
@@ -284,8 +284,8 @@ depending on `max`. For example, if `max` is in the range [256, 511] then the
next code takes 9 bits, if `max` is in the range [512, 1023] then `width ==
10`, and so on. For GIF, when a code spans multiple bytes, codes are formed
Least Significant Bits first. For the
`test/testdata/bricks-nodither.indexes.giflzw` example, `l2lw == 8` and so
`width` starts at 9 bits. Printing the bits on byte boundaries give:
`test/data/bricks-nodither.indexes.giflzw` example, `l2lw == 8` and so `width`
starts at 9 bits. Printing the bits on byte boundaries give:
offset xoffset ASCII hex binary
000001 0x0001 . 0x00 0b_0000_0000
@@ -452,8 +452,8 @@ bytes and then an 0xD9.
## Actual Pixel Indexes
It is also not an official format, but for reference, the
`test/testdata/bricks-nodither.indexes` contains the decoded
`test/testdata/bricks-nodither.indexes.giflzw` data:
`test/data/bricks-nodither.indexes` contains the decoded
`test/data/bricks-nodither.indexes.giflzw` data:
offset xoffset ASCII hex binary
000000 0x0000 . 0xDC 0b_1101_1100
@@ -486,6 +486,6 @@ We have 19200 = 160 × 120 pixels. The top row starts with five pixels with RGB
values indexed by 0xDC (or 220 in decimal, and recall that the GCT maps color
220 to {0x0F, 0xA7, 0xF6}), the bottom row ends with index 0x4F.
Indeed, opening `test/testdata/bricks-nodither.gif` in an image editor should
Indeed, opening `test/data/bricks-nodither.gif` in an image editor should
verify that the top left pixel's RGB is {0x0F, 0xA7, 0xF6}, and likewise the
bottom right pixel's RGB is {0x01, 0x24, 0x63}.
+27 -27
View File
@@ -50,68 +50,68 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
// The src_offset0 and src_offset1 magic numbers come from:
//
// go run script/extract-flate-offsets.go test/testdata/*.gz
// go run script/extract-flate-offsets.go test/data/*.gz
//
// The empty comments forces clang-format to place one element per line.
golden_test crc32_midsummer_gt = {
.src_filename = "../../testdata/midsummer.txt", //
.src_filename = "../../data/midsummer.txt", //
};
golden_test crc32_pi_gt = {
.src_filename = "../../testdata/pi.txt", //
.src_filename = "../../data/pi.txt", //
};
golden_test deflate_256_bytes_gt = {
.want_filename = "../../testdata/artificial/256.bytes", //
.src_filename = "../../testdata/artificial/256.bytes.gz", //
.src_offset0 = 20, //
.src_offset1 = 281, //
.want_filename = "../../data/artificial/256.bytes", //
.src_filename = "../../data/artificial/256.bytes.gz", //
.src_offset0 = 20, //
.src_offset1 = 281, //
};
golden_test deflate_deflate_backref_crosses_blocks_gt = {
.want_filename =
"../../testdata/artificial/"
"../../data/artificial/"
"deflate-backref-crosses-blocks.deflate.decompressed",
.src_filename =
"../../testdata/artificial/"
"../../data/artificial/"
"deflate-backref-crosses-blocks.deflate",
};
golden_test deflate_midsummer_gt = {
.want_filename = "../../testdata/midsummer.txt", //
.src_filename = "../../testdata/midsummer.txt.gz", //
.src_offset0 = 24, //
.src_offset1 = 5166, //
.want_filename = "../../data/midsummer.txt", //
.src_filename = "../../data/midsummer.txt.gz", //
.src_offset0 = 24, //
.src_offset1 = 5166, //
};
golden_test deflate_pi_gt = {
.want_filename = "../../testdata/pi.txt", //
.src_filename = "../../testdata/pi.txt.gz", //
.src_offset0 = 17, //
.src_offset1 = 48335, //
.want_filename = "../../data/pi.txt", //
.src_filename = "../../data/pi.txt.gz", //
.src_offset0 = 17, //
.src_offset1 = 48335, //
};
golden_test deflate_romeo_gt = {
.want_filename = "../../testdata/romeo.txt", //
.src_filename = "../../testdata/romeo.txt.gz", //
.src_offset0 = 20, //
.src_offset1 = 550, //
.want_filename = "../../data/romeo.txt", //
.src_filename = "../../data/romeo.txt.gz", //
.src_offset0 = 20, //
.src_offset1 = 550, //
};
golden_test deflate_romeo_fixed_gt = {
.want_filename = "../../testdata/romeo.txt", //
.src_filename = "../../testdata/romeo.txt.fixed-huff.deflate", //
.want_filename = "../../data/romeo.txt", //
.src_filename = "../../data/romeo.txt.fixed-huff.deflate", //
};
golden_test gzip_midsummer_gt = {
.want_filename = "../../testdata/midsummer.txt", //
.src_filename = "../../testdata/midsummer.txt.gz", //
.want_filename = "../../data/midsummer.txt", //
.src_filename = "../../data/midsummer.txt.gz", //
};
golden_test gzip_pi_gt = {
.want_filename = "../../testdata/pi.txt", //
.src_filename = "../../testdata/pi.txt.gz", //
.want_filename = "../../data/pi.txt", //
.src_filename = "../../data/pi.txt.gz", //
};
// ---------------- Deflate Tests
+42 -46
View File
@@ -277,34 +277,32 @@ bool do_test_wuffs_lzw_decode(const char* src_filename,
void test_wuffs_lzw_decode_many_big_reads() {
CHECK_FOCUS(__func__);
do_test_wuffs_lzw_decode("../../testdata/bricks-gray.indexes.giflzw", 14731,
"../../testdata/bricks-gray.indexes", 19200, 0,
4096);
do_test_wuffs_lzw_decode("../../data/bricks-gray.indexes.giflzw", 14731,
"../../data/bricks-gray.indexes", 19200, 0, 4096);
}
void test_wuffs_lzw_decode_many_small_writes_reads() {
CHECK_FOCUS(__func__);
do_test_wuffs_lzw_decode("../../testdata/bricks-gray.indexes.giflzw", 14731,
"../../testdata/bricks-gray.indexes", 19200, 41, 43);
do_test_wuffs_lzw_decode("../../data/bricks-gray.indexes.giflzw", 14731,
"../../data/bricks-gray.indexes", 19200, 41, 43);
}
void test_wuffs_lzw_decode_bricks_dither() {
CHECK_FOCUS(__func__);
do_test_wuffs_lzw_decode("../../testdata/bricks-dither.indexes.giflzw", 14923,
"../../testdata/bricks-dither.indexes", 19200, 0, 0);
do_test_wuffs_lzw_decode("../../data/bricks-dither.indexes.giflzw", 14923,
"../../data/bricks-dither.indexes", 19200, 0, 0);
}
void test_wuffs_lzw_decode_bricks_nodither() {
CHECK_FOCUS(__func__);
do_test_wuffs_lzw_decode("../../testdata/bricks-nodither.indexes.giflzw",
13382, "../../testdata/bricks-nodither.indexes",
19200, 0, 0);
do_test_wuffs_lzw_decode("../../data/bricks-nodither.indexes.giflzw", 13382,
"../../data/bricks-nodither.indexes", 19200, 0, 0);
}
void test_wuffs_lzw_decode_pi() {
CHECK_FOCUS(__func__);
do_test_wuffs_lzw_decode("../../testdata/pi.txt.giflzw", 50550,
"../../testdata/pi.txt", 100003, 0, 0);
do_test_wuffs_lzw_decode("../../data/pi.txt.giflzw", 50550,
"../../data/pi.txt", 100003, 0, 0);
}
// ---------------- LZW Benches
@@ -350,12 +348,12 @@ bool do_bench_wuffs_lzw_decode(const char* filename, uint64_t reps) {
void bench_wuffs_lzw_decode_20k() {
CHECK_FOCUS(__func__);
do_bench_wuffs_lzw_decode("../../testdata/bricks-gray.indexes.giflzw", 5000);
do_bench_wuffs_lzw_decode("../../data/bricks-gray.indexes.giflzw", 5000);
}
void bench_wuffs_lzw_decode_100k() {
CHECK_FOCUS(__func__);
do_bench_wuffs_lzw_decode("../../testdata/pi.txt.giflzw", 1000);
do_bench_wuffs_lzw_decode("../../data/pi.txt.giflzw", 1000);
}
// ---------------- GIF Tests
@@ -532,7 +530,7 @@ void test_wuffs_gif_call_sequence() {
wuffs_base__buf1 got = {.ptr = global_got_buffer, .len = BUFFER_SIZE};
wuffs_base__buf1 src = {.ptr = global_src_buffer, .len = BUFFER_SIZE};
if (!read_file(&src, "../../testdata/bricks-dither.gif")) {
if (!read_file(&src, "../../data/bricks-dither.gif")) {
return;
}
@@ -559,7 +557,7 @@ void test_wuffs_gif_decode_animated() {
wuffs_base__buf1 got = {.ptr = global_got_buffer, .len = BUFFER_SIZE};
wuffs_base__buf1 src = {.ptr = global_src_buffer, .len = BUFFER_SIZE};
if (!read_file(&src, "../../testdata/animated-red-blue.gif")) {
if (!read_file(&src, "../../data/animated-red-blue.gif")) {
return;
}
@@ -618,23 +616,23 @@ void test_wuffs_gif_decode_animated() {
void test_wuffs_gif_decode_input_is_a_gif() {
CHECK_FOCUS(__func__);
do_test_wuffs_gif_decode("../../testdata/bricks-dither.gif",
"../../testdata/bricks-dither.palette",
"../../testdata/bricks-dither.indexes", 0, 0);
do_test_wuffs_gif_decode("../../data/bricks-dither.gif",
"../../data/bricks-dither.palette",
"../../data/bricks-dither.indexes", 0, 0);
}
void test_wuffs_gif_decode_input_is_a_gif_many_big_reads() {
CHECK_FOCUS(__func__);
do_test_wuffs_gif_decode("../../testdata/bricks-dither.gif",
"../../testdata/bricks-dither.palette",
"../../testdata/bricks-dither.indexes", 0, 4096);
do_test_wuffs_gif_decode("../../data/bricks-dither.gif",
"../../data/bricks-dither.palette",
"../../data/bricks-dither.indexes", 0, 4096);
}
void test_wuffs_gif_decode_input_is_a_gif_many_medium_reads() {
CHECK_FOCUS(__func__);
do_test_wuffs_gif_decode("../../testdata/bricks-dither.gif",
"../../testdata/bricks-dither.palette",
"../../testdata/bricks-dither.indexes", 0, 787);
do_test_wuffs_gif_decode("../../data/bricks-dither.gif",
"../../data/bricks-dither.palette",
"../../data/bricks-dither.indexes", 0, 787);
// The magic 787 tickles being in the middle of a decode_extension skip32
// call.
//
@@ -643,9 +641,9 @@ void test_wuffs_gif_decode_input_is_a_gif_many_medium_reads() {
void test_wuffs_gif_decode_input_is_a_gif_many_small_writes_reads() {
CHECK_FOCUS(__func__);
do_test_wuffs_gif_decode("../../testdata/bricks-dither.gif",
"../../testdata/bricks-dither.palette",
"../../testdata/bricks-dither.indexes", 11, 13);
do_test_wuffs_gif_decode("../../data/bricks-dither.gif",
"../../data/bricks-dither.palette",
"../../data/bricks-dither.indexes", 11, 13);
}
void test_wuffs_gif_decode_input_is_a_png() {
@@ -653,7 +651,7 @@ void test_wuffs_gif_decode_input_is_a_png() {
wuffs_base__buf1 src = {.ptr = global_src_buffer, .len = BUFFER_SIZE};
if (!read_file(&src, "../../testdata/bricks-dither.png")) {
if (!read_file(&src, "../../data/bricks-dither.png")) {
return;
}
@@ -709,37 +707,37 @@ bool do_test_mimic_gif_decode(const char* filename) {
void test_mimic_gif_decode_bricks_dither() {
CHECK_FOCUS(__func__);
do_test_mimic_gif_decode("../../testdata/bricks-dither.gif");
do_test_mimic_gif_decode("../../data/bricks-dither.gif");
}
void test_mimic_gif_decode_bricks_gray() {
CHECK_FOCUS(__func__);
do_test_mimic_gif_decode("../../testdata/bricks-gray.gif");
do_test_mimic_gif_decode("../../data/bricks-gray.gif");
}
void test_mimic_gif_decode_bricks_nodither() {
CHECK_FOCUS(__func__);
do_test_mimic_gif_decode("../../testdata/bricks-nodither.gif");
do_test_mimic_gif_decode("../../data/bricks-nodither.gif");
}
void test_mimic_gif_decode_harvesters() {
CHECK_FOCUS(__func__);
do_test_mimic_gif_decode("../../testdata/harvesters.gif");
do_test_mimic_gif_decode("../../data/harvesters.gif");
}
void test_mimic_gif_decode_hat() {
CHECK_FOCUS(__func__);
do_test_mimic_gif_decode("../../testdata/hat.gif");
do_test_mimic_gif_decode("../../data/hat.gif");
}
void test_mimic_gif_decode_hibiscus() {
CHECK_FOCUS(__func__);
do_test_mimic_gif_decode("../../testdata/hibiscus.gif");
do_test_mimic_gif_decode("../../data/hibiscus.gif");
}
void test_mimic_gif_decode_pjw_thumbnail() {
CHECK_FOCUS(__func__);
do_test_mimic_gif_decode("../../testdata/pjw-thumbnail.gif");
do_test_mimic_gif_decode("../../data/pjw-thumbnail.gif");
}
#endif // WUFFS_MIMIC
@@ -776,23 +774,22 @@ bool do_bench_gif_decode(const char* (*decode_func)(wuffs_base__buf1*,
void bench_wuffs_gif_decode_1k() {
CHECK_FOCUS(__func__);
do_bench_gif_decode(wuffs_gif_decode, "../../testdata/pjw-thumbnail.gif",
200000);
do_bench_gif_decode(wuffs_gif_decode, "../../data/pjw-thumbnail.gif", 200000);
}
void bench_wuffs_gif_decode_10k() {
CHECK_FOCUS(__func__);
do_bench_gif_decode(wuffs_gif_decode, "../../testdata/hat.gif", 10000);
do_bench_gif_decode(wuffs_gif_decode, "../../data/hat.gif", 10000);
}
void bench_wuffs_gif_decode_100k() {
CHECK_FOCUS(__func__);
do_bench_gif_decode(wuffs_gif_decode, "../../testdata/hibiscus.gif", 1000);
do_bench_gif_decode(wuffs_gif_decode, "../../data/hibiscus.gif", 1000);
}
void bench_wuffs_gif_decode_1000k() {
CHECK_FOCUS(__func__);
do_bench_gif_decode(wuffs_gif_decode, "../../testdata/harvesters.gif", 100);
do_bench_gif_decode(wuffs_gif_decode, "../../data/harvesters.gif", 100);
}
// ---------------- Mimic Benches
@@ -801,23 +798,22 @@ void bench_wuffs_gif_decode_1000k() {
void bench_mimic_gif_decode_1k() {
CHECK_FOCUS(__func__);
do_bench_gif_decode(mimic_gif_decode, "../../testdata/pjw-thumbnail.gif",
200000);
do_bench_gif_decode(mimic_gif_decode, "../../data/pjw-thumbnail.gif", 200000);
}
void bench_mimic_gif_decode_10k() {
CHECK_FOCUS(__func__);
do_bench_gif_decode(mimic_gif_decode, "../../testdata/hat.gif", 10000);
do_bench_gif_decode(mimic_gif_decode, "../../data/hat.gif", 10000);
}
void bench_mimic_gif_decode_100k() {
CHECK_FOCUS(__func__);
do_bench_gif_decode(mimic_gif_decode, "../../testdata/hibiscus.gif", 1000);
do_bench_gif_decode(mimic_gif_decode, "../../data/hibiscus.gif", 1000);
}
void bench_mimic_gif_decode_1000k() {
CHECK_FOCUS(__func__);
do_bench_gif_decode(mimic_gif_decode, "../../testdata/harvesters.gif", 100);
do_bench_gif_decode(mimic_gif_decode, "../../data/harvesters.gif", 100);
}
#endif // WUFFS_MIMIC
+13 -13
View File
@@ -50,21 +50,21 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
// ---------------- Golden Tests
golden_test adler32_midsummer_gt = {
.src_filename = "../../testdata/midsummer.txt", //
.src_filename = "../../data/midsummer.txt", //
};
golden_test adler32_pi_gt = {
.src_filename = "../../testdata/pi.txt", //
.src_filename = "../../data/pi.txt", //
};
golden_test zlib_midsummer_gt = {
.want_filename = "../../testdata/midsummer.txt", //
.src_filename = "../../testdata/midsummer.txt.zlib", //
.want_filename = "../../data/midsummer.txt", //
.src_filename = "../../data/midsummer.txt.zlib", //
};
golden_test zlib_pi_gt = {
.want_filename = "../../testdata/pi.txt", //
.src_filename = "../../testdata/pi.txt.zlib", //
.want_filename = "../../data/pi.txt", //
.src_filename = "../../data/pi.txt.zlib", //
};
// ---------------- Basic Tests
@@ -93,31 +93,31 @@ void test_wuffs_adler32() {
uint32_t want;
} test_cases[] = {
{
.filename = "../../testdata/hat.bmp",
.filename = "../../data/hat.bmp",
.want = 0x3D26D034,
},
{
.filename = "../../testdata/hat.gif",
.filename = "../../data/hat.gif",
.want = 0x2A5EB144,
},
{
.filename = "../../testdata/hat.jpeg",
.filename = "../../data/hat.jpeg",
.want = 0x3A503B1A,
},
{
.filename = "../../testdata/hat.lossless.webp",
.filename = "../../data/hat.lossless.webp",
.want = 0xD059D427,
},
{
.filename = "../../testdata/hat.lossy.webp",
.filename = "../../data/hat.lossy.webp",
.want = 0xF1BB258D,
},
{
.filename = "../../testdata/hat.png",
.filename = "../../data/hat.png",
.want = 0xDFC6C9C6,
},
{
.filename = "../../testdata/hat.tiff",
.filename = "../../data/hat.tiff",
.want = 0xBDC011E9,
},
};
@@ -4,7 +4,7 @@ script/extract-deflate-offsets.go. Similarly, the \*.giflzw files were
generated by script/extract-giflzw.go and the \*.palette and \*.indexes files
were generated by script/extract-palette-indexes.go
The \*.jpeg files are usually the canonical versions of the testdata images,
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.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

File renamed without changes.
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 348 KiB

After

Width:  |  Height:  |  Size: 348 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.9 MiB

After

Width:  |  Height:  |  Size: 2.9 MiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 796 KiB

After

Width:  |  Height:  |  Size: 796 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 393 KiB

After

Width:  |  Height:  |  Size: 393 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 170 KiB

After

Width:  |  Height:  |  Size: 170 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 404 KiB

After

Width:  |  Height:  |  Size: 404 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 109 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 201 KiB

After

Width:  |  Height:  |  Size: 201 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 246 KiB

After

Width:  |  Height:  |  Size: 246 KiB

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 274 B

After

Width:  |  Height:  |  Size: 274 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 158 B

After

Width:  |  Height:  |  Size: 158 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 156 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 546 B

After

Width:  |  Height:  |  Size: 546 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 208 B

After

Width:  |  Height:  |  Size: 208 B

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.