kopia lustrzana https://github.com/EmbroidePy/pyembroidery
18 wiersze
569 B
Python
18 wiersze
569 B
Python
# from __future__ import print_function
|
|
#
|
|
# import random
|
|
# import unittest
|
|
#
|
|
# from EmbCompress import expand, compress
|
|
#
|
|
#
|
|
# class TestReadHus(unittest.TestCase):
|
|
#
|
|
# def test_fake_compression(self):
|
|
# for i in range(10):
|
|
# s = random.randint(10, 100000)
|
|
# test_bytes = bytearray(random.getrandbits(8) for _ in range(s))
|
|
# compressed_bytes = compress(test_bytes)
|
|
# uncompressed = bytearray(expand(compressed_bytes, len(test_bytes)))
|
|
# self.assertEqual(test_bytes, uncompressed)
|