Beispiel #1
0
def test_run():
    for case in cases:
        i, o = unzip(case)
        check_run(i, list(o))
Beispiel #2
0
def test_unzip():
    assert_equals(helper.unzip([(1, 2), (3, 4), (5, 6)]), [(1, 3, 5), (2, 4, 6)])
    assert_equals(helper.unzip([(1, 2, 3), (4, 5, 6), (7, 8, 9)]), [(1, 4, 7), (2, 5, 8), (3, 6, 9)])