mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
19df8040df
Initial commit of a basic test framework, see readme.md for more Most modules are covered with basic unit tests, and there's an example test for a graphics draw (rectangle) and object (File) - for object tests doing more scenario based so we can check multiple things together
10 lines
300 B
Lua
10 lines
300 B
Lua
-- love.video
|
|
|
|
|
|
-- love.video.newVideoStream
|
|
-- @NOTE this is just basic nil checking, full obj test are in objects.lua
|
|
love.test.video.newVideoStream = function(test)
|
|
local videostream = love.video.newVideoStream('resources/sample.ogv')
|
|
test:assertObject(videostream)
|
|
videostream:release()
|
|
end |