Esempio n. 1
0
def test():
    a = 0
    solution = []
    answer = shape(a)
    assert answer == solution
Esempio n. 2
0
def test():
    a = [1, 2]
    solution = [2]
    answer = shape(a)
    assert answer == solution
Esempio n. 3
0
def test():
    a = [[1, 1], [2, 2]]
    solution = [2, 2]
    answer = shape(a)
    assert answer == solution
Esempio n. 4
0
def test():
    a = [[[1], [1]], [[2], [2]]]
    solution = [2, 2, 1]
    answer = shape(a)
    assert answer == solution