mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-02 14:51:20 -05:00
7da8771139
The Affinity raster tests compared decoded pixels with CRCs captured from the reader's own output, so a decoding error present when the CRC was taken would pass. They now read the image's tiles straight from the archive (256-byte by 256-row planes, states 2 and 4), interleave them, scale 16-bit samples with rounding, and compare the whole buffer. The Affinity 3 signatures drop the CRC of the model's Debug output and keep the feature counts. The DXF golden test no longer rewrites its expected files when WRITE_DXF_GOLDENS is set. Each golden file is first checked against the drawing it should hold (rectangle corners, circle center, radius and bulges, ACI and true colors, lineweights), and a mismatch saves the output to the temp directory for review.