test gdbm each_key called without a block #783

Closed
wants to merge 1 commit into
from

Conversation

1 participant
@joeyates
  • The aim of this test is to aid other implementations in being
    conformant with MRI.
  • The existing test calls GDBM#each_key with a block,
  • this commit tests that, when called without a block, the method
    returns an Enumerator, and does not assume there is a block,
  • the 'gdbm' gem attempts to have identical behaviour to this
    implementation, but assumes there is a block.
test gdbm each_key called without a block
* The aim of this test is to aid other implementations in being
  conformant with MRI.

* The existing test calls GDBM#each_key with a block,
* this commit tests that, when called without a block, the method
  returns an Enumerator, and does not assume there is a block,
* the 'gdbm' gem attempts to have identical behaviour to this
  implementation, but assumes there is a block.

@joeyates joeyates referenced this pull request in presidentbeef/ffi-gdbm Dec 13, 2014

Merged

Return an Enumerator for #each_key without a block #2

@hsbt hsbt closed this in bf29986 Dec 17, 2014

ayumin pushed a commit to ayumin/ruby that referenced this pull request Jan 4, 2015

* test/gdbm/test_gdbm.rb: Added test for each_key called without a bl…
…ock.

  Patch by @joeyates [fix GH-783]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

mmasaki pushed a commit to mmasaki/ruby that referenced this pull request May 30, 2015

* test/gdbm/test_gdbm.rb: Added test for each_key called without a bl…
…ock.

  Patch by @joeyates [fix GH-783]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment