ruby-changes:36790
From: hsbt <ko1@a...>
Date: Wed, 17 Dec 2014 10:50:24 +0900 (JST)
Subject: [ruby-changes:36790] hsbt:r48871 (trunk): * test/gdbm/test_gdbm.rb: Added test for each_key called without a block.
hsbt 2014-12-17 10:50:14 +0900 (Wed, 17 Dec 2014) New Revision: 48871 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48871 Log: * test/gdbm/test_gdbm.rb: Added test for each_key called without a block. Patch by @joeyates [fix GH-783] Modified files: trunk/ChangeLog trunk/test/gdbm/test_gdbm.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48870) +++ ChangeLog (revision 48871) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Dec 17 10:50:09 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * test/gdbm/test_gdbm.rb: Added test for each_key called without a block. + Patch by @joeyates [fix GH-783] + Wed Dec 17 10:18:42 2014 Koichi Sasada <ko1@a...> * compile.c (iseq_compile_each): check Index: test/gdbm/test_gdbm.rb =================================================================== --- test/gdbm/test_gdbm.rb (revision 48870) +++ test/gdbm/test_gdbm.rb (revision 48871) @@ -390,6 +390,10 @@ if defined? GDBM https://github.com/ruby/ruby/blob/trunk/test/gdbm/test_gdbm.rb#L390 assert_equal(@gdbm, ret) end + def test_each_key_without_block + assert_kind_of Enumerator, @gdbm.each_key + end + def test_keys assert_equal([], @gdbm.keys) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/