File: test_encoder.py

package info (click to toggle)
sabctools 8.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,000 kB
  • sloc: cpp: 13,977; sh: 1,112; python: 950; ansic: 191; makefile: 13
file content (7 lines) | stat: -rw-r--r-- 204 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
from tests.testsupport import *


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