fix missing bin2hex()

This commit is contained in:
Junzi Sun
2020-05-04 20:30:33 +02:00
parent 560b737739
commit 9dde1b63d6
5 changed files with 18 additions and 3 deletions

View File

@@ -2,7 +2,9 @@ try:
from pyModeS.decoder import c_common as common
def test_conversions():
assert common.hex2bin("6E406B") == "011011100100000001101011"
assert common.hex2bin("6E") == "01101110"
assert common.bin2hex("01101110") == "6E"
assert common.bin2hex("1101110") == "6E"
def test_crc_decode():

View File

@@ -2,7 +2,9 @@ from pyModeS import common
def test_conversions():
assert common.hex2bin("6E406B") == "011011100100000001101011"
assert common.hex2bin("6E") == "01101110"
assert common.bin2hex("01101110") == "6E"
assert common.bin2hex("1101110") == "6E"
def test_crc_decode():