Skip to content

Instantly share code, notes, and snippets.

@royosherove
royosherove / string_calculator_test_unit1.rb
Created October 11, 2012 13:34
simplest string calculator with test_unit and ruby
require "test/unit"
class StringCalculator
NEGATIVES_MSG = "negatives not allowed"
START_OF_CUSTOMDELIM_INDEX = 3
TOO_LARGE = 1001
def add(numbers)