kopia lustrzana https://github.com/micropython/micropython-lib
binascii: Add test which exposes to_bytes() problem in the module.
rodzic
20d9cdbd5f
commit
c7b277ff7c
|
@ -1,4 +1,4 @@
|
||||||
from binascii import hexlify, unhexlify
|
from binascii import *
|
||||||
import utime
|
import utime
|
||||||
|
|
||||||
data = b'zlutoucky kun upel dabelske ody'
|
data = b'zlutoucky kun upel dabelske ody'
|
||||||
|
@ -12,6 +12,8 @@ data2 = unhexlify(h)
|
||||||
if data2 != data:
|
if data2 != data:
|
||||||
raise Exception("Error")
|
raise Exception("Error")
|
||||||
|
|
||||||
|
a2b_base64(b"as==") == b'j'
|
||||||
|
|
||||||
start = utime.time()
|
start = utime.time()
|
||||||
for x in range(100000):
|
for x in range(100000):
|
||||||
d = unhexlify(h)
|
d = unhexlify(h)
|
||||||
|
|
Ładowanie…
Reference in New Issue