tests: add waitSeconds method

This commit is contained in:
Sasha Szpakowski
2023-12-12 19:53:56 -04:00
parent 1f38b77bab
commit 6715bae0c3
+8
View File
@@ -372,6 +372,14 @@ TestMethod = {
end,
waitSeconds = function(self, seconds)
local start = love.timer.getTime()
while love.timer.getTime() < start + seconds do
coroutine.yield()
end
end,
-- @method - TestMethod:evaluateTest()
-- @desc - evaluates the results of all assertions for a final restult
-- @return {nil}