Skip to content

Commit 26abc5d

Browse files
committed
ava test 24
1 parent 2358e5d commit 26abc5d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/com/fishercoder/_24Test.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,10 @@ public void test2() {
3636
assertEquals(expected, solution2.swapPairs(head));
3737
}
3838

39+
@Test
40+
public void test3() {
41+
head = LinkedListUtils.createSinglyLinkedList(Arrays.asList(1, 2, 3, 4, 5));
42+
expected = LinkedListUtils.createSinglyLinkedList(Arrays.asList(2, 1, 4, 3, 5));
43+
assertEquals(expected, solution2.swapPairs(head));
44+
}
3945
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy