oh-my-dear-ai's picture
fix(app): correct task checklist generation and update token handling
fbb4dba
raw
history blame contribute delete
272 Bytes
from app import bin_ls2base64, base64_to_binary
from numpy import random
def test_translation():
for _ in range(100):
ls0 = random.randint(0, 2, 24 * 10).tolist()
ls1 = [int(n) for n in base64_to_binary(bin_ls2base64(ls0))]
assert ls0 == ls1