Skip to content

Commit

Permalink
test: list node test
Browse files Browse the repository at this point in the history
add unit test for list node implementation
  • Loading branch information
galaumang committed May 22, 2023
1 parent bee15d8 commit 4cf2974
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions solutions-java/src/test/java/dsalgo/list/ListNodeTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package dsalgo.list;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

public class ListNodeTest {
@Test
void constructorTest() {
ListNode<Integer> integerListNode = new ListNode<>(9);
assertEquals(Integer.valueOf(9), integerListNode.value);
}
}

0 comments on commit 4cf2974

Please sign in to comment.