您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 
 
 

16 行
364 B

  1. import stegano
  2. def test_by_chunks():
  3. x = [1, 2, 3, 4, 5, 6]
  4. chunks = stegano.by_chunk(x, 3)
  5. assert list(chunks) == [[1, 2, 3], [4, 5, 6]]
  6. def test_message_conversion():
  7. message = b"I love you\ngarbage"
  8. encoded = list(stegano.get_bitstream(message))
  9. decoded = bytes(stegano.parse_bitstream(encoded))
  10. assert decoded == b"I love you"