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
- ruby 3.2.2
- RSpec 3.13
The project is written following TDD principles.
- Fork and clone the repo
- Cd into the project -
cd string-calculator-tdd
- Install Rspec -
gem install rspec
- Run the Tests using the following commands -
rspec ./spec/string_calculator_spec.rb