def test_add_after_value(): list = LinkedList() list.insert('bumpers') list.insert('baby') list.insert('rubber') list.inject_a('baby', 'buggy') actual = list.find_all() expected = ['rubber', 'baby', 'buggy', 'bumpers'] assert actual == expected
def test_add_after_value1(): list = LinkedList() list.append_item('rock') list.append_item('paper') list.append_item('scissors') list.append_item('machinegun') list.inject_a('scissors', 'cannon') actual = list.find_all() expected = ['rock', 'paper', 'scissors', 'cannon', 'machinegun'] assert actual == expected