trailing data test for png

This commit is contained in:
Ryan Oldenburg 2021-05-09 17:27:34 -05:00
parent 4d2d780a51
commit ee79db8c88
2 changed files with 20 additions and 16 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -1,4 +1,4 @@
import pixie/common, pixie/fileformats/png, pngsuite, strformat
import pixie, pixie/fileformats/png, pngsuite, strformat
# for file in pngSuiteFiles:
# let
@ -13,6 +13,7 @@ import pixie/common, pixie/fileformats/png, pngsuite, strformat
# doAssert decoded.width == decoded2.width
# doAssert decoded.data == decoded2.data
block:
for channels in 1 .. 4:
var data: seq[uint8]
for x in 0 ..< 16:
@ -29,3 +30,6 @@ for file in pngSuiteCorruptedFiles:
doAssert false
except PixieError:
discard
block:
discard readImage("tests/images/png/trailing_data.png")