Skip to content

Commit 98b1d08

Browse files
committed
tests: add test case with -
1 parent 27d8267 commit 98b1d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/thealgorithms/others/StackPostfixNotationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public class StackPostfixNotationTest {
1111
@Test
1212
public void testEvaluate() {
13-
final Map<String, Integer> testCases = Map.ofEntries(entry("1 1 +", 2), entry("2 3 *", 6), entry("6 2 /", 3), entry("5 2 + 3 *", 21), entry("-5", -5));
13+
final Map<String, Integer> testCases = Map.ofEntries(entry("1 1 +", 2), entry("2 3 *", 6), entry("6 2 /", 3), entry("-5 -2 -", -3), entry("5 2 + 3 *", 21), entry("-5", -5));
1414
for (final var tc : testCases.entrySet()) {
1515
assertEquals(tc.getValue(), StackPostfixNotation.postfixEvaluate(tc.getKey()));
1616
}

0 commit comments

Comments
 (0)