For this line: “Test.assert_equals(“10 9 8 7 6 5 4 3 2 1 liftoff!”,
liftoff
[8,1,10,2,7,9,6,3,4,5] )”.
Try wrapping the params of liftoff in parenthesis. I think the ruby
interpreter is having trouble understanding that (not exactly sure why).
So it looks like “Test.assert_equals(“10 9 8 7 6 5 4 3 2 1 liftoff!”,
liftoff([8,1,10,2,7,9,6,3,4,5]) )”. I think that also makes the code
easier
to read from a human standpoint too.
For this line: "Test.assert_equals("10 9 8 7 6 5 4 3 2 1
liftoff!", liftoff [8,1,10,2,7,9,6,3,4,5] )".
Try wrapping the params of liftoff in parenthesis. I think
the ruby interpreter is having trouble understanding that
(not exactly sure why).??
So it looks like "Test.assert_equals("10 9 8 7 6 5 4 3 2 1
liftoff!", liftoff([8,1,10,2,7,9,6,3,4,5]) )". I think that
also makes the code easier to read from a human standpoint
too.
Jeremy
On Wed, Nov 19, 2014 at 11:08 AM,
Roelof W. <[email protected]>
wrote:
Hello,
I have now a exercise where I have to change a list to a
string with the last item is the word "liftoff!"