mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-12 00:10:56 +02:00
big ass modding update
This commit is contained in:
@@ -6,9 +6,8 @@
|
||||
-- tilted plane covering the window.
|
||||
package.path = "./?.lua;./?/init.lua;" .. package.path
|
||||
if not _G.love then _G.love = require("tests.love_stub") end
|
||||
local fails, total = 0, 0
|
||||
local function check(c, m) total = total + 1; if c then print("ok " .. m) else fails = fails + 1; print("FAIL " .. m) end end
|
||||
local function eq(g, w, m) check(g == w, ("%s (got %s, want %s)"):format(m, tostring(g), tostring(w))) end
|
||||
local S = require("tests.harness").suite("parity tilt")
|
||||
local check, eq = S.check, S.eq
|
||||
|
||||
-- === assertions ===
|
||||
|
||||
@@ -224,5 +223,4 @@ check(pallet.renderer.drawTilt == nil and pallet.renderer.drawTiltMapOnly == nil
|
||||
"TileRenderer no longer has a separate tilt ground draw path")
|
||||
MapLoader.clearCache()
|
||||
|
||||
print(("parity tilt: %d/%d passed"):format(total - fails, total))
|
||||
if fails > 0 then error(fails .. " parity-tilt assertion(s) failed") end
|
||||
S.finish()
|
||||
|
||||
Reference in New Issue
Block a user