diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-26 20:48:21 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-26 20:48:21 +0000 |
commit | 9245e097ecf201f0f5eaeff307b1403d97c2318b (patch) | |
tree | 849596b8af99adbef2ecff5d769928b33d3e5048 /spec/ruby/core/enumerator | |
parent | 6c2b58986508b82896eefeaf195be0aa506eaa45 (diff) | |
download | ruby-9245e097ecf201f0f5eaeff307b1403d97c2318b.tar.gz |
Update to ruby/spec@a585ec3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/core/enumerator')
-rw-r--r-- | spec/ruby/core/enumerator/lazy/uniq_spec.rb | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/spec/ruby/core/enumerator/lazy/uniq_spec.rb b/spec/ruby/core/enumerator/lazy/uniq_spec.rb index d31e816faf..3c9acdc453 100644 --- a/spec/ruby/core/enumerator/lazy/uniq_spec.rb +++ b/spec/ruby/core/enumerator/lazy/uniq_spec.rb @@ -13,9 +13,11 @@ ruby_version_is '2.4' do @lazy.force.should == [0, 1] end - it 'return same value after rewind' do - @lazy.force.should == [0, 1] - @lazy.force.should == [0, 1] + ruby_bug "#14495", "2.4"..."2.5.1" do + it 'return same value after rewind' do + @lazy.force.should == [0, 1] + @lazy.force.should == [0, 1] + end end it 'sets the size to nil' do @@ -33,9 +35,11 @@ ruby_version_is '2.4' do @lazy.force.should == [0, 1] end - it 'return same value after rewind' do - @lazy.force.should == [0, 1] - @lazy.force.should == [0, 1] + ruby_bug "#14495", "2.4"..."2.5.1" do + it 'return same value after rewind' do + @lazy.force.should == [0, 1] + @lazy.force.should == [0, 1] + end end it 'sets the size to nil' do @@ -56,10 +60,12 @@ ruby_version_is '2.4' do @lazy = enum.lazy end - it 'return same value after rewind' do - enum = @lazy.uniq { |_, label| label.downcase } - enum.force.should == [[0, 'foo'], [2, 'bar']] - enum.force.should == [[0, 'foo'], [2, 'bar']] + ruby_bug "#14495", "2.4"..."2.5.1" do + it 'return same value after rewind' do + enum = @lazy.uniq { |_, label| label.downcase } + enum.force.should == [[0, 'foo'], [2, 'bar']] + enum.force.should == [[0, 'foo'], [2, 'bar']] + end end it 'returns all yield arguments as an array' do |