Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "works on the empty array [10 points]" , points: 10 do
- expect { array_2_hash([], {'Bob Smith':'', 'Sally Field':'', 'Mark Dole':''}) }.not_to raise_error
- expect(array_2_hash([], {'Bob Smith':'', 'Sally Field':'', 'Mark Dole':''})).to eq({'Bob Smith':'', 'Sally Field':'', 'Mark Dole':''})
- end
- def array_2_hash emails, contacts
- emails = ['bobsmith@example.com', 'sallyfield@example.com', 'markdole@example.com']
- contacts = {"Bob Smith": "bobsmith@example.com", "Sally Field": "sallyfield@example.com", "Mark Dole": "markdole@example.com"}
- return contacts
- end
Add Comment
Please, Sign In to add comment