aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-26 13:52:48 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2022-12-26 13:52:48 +0900
commita236661a62dc89173dcdd9e071365929db1201a7 (patch)
tree7ecd378e582a5a70e9d74369826dddc0a200c87d
parent5ec94ff7400c812b4e662560271540bc5690d307 (diff)
downloadruby-a236661a62dc89173dcdd9e071365929db1201a7.tar.gz
Skip some examples for Ruby 3.3
-rw-r--r--spec/ruby/core/encoding/replicate_spec.rb2
-rw-r--r--spec/ruby/core/float/round_spec.rb2
-rw-r--r--spec/ruby/core/integer/left_shift_spec.rb2
-rw-r--r--spec/ruby/core/integer/right_shift_spec.rb2
-rw-r--r--spec/ruby/language/regexp_spec.rb2
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("(?<!dss)", Regexp::IGNORECASE)
r.should =~ "✨"