[ruby-cvs:69223] mrkn:r62042 (trunk): hash.c: support key swapping in Hash#transform_keys!

mrkn at ruby-lang.org mrkn at ruby-lang.org
Fri Jan 26 10:33:45 JST 2018


mrkn	2018-01-26 10:33:45 +0900 (Fri, 26 Jan 2018)

  New Revision: 62042

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62042

  Log:
    hash.c: support key swapping in Hash#transform_keys!
    
    * hash.c (rb_hash_transform_keys_bang): support key swapping in
      Hash#transform_keys!
      [Bug #14380] [ruby-core:84951]
    
    * test/ruby/test_hash.rb (test_transform_keys_bang):
      add assertions for this change

  Modified files:
    trunk/hash.c
    trunk/test/ruby/test_hash.rb


More information about the ruby-cvs mailing list