Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hash = Hash.new([])
- hash[:one] << "uno"
- hash[:two] << "dos"
- assert_equal ["uno","dos"], hash[:one]
- assert_equal ["uno","dos"], hash[:two]
- assert_equal ["uno","dos"], hash[:three]
- assert_equal true, hash[:one].object_id == hash[:two].object_id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement