pixie/tests/test_svg.nim
2020-12-04 14:15:14 -06:00

10 lines
290 B
Nim

import pixie/fileformats/svg, pixie
let
original = readFile("tests/images/svg/Ghostscript_Tiger.svg")
image = decodeSvg(original)
gold = readImage("tests/images/svg/Ghostscript_Tiger.png")
doAssert image.data == gold.data
# image.writeFile("tests/images/svg/Ghostscript_Tiger.png")