diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-24 03:46:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-24 03:46:55 +0000 |
commit | 770ddcdfe069f8654a07e0fcc758aea591cdd17d (patch) | |
tree | 36c7009eeab34ae5c08ac62d6005c9ee145b46a3 /test/ruby/test_env.rb | |
parent | b05c95d93f39b95c6c743282ce4d9e674453f12f (diff) | |
download | ruby-770ddcdfe069f8654a07e0fcc758aea591cdd17d.tar.gz |
* hash.c, object.c, struct.c, lib/ostruct.rb: add to_h methods.
[Feature #6276]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r-- | test/ruby/test_env.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index 9166f4df6c..8baf762472 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -327,6 +327,10 @@ class TestEnv < Test::Unit::TestCase assert_equal(h, ENV.to_hash) end + def test_to_h + assert_equal(ENV.to_hash, ENV.to_h) + end + def test_reject h1 = {} ENV.each_pair {|k, v| h1[k] = v } |