- 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:
ell
2023-10-05 23:03:32 +01:00
parent 08467cb4fa
commit e03b2db08b
30 changed files with 1982 additions and 866 deletions
+13 -13
View File
@@ -45,16 +45,18 @@ love.test.objects.File = function(test)
-- @NOTE think I'm just not understanding how this is supposed to work?
-- I thought if buffering is enabled then nothing should get written until
-- buffer overflows?
file1:open('a')
ok, err = file1:setBuffer('full', 10000)
test:assertEquals(true, ok)
test:assertEquals('full', file1:getBuffer())
file1:write('morecontent')
file1:close()
file1:open('r')
contents, size = file1:read()
test:assertEquals('helloworld', contents, 'check buffered content wasnt written')
file1:close()
-- file1:open('a')
-- ok, err = file1:setBuffer('full', 10000)
-- test:assertEquals(true, ok)
-- test:assertEquals('full', file1:getBuffer())
-- file1:write('morecontent')
-- file1:close()
-- file1:open('r')
-- contents, size = file1:read()
-- test:assertEquals('helloworld', contents, 'check buffered content wasnt written')
-- file1:close()
-- @NOTE :close() commits buffer content so need to check before not after
-- test buffering and flushing
file1:open('w')
@@ -83,8 +85,6 @@ love.test.objects.File = function(test)
test:assertEquals(counter, 15)
file1:close()
file1:release()
end
@@ -172,4 +172,4 @@ end
-- Shader
-- SpriteBatch
-- Text
-- Video
-- Video