From d23c622a17e44e1222e9ca7a17aa20b00033083c Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 9 Jan 2019 21:14:01 -0300 Subject: [PATCH] Add test for --sheet --data with --split-layers --- cli/sheet.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/cli/sheet.sh b/cli/sheet.sh index 37e494627..3d8697b67 100644 --- a/cli/sheet.sh +++ b/cli/sheet.sh @@ -85,3 +85,39 @@ end assert(expected:isEqual(sheet.cels[1].image)) EOF $ASEPRITE -b -script "$d/compare.lua" || exit 1 + +# --split-layers --sheet --data + +d=$t/split-layers-sheet-data +$ASEPRITE -b --split-layers sprites/1empty3.aseprite \ + --filename-format "{layer}-{frame}" \ + --sheet "$d/sheet.png" \ + --data "$d/sheet.json" || exit 1 +open $d +cat >$d/compare.lua <