Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Add math helpers, tests and checks | 1 | const assert = require("node:assert"); |
| 2 | const math = require("./math"); | |
| 3 | ||
| 4 | assert.strictEqual(math.add(2, 3), 5); | |
| 5 | if (math.multiply) assert.strictEqual(math.multiply(4, 5), 20); | |
| 6 | console.log("all tests passed"); |