mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 06:50:07 +00:00
Remove ';' chars from lua tests
This commit is contained in:
parent
3cfa5ef1da
commit
ca8c970c5d
@ -192,9 +192,9 @@ do
|
|||||||
assert(img.height == tilemapImg.height * tilemapImg.height)
|
assert(img.height == tilemapImg.height * tilemapImg.height)
|
||||||
for y=0,img.height-1 do
|
for y=0,img.height-1 do
|
||||||
for x=0,img.width-1 do
|
for x=0,img.width-1 do
|
||||||
local tmx = x // tileSize.w;
|
local tmx = x // tileSize.w
|
||||||
local tmy = y // tileSize.h;
|
local tmy = y // tileSize.h
|
||||||
local tileImg = tileset:getTile(tilemapImg:getPixel(tmx, tmy));
|
local tileImg = tileset:getTile(tilemapImg:getPixel(tmx, tmy))
|
||||||
-- Compare each pixel of the saved image with each pixel of the
|
-- Compare each pixel of the saved image with each pixel of the
|
||||||
-- corresponding tile of the original sprite's tilemap.
|
-- corresponding tile of the original sprite's tilemap.
|
||||||
assert(img:getPixel(x, y) == tileImg:getPixel(x % tileSize.w, y % tileSize.h))
|
assert(img:getPixel(x, y) == tileImg:getPixel(x % tileSize.w, y % tileSize.h))
|
||||||
|
@ -32,7 +32,7 @@ do
|
|||||||
4, 3, 2, 1,
|
4, 3, 2, 1,
|
||||||
3, 2, 1, 0 })
|
3, 2, 1, 0 })
|
||||||
|
|
||||||
app.undo();
|
app.undo()
|
||||||
app.command.ImportSpriteSheet{
|
app.command.ImportSpriteSheet{
|
||||||
ui=false,
|
ui=false,
|
||||||
type=SpriteSheetType.ROWS,
|
type=SpriteSheetType.ROWS,
|
||||||
@ -57,7 +57,7 @@ do
|
|||||||
2, 1 })
|
2, 1 })
|
||||||
|
|
||||||
|
|
||||||
app.undo();
|
app.undo()
|
||||||
app.command.ImportSpriteSheet{
|
app.command.ImportSpriteSheet{
|
||||||
ui=false,
|
ui=false,
|
||||||
type=SpriteSheetType.ROWS,
|
type=SpriteSheetType.ROWS,
|
||||||
|
@ -74,7 +74,7 @@ do
|
|||||||
-- Default sprite palette is completely black
|
-- Default sprite palette is completely black
|
||||||
-- TODO should we use the app.defaultPalette as the default palette?
|
-- TODO should we use the app.defaultPalette as the default palette?
|
||||||
local spr = Sprite(32, 32, ColorMode.INDEXED)
|
local spr = Sprite(32, 32, ColorMode.INDEXED)
|
||||||
local sprPal = spr.palettes[1];
|
local sprPal = spr.palettes[1]
|
||||||
assert(#sprPal == 256)
|
assert(#sprPal == 256)
|
||||||
assert(sprPal ~= db16)
|
assert(sprPal ~= db16)
|
||||||
assert(sprPal ~= db32)
|
assert(sprPal ~= db32)
|
||||||
|
@ -173,7 +173,7 @@ function assert_layer_eq(expectedLayer, layer)
|
|||||||
assert(expectedLayer.data == layer.data)
|
assert(expectedLayer.data == layer.data)
|
||||||
|
|
||||||
if expectedLayer.isGroup then
|
if expectedLayer.isGroup then
|
||||||
assert_layers_eq(expectedLayer.layers, layer.layers);
|
assert_layers_eq(expectedLayer.layers, layer.layers)
|
||||||
else
|
else
|
||||||
assert_cels_eq(expectedLayer.cels, layer.cels)
|
assert_cels_eq(expectedLayer.cels, layer.cels)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user