Пример #1
0
def test_1():
    test = [[1, 2], 3, [4, [5, [6]], 7]]
    expect(list(flatten(test))).to_equal(list(deepflatten(test)))
Пример #2
0
def test_5():
    test = [[1, 2], [[[[]]], 3], [[[4]], [5, [6]], 7]]
    expect(list(flatten(test))).to_equal(list(deepflatten(test)))