mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
Add reverseUsingStringBuilder method to reverse a string (#6182)
This commit is contained in:
@@ -25,4 +25,10 @@ public class ReverseStringTest {
|
||||
public void testReverseString2(String input, String expectedOutput) {
|
||||
assertEquals(expectedOutput, ReverseString.reverse2(input));
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@MethodSource("testCases")
|
||||
public void testReverseString3(String input, String expectedOutput) {
|
||||
assertEquals(expectedOutput, ReverseString.reverse3(input));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user