Skip to content

Independent-programmer/string-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String Calculator TDD Kata

This project implements a simple string calculator as described in the String Calculator TDD Kata. The goal is to practice Test-Driven Development (TDD) by gradually building up the functionality of a calculator that can add numbers provided in a string format.

Features

  • Handles an empty string
  • Adds numbers separated by commas
  • Handles an arbitrary number of numbers
  • Supports new lines as delimiters
  • Supports custom delimiters
  • Throws an exception for negative numbers, listing all negative numbers in the error message

Setup

  1. Clone the repository:

    git clone https://github.com/Independent-programmer/string-calculator.git
    cd string-calculator
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build
  4. Test the project

     npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published