mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +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