summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_hash.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-07 15:09:12 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-07 15:09:12 +0000
commit99a739c55f90ddf3526bc75bd4337f44d4f1b6f5 (patch)
tree051efbdc49a2d8db94b4a12e11ccd10f37fb78ee /test/ruby/test_hash.rb
parentc22cb0aa11a4ae6edd113b455b6a444f73db0885 (diff)
downloadruby-99a739c55f90ddf3526bc75bd4337f44d4f1b6f5.tar.gz
ruby-99a739c55f90ddf3526bc75bd4337f44d4f1b6f5.tar.xz
ruby-99a739c55f90ddf3526bc75bd4337f44d4f1b6f5.zip
* test/ruby/test_hash.rb: follow the change of Hash#flatten.
* test/ruby/test_time.rb: add tests to achieve over 70% test coverage of time.c. * test/ruby/test_prec.rb: ditto over 90% for prec.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r--test/ruby/test_hash.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb
index ff6c383db..9c2978cd8 100644
--- a/test/ruby/test_hash.rb
+++ b/test/ruby/test_hash.rb
@@ -794,7 +794,7 @@ class TestHash < Test::Unit::TestCase
end
def test_flatten
- assert_equal([1, 2], {[1] => [2]}.flatten)
+ assert_equal([[1], [2]], {[1] => [2]}.flatten)
end
def test_callcc