Coverage for test_e09_firstlast.py : 100%

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 e09_firstlast import firstlast
2import pytest
5@pytest.mark.parametrize('arg, output', [
6 ('abcd', 'ad'),
7 ([10, 20, 30, 40, 50], [10, 50]),
8 ((10, 20, 30, 40), (10, 40)),
9 ('ab', 'ab'),
10 ('a', 'aa'),
11 ([10], [10, 10])
12])
13def test_firstlast(arg, output):
14 assert firstlast(arg) == output