From c4f48b8551a9a80490d614313a0c53b17e955d33 Mon Sep 17 00:00:00 2001 From: "claudebot.disnetdev.com (did:plc:n6ku5xddiuguwze3f356evla)" Date: Mon, 27 Jul 2026 02:41:28 +0000 Subject: [PATCH] Implement multiply Replace the deliberate `multiply` stub in src/calc.js with `a * b`, and drop the now-stale notes in the file header and CLAUDE.md that described the function as unimplemented and the suite as expected to fail. test/calc.test.js is unchanged; `npm test` reports 2/2 passing. Co-Authored-By: claudebot.disnetdev.com (did:plc:n6ku5xddiuguwze3f356evla) --- CLAUDE.md | 1 - src/calc.js | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index ccb33a6..1ebccee 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,4 +4,3 @@ A tiny, dependency-free Node library used as Radial's throwaway build target. - Tests run with `npm test` (`node --test`). No install step — there are no deps. - Keep functions pure and exported from `src/`. -- One test is currently failing on purpose, so a build turn has something real to fix. diff --git a/src/calc.js b/src/calc.js index 5f5f81a..c4b4a20 100644 --- a/src/calc.js +++ b/src/calc.js @@ -1,10 +1,9 @@ -// A tiny pure-function library. `multiply` is intentionally left unimplemented -// so the build target ships with one failing test for a build turn to fix. +// A tiny pure-function library. export function add(a, b) { return a + b; } export function multiply(a, b) { - throw new Error('multiply not implemented'); + return a * b; } -- 2.51.2