Esempio n. 1
0
def test_head_one():
    # pylint: disable=missing-docstring
    slst = SList()
    exp = 1
    slst.append(exp)
    res = slst.head()
    assert res == exp
Esempio n. 2
0
def test_head_empty():
    # pylint: disable=missing-docstring
    slst = SList()
    exp = None
    res = slst.head()
    assert res == exp