          assert_equal(linked_list.get_all_data(), [5])
  
          print('Test: General case')
          # Partition = 10
          # Input: 4, 3, 7, 8, 10, 1, 10, 12
          # Output: 4, 3, 7, 8, 1, 10, 10, 12
          linked_list = MyLinkedList(Node(12))
          linked_list.insert_to_front(10)
          linked_list.insert_to_front(1)
          linked_list.insert_to_front(10)
          linked_list.insert_to_front(8)
 
</s> remove     "        # Input: 4, 3, 7, 8, 10, 1, 10, 12\n",
    "        # Output: 4, 3, 7, 8, 1, 10, 10, 12\n",
 </s> add     "        # Input: 4, 3, 13, 8, 10, 1, 14, 10, 12\n",
    "        # Output: 4, 3, 8, 1, 10, 10, 13, 14, 12\n", </s> remove     "        # Input: 4, 3, 7, 8, 10, 1, 10, 12\n",
    "        # Output: 4, 3, 7, 8, 1, 10, 10, 12\n",
 </s> add     "        # Input: 4, 3, 13, 8, 10, 1, 14, 10, 12\n",
    "        # Output: 4, 3, 8, 1, 10, 10, 13, 14, 12\n", </s> remove         linked_list.insert_to_front(7)
 </s> add         linked_list.insert_to_front(13) </s> remove     "    * Input:  4, 3, 7, 8, 10, 1, 10, 12\n",
    "    * Output: 4, 3, 7, 8, 1, 10, 10, 12"
 </s> add     "    * Input: 4, 3, 13, 8, 10, 1, 10, 12\n",
    "    * Output: 4, 3, 8, 1, 10, 10, 13, 12"
        # Input: 4, 3, 13, 8, 10, 1, 14, 10, 12
        # Output: 4, 3, 8, 1, 10, 10, 13, 14, 12
          assert_equal(linked_list.get_all_data(), [5])
  
          print('Test: General case')
          # Partition = 10
        # Input: 4, 3, 13, 8, 10, 1, 14, 10, 12
        # Output: 4, 3, 8, 1, 10, 10, 13, 14, 12
        # Input: 4, 3, 13, 8, 10, 1, 14, 10, 12
        # Output: 4, 3, 8, 1, 10, 10, 13, 14, 12
          linked_list = MyLinkedList(Node(12))
          linked_list.insert_to_front(10)
          linked_list.insert_to_front(1)
          linked_list.insert_to_front(10)
          linked_list.insert_to_front(8)
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21: Partitioning linked list problem: Does not work if item greater than partition value is to the left. 
linked_lists/partition/test_partition.py