diff --git a/tests/scripts/image.lua b/tests/scripts/image.lua index 846ca92f7..0fa000982 100644 --- a/tests/scripts/image.lua +++ b/tests/scripts/image.lua @@ -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)) diff --git a/tests/scripts/import_sprite_sheet_command.lua b/tests/scripts/import_sprite_sheet_command.lua index 741d3d5fe..d12864692 100644 --- a/tests/scripts/import_sprite_sheet_command.lua +++ b/tests/scripts/import_sprite_sheet_command.lua @@ -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, diff --git a/tests/scripts/palette.lua b/tests/scripts/palette.lua index 6a22abfc1..75a42a760 100644 --- a/tests/scripts/palette.lua +++ b/tests/scripts/palette.lua @@ -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) diff --git a/tests/scripts/test_utils.lua b/tests/scripts/test_utils.lua index c90a0c955..f3c36a11d 100644 --- a/tests/scripts/test_utils.lua +++ b/tests/scripts/test_utils.lua @@ -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