Skip to content

vg: make TestLineWidth more reliable

Sebastien Binet requested to merge sbinet-gonum:stable-image-compare into master

golang/go@53efe1e121e68fe changed and improved compress/flate's matching algorithm. This breaks tests that rely on stable on-disk byte content.

Instead, decode the image.Image from the raw []byte content and compare the resulting decoding images.

For PDF images, decode the raw []byte using rsc.io/pdf.Reader and compare each page's content.

Merge request reports

Loading