Skip to content

vagrdev/string-calculator-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

String Calculator TDD

This project is written in Ruby. It takes a String of comma separated values as input and returns the sum of integers.

  • Input: “”, Output: 0
  • Input: “1”, Output: 1
  • Input: “1,5”, Output: 6

Versions used in the project -

  • ruby 3.2.2
  • RSpec 3.13

The project is written following TDD principles.

Instructions for running the project -

  1. Fork and clone the repo
  2. Cd into the project - cd string-calculator-tdd
  3. Install Rspec - gem install rspec
  4. Run the Tests using the following commands -
rspec ./spec/string_calculator_spec.rb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages