From 2c950360e8f55163b30b7f26af792265e7d25a97 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 2 Sep 2021 18:12:33 -0300 Subject: [PATCH] Revert "Test crash saving palette to .jpg file" This reverts commit 36ee80aaca585fc00baf63c58612e1d64f4df60b. Saving the .jpg palette will make the script fail anyway. --- scripts/palette.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scripts/palette.lua b/scripts/palette.lua index 12d92408f..6a22abfc1 100644 --- a/scripts/palette.lua +++ b/scripts/palette.lua @@ -85,15 +85,3 @@ do spr:setPalette(db32) assert(sprPal == db32) end - --- Test crash -do - local p = Palette{ fromResource="DB32" } - p:saveAs("_test_.jpg") - - local q = Palette{ fromFile="_test_.gpl" } - assert(#p == #q) - for i=0,#q-1 do - assert(p:getColor(i) == q:getColor(i)) - end -end