Skip to content

Commit 27c6c0d

Browse files
committed
Fix clang
1 parent bdc0b3f commit 27c6c0d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ void testValidExpressions(String infix, String expectedPrefix) throws Exception
1818

1919
private static Stream<Arguments> provideValidExpressions() {
2020
return Stream.of(
21-
Arguments.of("3+2", "+32"), // Simple addition
22-
Arguments.of("1+(2+3)", "+1+23"), // Parentheses
23-
Arguments.of("(3+4)*5-6", "-*+3456"), // Nested operations
24-
Arguments.of("a+b*c", "+a*bc") // Multiplication precedence
21+
Arguments.of("3+2", "+32"), // Simple addition
22+
Arguments.of("1+(2+3)", "+1+23"), // Parentheses
23+
Arguments.of("(3+4)*5-6", "-*+3456"), // Nested operations
24+
Arguments.of("a+b*c", "+a*bc") // Multiplication precedence
2525
);
2626
}
2727

@@ -34,8 +34,8 @@ void testInvalidExpressions(String infix, String expectedMessage) {
3434

3535
private static Stream<Arguments> provideInvalidExpressions() {
3636
return Stream.of(
37-
Arguments.of("((a+b)*c-d", "invalid expression"), // Missing closing bracket
38-
Arguments.of("a++b", "invalid expression") // Invalid operator
37+
Arguments.of("((a+b)*c-d", "invalid expression"), // Missing closing bracket
38+
Arguments.of("a++b", "invalid expression") // Invalid operator
3939
);
4040
}
4141
}

0 commit comments

Comments
 (0)