Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 823f97c47b34
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 688e15f639af
Choose a head ref
  • 6 commits
  • 4 files changed
  • 2 contributors

Commits on Apr 20, 2016

  1. Copy the full SHA
    b8adec3 View commit details

Commits on May 2, 2016

  1. Add a spec for #2376

    nightscape committed May 2, 2016
    Copy the full SHA
    3977a1d View commit details
  2. Improve formatting

    nightscape committed May 2, 2016
    Copy the full SHA
    3ce1432 View commit details

Commits on Aug 24, 2016

  1. Merge branch 'enumerator_bugs' of https://github.com/crealytics/jruby

    …into crealytics-enumerator_bugs
    headius committed Aug 24, 2016
    Copy the full SHA
    e49b560 View commit details
  2. Copy the full SHA
    f69d413 View commit details
  3. Tag failing spec from #3814.

    headius committed Aug 24, 2016
    Copy the full SHA
    688e15f View commit details
7 changes: 7 additions & 0 deletions spec/ruby/core/enumerator/first_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require File.expand_path('../../../spec_helper', __FILE__)

describe "Enumerator#first" do
it "returns arrays correctly when calling #first (2376)" do
Enumerator.new {|y| y << [42] }.first.should == [42]
end
end
4 changes: 4 additions & 0 deletions spec/ruby/core/enumerator/lazy/map_spec.rb
Original file line number Diff line number Diff line change
@@ -5,4 +5,8 @@

describe "Enumerator::Lazy#map" do
it_behaves_like :enumerator_lazy_collect, :map

it "doesn't unwrap Arrays" do
Enumerator.new {|y| y.yield([1])}.lazy.to_a.should == [[1]]
end
end
7 changes: 7 additions & 0 deletions spec/ruby/core/enumerator/yielder/append_spec.rb
Original file line number Diff line number Diff line change
@@ -10,6 +10,13 @@
ary.should == [1]
end

it "doesn't double-wrap Arrays" do
yields = []
y = enumerator_class::Yielder.new {|args| yields << args }
y << [1]
yields.should == [[1]]
end

it "returns self" do
y = enumerator_class::Yielder.new {|x| x + 1}
(y << 1).should equal(y)
1 change: 1 addition & 0 deletions spec/tags/ruby/core/enumerator/first_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Enumerator#first returns arrays correctly when calling #first (2376)