mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-10-02 13:57:33 -05:00
Faster, but less than ideal, large file compression as well as start byte GC.
This commit is contained in:
@@ -53,6 +53,16 @@ class TestLz77RealCompressor(unittest.TestCase):
|
||||
decompresseddata = lz77.decompress(compresseddata)
|
||||
self.assertEqual(data, decompresseddata)
|
||||
|
||||
def test_huge_data_random(self) -> None:
|
||||
lz77 = Lz77()
|
||||
data = bytes([random.randint(0, 255) for _ in range(1 * 1024 * 1024)])
|
||||
|
||||
compresseddata = lz77.compress(data)
|
||||
self.assertNotEqual(data, compresseddata)
|
||||
|
||||
decompresseddata = lz77.decompress(compresseddata)
|
||||
self.assertEqual(data, decompresseddata)
|
||||
|
||||
def test_declaration(self) -> None:
|
||||
lz77 = Lz77()
|
||||
data = get_fixture("declaration.txt")
|
||||
|
||||
Reference in New Issue
Block a user