Skip to content

Commit

Permalink
add "deflate" to compress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ellraiser committed Mar 2, 2024
1 parent ccfe111 commit b643418
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ love.test.data.compress = function(test)
{ love.data.compress('string', 'gzip', 'helloworld', -1), 'string'},
{ love.data.compress('string', 'gzip', 'helloworld', 0), 'string'},
{ love.data.compress('string', 'gzip', 'helloworld', 9), 'string'},
{ love.data.compress('string', 'deflate', 'aaaaaa', 1), 'string'},
{ love.data.compress('string', 'deflate', 'heloworld', -1), 'string'},
{ love.data.compress('string', 'deflate', 'heloworld', 0), 'string'},
{ love.data.compress('string', 'deflate', 'heloworld', 9), 'string'},
{ love.data.compress('data', 'lz4', 'helloworld', -1), 'userdata'},
{ love.data.compress('data', 'lz4', 'helloworld', 0), 'userdata'},
{ love.data.compress('data', 'lz4', 'helloworld', 9), 'userdata'},
Expand All @@ -91,7 +95,10 @@ love.test.data.compress = function(test)
{ love.data.compress('data', 'zlib', 'helloworld', 9), 'userdata'},
{ love.data.compress('data', 'gzip', 'helloworld', -1), 'userdata'},
{ love.data.compress('data', 'gzip', 'helloworld', 0), 'userdata'},
{ love.data.compress('data', 'gzip', 'helloworld', 9), 'userdata'}
{ love.data.compress('data', 'gzip', 'helloworld', 9), 'userdata'},
{ love.data.compress('data', 'deflate', 'heloworld', -1), 'userdata'},
{ love.data.compress('data', 'deflate', 'heloworld', 0), 'userdata'},
{ love.data.compress('data', 'deflate', 'heloworld', 9), 'userdata'},
}
for c=1,#compressions do
test:assertNotNil(compressions[c][1])
Expand Down

0 comments on commit b643418

Please sign in to comment.