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