fix: add SubtractFunction (#3) #4

Merged
pitfriedrich merged 6 commits from ai/issue-3-subtract-function into main 2026-07-25 08:55:10 +00:00
Collaborator

Closes #3

Adds SubtractFunction implementing CalcFunction, following the same pattern as AddFunction: subtracts each subsequent value from the first (input[0] - input[1] - ... ), returns 0 for no input. Wired into LoopTestApplication. Includes SubtractFunctionTest covering multi-value, single-value, empty-input, and negative-value cases. ./mvnw verify passes green locally.

Closes #3 Adds `SubtractFunction` implementing `CalcFunction`, following the same pattern as `AddFunction`: subtracts each subsequent value from the first (`input[0] - input[1] - ... `), returns `0` for no input. Wired into `LoopTestApplication`. Includes `SubtractFunctionTest` covering multi-value, single-value, empty-input, and negative-value cases. `./mvnw verify` passes green locally.
claude-bot added 6 commits 2026-07-25 08:54:35 +00:00
pitfriedrich merged commit be0fa22bc4 into main 2026-07-25 08:55:10 +00:00
pitfriedrich deleted branch ai/issue-3-subtract-function 2026-07-25 08:55:10 +00:00
Sign in to join this conversation.