Skip to content

Commit de5e2fb

Browse files
authored
Update CircularDoublyLinkedListTest.java
lint issue fix
1 parent adcecd4 commit de5e2fb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/test/java/com/thealgorithms/datastructures/lists/CircularDoublyLinkedListTest.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ public void testRemoveInvalidIndex() {
5353
list.append(10);
5454
list.append(20);
5555

56-
assertThrows(IndexOutOfBoundsException.class, () -> list.remove(2),
57-
"Removing at invalid index 2 should throw exception.");
58-
assertThrows(IndexOutOfBoundsException.class, () -> list.remove(-1),
59-
"Removing at negative index should throw exception.");
56+
assertThrows(IndexOutOfBoundsException.class, () -> list.remove(2), "Removing at invalid index 2 should throw exception.");
57+
assertThrows(IndexOutOfBoundsException.class, () -> list.remove(-1), "Removing at negative index should throw exception.");
6058
}
6159

6260
@Test
@@ -78,8 +76,7 @@ public void testSingleElement() {
7876

7977
@Test
8078
public void testNullAppend() {
81-
assertThrows(NullPointerException.class, () -> list.append(null),
82-
"Appending null should throw NullPointerException.");
79+
assertThrows(NullPointerException.class, () -> list.append(null), "Appending null should throw NullPointerException.");
8380
}
8481

8582
@Test
@@ -122,3 +119,4 @@ public void testToStringAfterMultipleRemoves() {
122119
}
123120

124121
}
122+

0 commit comments

Comments
 (0)