Remove ';' chars from lua tests

This commit is contained in:
David Capello 2023-11-02 14:30:36 -03:00
parent 3cfa5ef1da
commit ca8c970c5d
4 changed files with 7 additions and 7 deletions

View File

@ -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))

View File

@ -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,

View File

@ -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)

View File

@ -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