This commit is contained in:
treeform 2022-07-08 23:46:18 -07:00
parent 74c7b6d928
commit d2d2fc636f

View file

@ -17,14 +17,6 @@ const files = [
"dragon2"
]
# proc doDiff(rendered: Image, name: string) =
# rendered.writeFile(&"tests/fileformats/svg/rendered/{name}.png")
# let
# master = readImage(&"tests/fileformats/svg/masters/{name}.png")
# (diffScore, diffImage) = diff(master, rendered)
# echo &"{name} score: {diffScore}"
# diffImage.writeFile(&"tests/fileformats/svg/diffs/{name}.png")
for file in files:
let image = readImage(&"tests/fileformats/svg/{file}.svg")
image.diffVs(&"tests/fileformats/svg/masters/{file}.png")