8000 fix: test case result · TheAlgorithms/JavaScript@23034da · GitHub
[go: up one dir, main page]

Skip to content

Commit 23034da

Browse files
committed
fix: test case result
1 parent 0f418b0 commit 23034da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data-Structures/Stack/test/EvaluateExpression.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { evaluateExpression } from '../EvaluateExpression.js';
22

33
describe('evaluateExpression', () => {
44
it('should evaluate a valid expression', () => {
5-
const expression = '3 4 * 2 / 5 +'; // (3 * 4) / 2 + 5 = 7
5+
const expression = '3 4 * 2 / 5 +'; // (3 * 4) / 2 + 5 = 11
66
const result = evaluateExpression(expression);
7-
expect(result).toBe(7);
7+
expect(result).toBe(11);
88
});
99

1010
it('should handle division by zero', () => {

0 commit comments

Comments
 (0)
0