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 + array2endarray_sum([1,2,3], [4,5,6])=> [1, 2, 3, 4, 5, 6]--Dheeraj KumarIs there a reason why when i would run a test it would say -1 argumentsinstead of 2? You had listed two (array1 = [], array2= []), I have neveractually gotten - arguments before with the spec test.thanks!--Posted via http://www.ruby-forum.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/0a873e3de591a2bfb3551dc08c212449%40ruby-forum.com.For more options, visit https://groups.google.com/groups/opt_out.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment