Add Subtract function to math utility package #3

Open
opened 2026-05-21 15:32:49 +00:00 by fjadmin · 2 comments
Owner

Add a Subtract function to the math utility package.

Requirements:

  • Add Subtract(a, b int) int to pkg/math/math.go that returns the difference of two integers
  • Include unit tests in pkg/math/math_test.go
  • Follow Go conventions (package name: mathutil)

Deliverables:

  • Update pkg/math/math.go — Subtract function implementation
  • Update pkg/math/math_test.go — Unit tests for Subtract

Depends on: #1

Parent Context (from #1)

Break this down into sub-issues: 1) Add Add function, 2) Add Subtract function, 3) Integration test

Context

This issue depends on parent issue #1. The code this issue works with will be available in the repository once the parent PR is merged. Wait for the 'ready' label before starting implementation.

Add a Subtract function to the math utility package. **Requirements:** - Add `Subtract(a, b int) int` to `pkg/math/math.go` that returns the difference of two integers - Include unit tests in `pkg/math/math_test.go` - Follow Go conventions (package name: `mathutil`) **Deliverables:** - Update `pkg/math/math.go` — Subtract function implementation - Update `pkg/math/math_test.go` — Unit tests for Subtract Depends on: #1 ## Parent Context (from #1) Break this down into sub-issues: 1) Add Add function, 2) Add Subtract function, 3) Integration test ## Context This issue depends on parent issue #1. The code this issue works with will be available in the repository once the parent PR is merged. Wait for the 'ready' label before starting implementation.
fjadmin added the
planning
blocked
labels 2026-05-21 15:32:52 +00:00
Author
Owner

This repository needs a scaffold first. Please wait for #5 to be resolved, then remove the blocked label from this issue to continue.

This repository needs a scaffold first. Please wait for #5 to be resolved, then remove the `blocked` label from this issue to continue. <!-- ford -->
Author
Owner

This repository needs a scaffold first. Please wait for #5 to be resolved, then remove the blocked label from this issue to continue.

This repository needs a scaffold first. Please wait for #5 to be resolved, then remove the `blocked` label from this issue to continue. <!-- ford -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fjadmin/controlled-project#3
No description provided.