Skip to content

Torroido/String-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String Calculator TDD Kata (Ruby)

A simple TDD exercise implementing a string-based calculator in Ruby.

Usage

bundle install
rspec

Examples

add("")           # => 0
add("1")          # => 1
add("1,2")        # => 3
add("1\n2,3")     # => 6
add("//;\n1;2")   # => 3
add("1,-2,-3")    # => raises "negative numbers not allowed -2,-3"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages