From a236661a62dc89173dcdd9e071365929db1201a7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 26 Dec 2022 13:52:48 +0900 Subject: [PATCH] Skip some examples for Ruby 3.3 --- spec/ruby/core/encoding/replicate_spec.rb | 2 +- spec/ruby/core/float/round_spec.rb | 2 +- spec/ruby/core/integer/left_shift_spec.rb | 2 +- spec/ruby/core/integer/right_shift_spec.rb | 2 +- spec/ruby/language/regexp_spec.rb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/ruby/core/encoding/replicate_spec.rb b/spec/ruby/core/encoding/replicate_spec.rb index 848415eeb4..f48872fdf7 100644 --- a/spec/ruby/core/encoding/replicate_spec.rb +++ b/spec/ruby/core/encoding/replicate_spec.rb @@ -67,7 +67,7 @@ describe "Encoding#replicate" do end end - ruby_version_is "3.3" do + ruby_version_is "3.4" do it "has been removed" do Encoding::US_ASCII.should_not.respond_to?(:replicate, true) end diff --git a/spec/ruby/core/float/round_spec.rb b/spec/ruby/core/float/round_spec.rb index e5a8f534e7..50106025f9 100644 --- a/spec/ruby/core/float/round_spec.rb +++ b/spec/ruby/core/float/round_spec.rb @@ -136,7 +136,7 @@ describe "Float#round" do -4.809999999999999.round(5, half: :even).should eql(-4.81) end - ruby_bug "", ""..."3.3" do + ruby_bug "", ""..."3.4" do # These numbers are neighbouring floating point numbers round a # precise value. They test that the rounding modes work correctly # round that value and precision is not lost which might cause diff --git a/spec/ruby/core/integer/left_shift_spec.rb b/spec/ruby/core/integer/left_shift_spec.rb index 135af90421..6774e1f3e1 100644 --- a/spec/ruby/core/integer/left_shift_spec.rb +++ b/spec/ruby/core/integer/left_shift_spec.rb @@ -191,7 +191,7 @@ describe "Integer#<< (with n << m)" do (0 << bignum_value).should == 0 end - ruby_bug "#18518", ""..."3.3" do + ruby_bug "#18518", ""..."3.4" do it "raises NoMemoryError when m > 0 and n != 0" do coerce_long = mock("long") coerce_long.stub!(:to_int).and_return(2**40) diff --git a/spec/ruby/core/integer/right_shift_spec.rb b/spec/ruby/core/integer/right_shift_spec.rb index 81405667b2..3fef09a30a 100644 --- a/spec/ruby/core/integer/right_shift_spec.rb +++ b/spec/ruby/core/integer/right_shift_spec.rb @@ -213,7 +213,7 @@ describe "Integer#>> (with n >> m)" do (0 >> -bignum_value).should == 0 end - ruby_bug "#18518", ""..."3.3" do + ruby_bug "#18518", ""..."3.4" do it "raises NoMemoryError when m < 0 and n != 0" do coerce_long = mock("long") coerce_long.stub!(:to_int).and_return(-(2**40)) diff --git a/spec/ruby/language/regexp_spec.rb b/spec/ruby/language/regexp_spec.rb index d49689349d..646fb89d41 100644 --- a/spec/ruby/language/regexp_spec.rb +++ b/spec/ruby/language/regexp_spec.rb @@ -114,7 +114,7 @@ describe "Literal Regexps" do /foo.(?<=\d)/.match("fooA foo1").to_a.should == ["foo1"] end - ruby_bug "#13671", ""..."3.3" do # https://bugs.ruby-lang.org/issues/13671 + ruby_bug "#13671", ""..."3.4" do # https://bugs.ruby-lang.org/issues/13671 it "handles a lookbehind with ss characters" do r = Regexp.new("(?