Skip to content

Commit

Permalink
clearer test_apng log
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Apr 14, 2020
1 parent 931cebf commit c48bebb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/test_apng.nim
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,11 @@ proc toBMP(png: PNGResult, fileName: string) =
bmp.data[px + 2] = chr(uint8(255) + uint8((((x.data[px4 + 0].uint - 255'u) * alpha) shr 8) and 0xFF))

let bmpName = fileName & "_" & $frame & ".bmp"
#var s = newFileStream(bmpName, fmWrite)
#s.write(bmp)
#s.close()

let data1 = bmp.write()
let data2 = readFile(bmpName)
assert data1 == data2
echo "frame $1 of $2" % [$(frame + 1), $png.frames.len]
echo "frame $1 of $2 vs. $3" % [$(frame + 1), $png.frames.len, bmpName]

inc frame

Expand Down

0 comments on commit c48bebb

Please sign in to comment.