Major funciton renaming in EHS for suppporting more BDS types. Bug fixes.

This commit is contained in:
Junzi Sun
2017-03-22 21:06:51 +01:00
parent cc66e2f4e4
commit ef2268127c
7 changed files with 250 additions and 99 deletions

View File

@@ -1,4 +1,6 @@
from pyModeS import util
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))+'/pyModeS')
import util
def test_hex2bin():
@@ -12,4 +14,4 @@ def test_crc_decode():
def test_crc_encode():
parity = util.crc("8D406B902015A678D4D220AA4BDA", encode=True)
assert util.hex2bin("AA4BDA") == parity
assert util.hex2bin("AA4BDA") == parity