Advertisement
Guest User

i do not grok

a guest
Dec 16th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.28 KB | None | 0 0
  1.     hash = Hash.new([])
  2.  
  3.     hash[:one] << "uno"
  4.     hash[:two] << "dos"
  5.  
  6.     assert_equal ["uno","dos"], hash[:one]
  7.     assert_equal ["uno","dos"], hash[:two]
  8.     assert_equal ["uno","dos"], hash[:three]
  9.  
  10.     assert_equal true, hash[:one].object_id == hash[:two].object_id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement