6 lines
193 B
Python
6 lines
193 B
Python
|
def cmp_bytes_as_bin(got: bytes, expected: bytes) -> None:
|
||
|
g_bin = [format(int(x), '#010b') for x in got]
|
||
|
e_bin = [format(int(x), '#010b') for x in expected]
|
||
|
assert g_bin == e_bin
|
||
|
|