def test_kthFromEnd_negNumber():
  test_list = LinkedList()
  test_list.insert(3)
  test_list.insert(2)
  test_list.insert(1)
  actual = test_list.kthFromEnd(-3)
  expected = 'Exception'
  assert actual == expected
def test_kthFromEnd_middle():
  test_list = LinkedList()
  test_list.insert(5)
  test_list.insert(4)
  test_list.insert(3)
  test_list.insert(2)
  test_list.insert(1)
  actual = test_list.kthFromEnd(3)
  expected = 3
  assert actual == expected
def test_kthFromEnd_tooLong():
  test_list = LinkedList()
  test_list.insert(5)
  test_list.insert(4)
  test_list.insert(3)
  test_list.insert(2)
  test_list.insert(1)
  actual = test_list.kthFromEnd(7)
  expected = 'Exception'
  assert actual == expected
def test_kthFromEnd_one():
  test_list = LinkedList()
  test_list.insert(3)
  actual = test_list.kthFromEnd(1)
  expected = 3
  assert actual == expected