示例工程 33-neovim-and-love

33-neovim-and-love/03-love-state-machine/_test.lua

lua · 0.3 KB

-- @runtimes lua54
local h = require("harness")
local m = require("main")
h.describe("LÖVE 状态机", function()
	h.it("累计 dt 切换状态", function()
		local r = m.run(function() end)
		h.eq(r.state, "running")
		h.near(r.time, 1.1, 1e-9)
	end)
end)
h.run()