Ruby on Rails Thursday, August 29, 2013

Could you paste your test?

-- 
Dheeraj Kumar

On Friday 30 August 2013 at 2:37 AM, Alex Froelich wrote:

Dheeraj Kumar wrote in post #1119995:
def array_sum(array1 = [], array2 = [])
array1 + array2
end

array_sum([1,2,3], [4,5,6])
=> [1, 2, 3, 4, 5, 6]


--
Dheeraj Kumar

Is there a reason why when i would run a test it would say -1 arguments
instead of 2? You had listed two (array1 = [], array2= []), I have never
actually gotten - arguments before with the spec test.

thanks!

--

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/831C9BE2A23945999A263DFFFD4B704E%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment