Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumerator#first when yielded arrays of 1 element bug. #2376

Closed
headius opened this issue Dec 29, 2014 · 1 comment
Closed

Enumerator#first when yielded arrays of 1 element bug. #2376

headius opened this issue Dec 29, 2014 · 1 comment

Comments

@headius
Copy link
Member

headius commented Dec 29, 2014

From https://jira.codehaus.org/browse/JRUBY-7108

Enumerator.new{|y| y << [42]}.first # => 42, should be [42]
@headius
Copy link
Member Author

headius commented Jan 14, 2015

Fixed by #2458.

@headius headius closed this as completed Jan 14, 2015
@headius headius added this to the JRuby 9.0.0.0-pre1 milestone Jan 14, 2015
@headius headius self-assigned this Jan 14, 2015
eregon pushed a commit to ruby/spec that referenced this issue Sep 27, 2016
eregon added a commit that referenced this issue Sep 27, 2016
ae9cea3 Guard File.setgid? spec for superuser.
486bd3d Specs for reopening class/module private constant.
0e019a5 Show the exit status when compilation failed
2fdf80d Spec for high-precision BigMath.log on a Rational.
c37bf53 define_method should modify the visibility of an UnboundMethod.
a93fdab Add spec asserting that Kernel#` lets stderr through
c2c3091 Improve formatting
651dfd1 Add a spec for #2376
f24a00f Expose two Enumerator-related bugs
d05fabf Avoid File.split in require specs
2c791fb Use expand_path/realpath with a directory base
9daa861 Fix running a spec file directly:
2300e4c Merge pull request #293 from iliabylich/add-test-case-for-time-to_i
3cd1560 Added test case for non-zero Time#to_i.
f0548a9 getsockopt(2) may retuns SO_LINGER instead of 1
f6793fa Merge pull request #291 from etehtsea/improve-setsockopt-specs
5712b54 Add Socket::Option as arg specs to setsockopt
7f21c2c Merge pull request #290 from etehtsea/improve-unpack-pack-sockaddr
16ac165 Improve Socket.(pack_)sockaddr_un specs
19c28c3 Fix pack_sockaddr shared spec
dddcf78 Add Socket.unpack_sockaddr_un specs
8bdec12 Improve Socket.unpack_sockaddr_in specs

git-subtree-dir: spec/ruby
git-subtree-split: ae9cea38bdbeddaf16968ddc311f8ca6c481fca2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant