Skip to content

Commit abf24f2

Browse files
committed
Fix clang
1 parent 6865537 commit abf24f2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/com/thealgorithms/stacks/InfixToPrefixTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ void testValidExpressions(String infix, String expectedPrefix) throws Exception
1717
}
1818

1919
private static Stream<Arguments> provideValidExpressions() {
20-
return Stream.of(
21-
Arguments.of("3+2", "+32"), // Simple addition
20+
return Stream.of(Arguments.of("3+2", "+32"), // Simple addition
2221
Arguments.of("1+(2+3)", "+1+23"), // Parentheses
2322
Arguments.of("(3+4)*5-6", "-*+3456"), // Nested operations
2423
Arguments.of("a+b*c", "+a*bc") // Multiplication precedence
@@ -33,8 +32,7 @@ void testInvalidExpressions(String infix, String expectedMessage) {
3332
}
3433

3534
private static Stream<Arguments> provideInvalidExpressions() {
36-
return Stream.of(
37-
Arguments.of("((a+b)*c-d", "invalid expression"), // Missing closing bracket
35+
return Stream.of(Arguments.of("((a+b)*c-d", "invalid expression"), // Missing closing bracket
3836
Arguments.of("a++b", "invalid expression") // Invalid operator
3937
);
4038
}

0 commit comments

Comments
 (0)