File size: 272 Bytes
fbb4dba
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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