Skip some examples for Ruby 3.3

This commit is contained in:
Hiroshi SHIBATA 2022-12-26 13:52:48 +09:00
parent 5ec94ff740
commit a236661a62
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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))

View File

@ -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 =~ ""