Skip to content

Instantly share code, notes, and snippets.

@Codercise
Created May 11, 2012 05:40
Show Gist options
  • Save Codercise/2657734 to your computer and use it in GitHub Desktop.
Save Codercise/2657734 to your computer and use it in GitHub Desktop.
def test_parallel_assignments_with_splat_operator
first_name, *last_name = "FILL ME IN", "FILL ME IN"
assert_equal __, first_name
assert_equal __, last_name
end
The answers you seek...
<"FILL ME IN"> expected but was <["FILL ME IN"]>.
Please meditate on the following code:
about_array_assignment.rb:24:in `test_parallel_assignments_with_splat_operator
'
remember that silence is sometimes the best answer
your path thus far [..................X_______________________________] 3/8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment