test fix: cll remove - more test scenarios

This commit is contained in:
Václav Přibík
2025-10-17 13:01:41 +02:00
parent 595f2f2344
commit 6d43f605b8

View File

@@ -52,7 +52,9 @@ public class CustomLinkedListTest {
@ParameterizedTest @ParameterizedTest
@CsvSource({ @CsvSource({
"'Tak, jsme, to, cele, totalne, dosrali, ale, co, uz', 'totalne'" "'Tak, jsme, to, cele, totalne, dosrali, ale, co, uz', 'totalne'",
"'Tak, jsme, to, cele, totalne, dosrali, ale, co, uz', 'Tak'",
"'Tak, jsme, to, cele, totalne, dosrali, ale, co, uz', 'uz'",
}) })
void cllRemove_shouldRemoveItemSuccessfully(@ConvertWith(StringArrayConverter.class) String[] data, String toRemove) { void cllRemove_shouldRemoveItemSuccessfully(@ConvertWith(StringArrayConverter.class) String[] data, String toRemove) {
CustomLinkedList<String> list = new CustomLinkedListImpl<>(); CustomLinkedList<String> list = new CustomLinkedListImpl<>();