Hi, Renée.

My apologies for the late response. The code I submitted did not work for the
"multiplies two numbers" test:


  1) Calculator#multiply multiplies two numbers
     Failure/Error: @calculator.multiply(2,2).should eq 4
     ArgumentError:
       wrong number of arguments (2 for 1)
     # ./calculator.rb:7:in `multiply'
     # ./calculator_spec.rb:31:in `block (3 levels) in <top (required)>'


-Armie
P.S. Congrats to the Seahawks!



On Thursday, January 30, 2014 6:27 PM, Renée Hendricksen <notifications@github.com> wrote:
 
In week3/homework/calculator.rb:
> @@ -0,0 +1,23 @@
> +class Calculator
> +		
> +	def sum x=[]
> +		x.inject(0) {|sum, num| sum + num}
> +	end
> +	
> +	def multiply b
> +		b.inject(:*) 
Does this work for all the tests?
—
Reply to this email directly or view it on GitHub.