File: test_encoder.py

package info (click to toggle)
python-sabyenc 5.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 39,044 kB
  • sloc: cpp: 12,297; sh: 1,121; python: 652; ansic: 191; makefile: 13
file content (7 lines) | stat: -rw-r--r-- 198 bytes parent folder | download
1
2
3
4
5
6
7
from tests.testsupport import *


def test_encoder():
    output, crc = sabyenc3.encode(b"Hello world!")
    assert output == b"r\x8f\x96\x96\x99J\xa1\x99\x9c\x96\x8eK"
    assert crc == 0x1B851995