Skip to content

Refactor cost calculator into helper helpers#134

Merged
NessieCanCode merged 1 commit intomainfrom
refactor-calculatecharges-into-helpers
Sep 9, 2025
Merged

Refactor cost calculator into helper helpers#134
NessieCanCode merged 1 commit intomainfrom
refactor-calculatecharges-into-helpers

Conversation

@NessieCanCode
Copy link
Owner

Summary

  • break calculateCharges into normalizeRecord, applyRates, and accumulateCharge
  • iterate usage with Array.reduce instead of manual loop
  • expand unit tests to cover new helpers and overall calculation

Testing

  • ./test/check-application

https://chatgpt.com/codex/tasks/task_e_68c0b244fc708324b760a0d92c2f1a9b

@NessieCanCode NessieCanCode merged commit c361aa1 into main Sep 9, 2025
0 of 4 checks passed
@NessieCanCode NessieCanCode deleted the refactor-calculatecharges-into-helpers branch September 9, 2025 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant