mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
0.2
- Added tests for all obj creation, transformation, window + system info graphics methods
- Added half the state methods for graphics + added placeholders for missing drawing methods
- Added TestMethod:assertNotNil() for quick nil checking
- Added time total to the end of each module summary in console log to match file output
- Removed a bunch of unessecary nil checks
- Removed :release() from test methods, collectgarbage("collect") is called between methods instead
- Renamed /output to /examples to avoid confusion
- Replaced love.filesystem.newFile with love.filesystem.openFile
- Replaced love.math.noise with love.math.perlinNoise / love.math.simplexNoise
- Fixed newGearJoint throwing an error in 12 as body needs to be dynamic not static now
- Some general cleanup, incl. better comments and time format in file output
This commit is contained in:
@@ -4,20 +4,20 @@
|
||||
-- love.timer.getAverageDelta
|
||||
-- @NOTE not sure if you could reliably get a specific delta?
|
||||
love.test.timer.getAverageDelta = function(test)
|
||||
test:assertNotEquals(nil, love.timer.getAverageDelta(), 'check not nil')
|
||||
test:assertNotNil(love.timer.getAverageDelta())
|
||||
end
|
||||
|
||||
-- love.timer.getDelta
|
||||
-- @NOTE not sure if you could reliably get a specific delta?
|
||||
love.test.timer.getDelta = function(test)
|
||||
test:assertNotEquals(nil, love.timer.getDelta(), 'check not nil')
|
||||
test:assertNotNil(love.timer.getDelta())
|
||||
end
|
||||
|
||||
|
||||
-- love.timer.getFPS
|
||||
-- @NOTE not sure if you could reliably get a specific FPS?
|
||||
love.test.timer.getFPS = function(test)
|
||||
test:assertNotEquals(nil, love.timer.getFPS(), 'check not nil')
|
||||
test:assertNotNil(love.timer.getFPS())
|
||||
end
|
||||
|
||||
|
||||
@@ -41,5 +41,5 @@ end
|
||||
-- love.timer.step
|
||||
-- @NOTE not sure if you could reliably get a specific step val?
|
||||
love.test.timer.step = function(test)
|
||||
test:assertNotEquals(nil, love.timer.step(), 'check not nil')
|
||||
end
|
||||
test:assertNotNil(love.timer.step())
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user