Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from e30_flatten_list import flatten
2import pytest
3
4
5@pytest.mark.parametrize('nested, output', [
6 ([[10, 20, 30]], [10, 20, 30]),
7 ([[10, 20], [30, 40]], [10, 20, 30, 40]),
8])
9def test_flatten(nested, output):
10 assert flatten(nested) == output