Skip to content

Commit 0cf19ec

Browse files
committed
array parswaping with parallel assignment
1 parent 13ca86e commit 0cf19ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎about_array_assignment.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_swapping_with_parallel_assignment
4545
first_name = "Roy"
4646
last_name = "Rob"
4747
first_name, last_name = last_name, first_name
48-
assert_equal __, first_name
49-
assert_equal __, last_name
48+
assert_equal "Rob", first_name
49+
assert_equal "Roy", last_name
5050
end
5151
end

0 commit comments

Comments
 (0)