mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-12 08:21:02 +02:00
big ass modding update
This commit is contained in:
@@ -5,9 +5,8 @@
|
||||
-- stub offers no love.graphics.newShader (shader() returns nil).
|
||||
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 gbcfx")
|
||||
local check, eq = S.check, S.eq
|
||||
|
||||
-- === assertions ===
|
||||
|
||||
@@ -82,5 +81,4 @@ check(drawn and drawn[1] == canvas and drawn[2] == 0 and drawn[3] == 0,
|
||||
GBCFX.setLevel(0)
|
||||
|
||||
-- === summary ===
|
||||
print(("%d/%d checks passed"):format(total - fails, total))
|
||||
if fails > 0 then error(("parity_gbcfx: %d checks failed"):format(fails)) end
|
||||
S.finish()
|
||||
|
||||
Reference in New Issue
Block a user