Skip to content

Commit 5307eeb

Browse files
Add MoveHash test cases
1 parent 452442c commit 5307eeb

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.thealgorithms.twopointer;
2+
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
5+
import org.junit.jupiter.api.Test;
6+
7+
public class MoveHashTest {
8+
9+
@Test
10+
void testMoveHash() {
11+
assertEquals("hello#####", MoveHash.movehashtoend("h#e#l###l#o"));
12+
}
13+
14+
@Test
15+
void testEmpty() {
16+
assertEquals("", MoveHash.movehashtoend(""));
17+
}
18+
19+
@Test
20+
void testNull() {
21+
assertEquals(null, MoveHash.movehashtoend(null));
22+
}
23+
}

0 commit comments

Comments
 (0)