Add a test/testdata/artificial directory.

This commit is contained in:
Nigel Tao committed 2017-10-22 11:41:06 +11:00
1 parent 76f7621221
commit 27a33ff27c
4 files changed
+14 -5

No files matched your search

+4 -4
View File
@@ -59,10 +59,10 @@ golden_test checksum_pi_gt = {
};
golden_test flate_256_bytes_gt = {
.want_filename = "../../testdata/256.bytes", //
.src_filename = "../../testdata/256.bytes.gz", //
.src_offset0 = 20, //
.src_offset1 = 281, //
.want_filename = "../../testdata/artificial/256.bytes", //
.src_filename = "../../testdata/artificial/256.bytes.gz", //
.src_offset0 = 20, //
.src_offset1 = 281, //
};
golden_test flate_midsummer_gt = {
+10 -1
View File
@@ -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
<nigeltao@golang.org>.
File renamed without changes.
File renamed without changes.