Skip to content
/ tdd-code Public

A Test-Driven Development (TDD) project implementing a simple String Calculator in Java using JUnit 5. This project follows strict TDD principles with incremental test cases and refactoring.

Notifications You must be signed in to change notification settings

HNLad/tdd-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String Calculator (TDD)

This project implements a String Calculator (Add) using Test-Driven Development (TDD) principles.

Tech Stack

  • Programming Language: Java 8
  • Build Tool: Maven
  • Testing: JUnit 5
  • Version Control: Git

Project Overview

The String Calculator processes strings of numbers with various delimiters and calculates their sum. It includes features for custom delimiters, negative number handling, and comprehensive testing.

Key Features

  • Custom delimiters
  • Default delimiters (comma and newline)
  • Negative number validation with detailed error messages
  • Full unit test coverage

Installation & Setup

  1. Clone the repository:

    git clone https://github.com/HNLad/tdd-code.git
    
  2. Navigate to the project directory: cd tdd-code

  3. Compile the code: mvn clean compile

  4. Run tests: mvn test

Usage

For detailed usage and examples, see the StringCalculator class in the src/main/java directory.

Testing

Unit tests are provided using JUnit. You can run them with: mvn test

For specific test cases and examples, refer to the src/test/java directory.

Contributing

Feel free to submit pull requests or open issues on the GitHub repository.

Contact

For questions, contact: LinkedIn: https://www.linkedin.com/in/hanumantlad/

About

A Test-Driven Development (TDD) project implementing a simple String Calculator in Java using JUnit 5. This project follows strict TDD principles with incremental test cases and refactoring.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages