def test_fet_list_1234_remove_5(self): "FET: [1, 2, 3, 4] and remove 5" example = LinkList([1, 2, 3, 4]) self.assertEqual(example.dump_elements(), [1, 2, 3, 4]) example.remove_elements(5) self.assertEqual(example.dump_elements(), [1, 2, 3, 4])
def test_rat_list_1_remove_1(self): "FAST: [1] and remove 1" example = LinkList([1,]) self.assertEqual(example.dump_elements(), [1,]) example.remove_elements(1) self.assertEqual(example.dump_elements(), [])
def test_rat_list_1232_remove_2(self): "FAST: [1, 2, 3, 2] and remove 2" example = LinkList([1, 2, 3, 2]) self.assertEqual(example.dump_elements(), [1, 2, 3, 2]) example.remove_elements(2) self.assertEqual(example.dump_elements(), [1, 3])
def test_rat_empty_list(self): "RAT: empty list" example = LinkList([]) self.assertEqual(example.dump_elements(), []) example.remove_elements(0) self.assertEqual(example.dump_elements(), [])