Skip to content

Commit a4e248a

Browse files
test(strings): fix MoveHashToEnd expected output for sample input
1 parent c372ac1 commit a4e248a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/thealgorithms/strings/MoveHashToEnd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Example:
88
* Input : "h#e#l#llo"
9-
* Output : "hello###"
9+
* Output : "helllo###"
1010
*
1111
* The algorithm works by iterating through the string and collecting
1212
* all non-# characters first, then filling the remaining positions

src/test/java/com/thealgorithms/strings/MoveHashToEndTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class MoveHashToEndTest {
99

1010
@Test
1111
void testBasicCase() {
12-
assertEquals("hello###", MoveHashToEnd.moveHashToEnd("h#e#l#llo"));
12+
assertEquals("helllo###", MoveHashToEnd.moveHashToEnd("h#e#l#llo"));
1313
}
1414

1515
@Test

0 commit comments

Comments
 (0)