1. Mikhail Korobov
  2. packbits

Commits

Mikhail Korobov  committed c76616b

rename test (it was not executed before)

  • Participants
  • Parent commits dc61408
  • Branches master

Comments (0)

Files changed (2)

File src/packbits.py

View file
         result.append(256-(repeat_count - 1))
         result.append(data[pos])
 
-    while  pos < len(data)-1:
+    while pos < len(data)-1:
         current_byte = data[pos]
 
         if data[pos] == data[pos+1]:

File test_packbits.py

View file
     print(encoded)
     assert packbits.decode(encoded) == data
 
-def test_encode_long_raw():
+def test_encode_long_raw2():
     data = b'12345678' * 16
     encoded = packbits.encode(data)
     assert packbits.decode(encoded) == data