Last active
April 6, 2018 20:00
-
-
Save msarit/8b03b2538fa5fb756877fdb9867b0c57 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
require_relative "./linkedlistnode1and2.rb" | |
RSpec.describe 'mutate_list' do | |
it "should return the expected values" do | |
node1 = LinkedListNode.new(1) | |
node2 = LinkedListNode.new(2,node1) | |
rev = reverse_list(node2) | |
mutate = mutate_list(node2) | |
expect(rev).to eq mutate | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment