File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/test/java/com/thealgorithms/stacks Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -33,18 +33,12 @@ void testExtraOperands() {
33
33
@ Test
34
34
@ DisplayName ("Should throw ArithmeticException for division by zero" )
35
35
void testDivisionByZero () {
36
- assertThrows (ArithmeticException .class , () -> PostfixEvaluator .evaluatePostfix ("5 0 /" ));
36
+ assertThrows (ArithmeticException .class , () -> PostfixEvaluator .evaluatePostfix ("1 0 /" ));
37
37
}
38
38
39
39
@ Test
40
40
@ DisplayName ("Should throw IllegalArgumentException for invalid characters" )
41
41
void testInvalidToken () {
42
- assertThrows (IllegalArgumentException .class , () -> PostfixEvaluator .evaluatePostfix ("5 a +" ));
43
- }
44
-
45
- @ Test
46
- @ DisplayName ("Should throw EmptyStackException for empty input" )
47
- void testEmptyInput () {
48
- assertThrows (EmptyStackException .class , () -> PostfixEvaluator .evaluatePostfix ("" ));
42
+ assertThrows (IllegalArgumentException .class , () -> PostfixEvaluator .evaluatePostfix ("1 a +" ));
49
43
}
50
44
}
You can’t perform that action at this time.
0 commit comments