Skip to content

Commit

Permalink
Merge pull request #916 from Mino260806/add-lz4
Browse files Browse the repository at this point in the history
added lz4 package
  • Loading branch information
mhsmith committed Jul 24, 2023
2 parents cb3371b + 83f7c2a commit 716ba4c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/pypi/packages/lz4/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package:
name: lz4
version: 4.3.2

13 changes: 13 additions & 0 deletions server/pypi/packages/lz4/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import unittest


class TestLz4(unittest.TestCase):

def test_basic(self):
import os
import lz4.frame
input_data = 20 * 128 * os.urandom(1024)
compressed = lz4.frame.compress(input_data)
self.assertLess(len(compressed), len(input_data))
decompressed = lz4.frame.decompress(compressed)
self.assertEqual(decompressed, input_data)

0 comments on commit 716ba4c

Please sign in to comment.