mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Add a test/testdata/artificial directory.
This commit is contained in:
1 parent
76f7621221
commit
27a33ff27c
4 files changed
+14
-5
No files matched your search
+4
-4
@@ -59,10 +59,10 @@ golden_test checksum_pi_gt = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
golden_test flate_256_bytes_gt = {
|
golden_test flate_256_bytes_gt = {
|
||||||
.want_filename = "../../testdata/256.bytes", //
|
.want_filename = "../../testdata/artificial/256.bytes", //
|
||||||
.src_filename = "../../testdata/256.bytes.gz", //
|
.src_filename = "../../testdata/artificial/256.bytes.gz", //
|
||||||
.src_offset0 = 20, //
|
.src_offset0 = 20, //
|
||||||
.src_offset1 = 281, //
|
.src_offset1 = 281, //
|
||||||
};
|
};
|
||||||
|
|
||||||
golden_test flate_midsummer_gt = {
|
golden_test flate_midsummer_gt = {
|
||||||
|
|||||||
Vendored
+10
-1
@@ -11,7 +11,16 @@ command line tool.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
256.bytes just holds "\x00\x01\x02\x03...\xff".
|
The artificial directory holds artificially generated test data, often to
|
||||||
|
explicitly test corner cases of various file formats. The files there usually
|
||||||
|
come in families whose names have a common prefix, such as three files
|
||||||
|
"foo.bar", "foo.bar.qux", "foo.bar.commentary.txt" all prefixed by "foo.bar".
|
||||||
|
The file whose name is that prefix is usually the canonical (typically
|
||||||
|
hand-crafted) file, and the other files are then derived from that. Outside of
|
||||||
|
the artificial directory, the other files in this directory are typically real
|
||||||
|
world examples of various file formats, or deriviations of them.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bricks-* are various encodings of an original photo by Nigel Tao
|
bricks-* are various encodings of an original photo by Nigel Tao
|
||||||
<nigeltao@golang.org>.
|
<nigeltao@golang.org>.
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user