https://github.com/ankita0399/string-calculator
Incubyte Assessment - String Calculator implemented with TDD in JavaScript (Jest)
https://github.com/ankita0399/string-calculator
javascript jest kata software-craftsmanship tdd
Last synced: 3 months ago
JSON representation
Incubyte Assessment - String Calculator implemented with TDD in JavaScript (Jest)
- Host: GitHub
- URL: https://github.com/ankita0399/string-calculator
- Owner: ankita0399
- Created: 2025-09-16T06:09:37.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-16T09:31:59.000Z (10 months ago)
- Last Synced: 2025-10-14T13:13:53.787Z (9 months ago)
- Topics: javascript, jest, kata, software-craftsmanship, tdd
- Language: JavaScript
- Homepage:
- Size: 229 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Incubyte Assessment
String Calculator TDD Kata
Implementation of the String Calculator kata using Test Driven Development (TDD).
---
## Features
- **Returns 0** for empty string
- **Returns number itself** for single input
- **Supports multiple numbers** separated by commas
- **Supports new line** (`\n`) as a delimiter
- **Supports custom delimiters** (e.g., `//;\n1;2`)
- **Throws exception for negative numbers** (lists all negatives)
---
## Getting Started
Clone the repository and run tests locally:
```bash
git clone https://github.com/ankita0399/string-calculator.git
cd string-calculator
npm install
npm test
```
---
## Screenshots
All tests passing