Created
March 9, 2017 04:36
-
-
Save itzsaga/bab70efeddfce6a3e28098cfa8b2fb96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Question 4 Bonus | |
describe 'swap_elements_from_to' do | |
it 'swaps elements and allows you to specify the index of the element you would like to move to a new index' do | |
expect(swap_elements_from_to(["one", "two", "three"], 2, 1)).to eq(["one", "three", "two"]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment