Skip to content

Instantly share code, notes, and snippets.

@msarit
Last active April 6, 2018 20:00
Show Gist options
  • Save msarit/8b03b2538fa5fb756877fdb9867b0c57 to your computer and use it in GitHub Desktop.
Save msarit/8b03b2538fa5fb756877fdb9867b0c57 to your computer and use it in GitHub Desktop.
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