Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ const assert = require("assert");

assert.strictEqual(add(1, 2), 3);
assert.strictEqual(subtract(5, 3), 2);
assert.strictEqual(add(2, 2), 5); // intentionally wrong to fail CI
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: add(2, 2) returns 4, not 5. The inline comment confirms this is intentionally wrong. If the goal is to add coverage for add with equal operands, the assertion should be:

Suggested change
assert.strictEqual(add(2, 2), 5); // intentionally wrong to fail CI
assert.strictEqual(add(2, 2), 4);


console.log("All tests passed!");
Loading