diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-10-30 13:49:46 +0100 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2023-10-30 13:49:46 +0100 |
commit | ab4781b64d945e962575f2eac20b72185235d23b (patch) | |
tree | 9c4456926c1616b0417db0b389371d578876a136 /spec/ruby/core/array | |
parent | 14fa5e39d72c84d3e12e10dc5d77a6e6200c10f5 (diff) | |
download | ruby-ab4781b64d945e962575f2eac20b72185235d23b.tar.gz |
Update to ruby/spec@bd7017f
Diffstat (limited to 'spec/ruby/core/array')
-rw-r--r-- | spec/ruby/core/array/bsearch_index_spec.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/ruby/core/array/bsearch_index_spec.rb b/spec/ruby/core/array/bsearch_index_spec.rb index df2c7c098e..94d85b37f3 100644 --- a/spec/ruby/core/array/bsearch_index_spec.rb +++ b/spec/ruby/core/array/bsearch_index_spec.rb @@ -63,10 +63,6 @@ describe "Array#bsearch_index" do @array.bsearch_index { |x| -1 }.should be_nil end - it "returns the middle element when block always returns zero" do - @array.bsearch_index { |x| 0 }.should == 2 - end - context "magnitude does not effect the result" do it "returns the index of any matched elements where element is between 4n <= xn < 8n" do [1, 2].should include(@array.bsearch_index { |x| (1 - x / 4) * (2**100) }) |