Skip some examples for Ruby 3.3
This commit is contained in:
parent
5ec94ff740
commit
a236661a62
@ -67,7 +67,7 @@ describe "Encoding#replicate" do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_version_is "3.3" do
|
ruby_version_is "3.4" do
|
||||||
it "has been removed" do
|
it "has been removed" do
|
||||||
Encoding::US_ASCII.should_not.respond_to?(:replicate, true)
|
Encoding::US_ASCII.should_not.respond_to?(:replicate, true)
|
||||||
end
|
end
|
||||||
|
@ -136,7 +136,7 @@ describe "Float#round" do
|
|||||||
-4.809999999999999.round(5, half: :even).should eql(-4.81)
|
-4.809999999999999.round(5, half: :even).should eql(-4.81)
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_bug "", ""..."3.3" do
|
ruby_bug "", ""..."3.4" do
|
||||||
# These numbers are neighbouring floating point numbers round a
|
# These numbers are neighbouring floating point numbers round a
|
||||||
# precise value. They test that the rounding modes work correctly
|
# precise value. They test that the rounding modes work correctly
|
||||||
# round that value and precision is not lost which might cause
|
# round that value and precision is not lost which might cause
|
||||||
|
@ -191,7 +191,7 @@ describe "Integer#<< (with n << m)" do
|
|||||||
(0 << bignum_value).should == 0
|
(0 << bignum_value).should == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_bug "#18518", ""..."3.3" do
|
ruby_bug "#18518", ""..."3.4" do
|
||||||
it "raises NoMemoryError when m > 0 and n != 0" do
|
it "raises NoMemoryError when m > 0 and n != 0" do
|
||||||
coerce_long = mock("long")
|
coerce_long = mock("long")
|
||||||
coerce_long.stub!(:to_int).and_return(2**40)
|
coerce_long.stub!(:to_int).and_return(2**40)
|
||||||
|
@ -213,7 +213,7 @@ describe "Integer#>> (with n >> m)" do
|
|||||||
(0 >> -bignum_value).should == 0
|
(0 >> -bignum_value).should == 0
|
||||||
end
|
end
|
||||||
|
|
||||||
ruby_bug "#18518", ""..."3.3" do
|
ruby_bug "#18518", ""..."3.4" do
|
||||||
it "raises NoMemoryError when m < 0 and n != 0" do
|
it "raises NoMemoryError when m < 0 and n != 0" do
|
||||||
coerce_long = mock("long")
|
coerce_long = mock("long")
|
||||||
coerce_long.stub!(:to_int).and_return(-(2**40))
|
coerce_long.stub!(:to_int).and_return(-(2**40))
|
||||||
|
@ -114,7 +114,7 @@ describe "Literal Regexps" do
|
|||||||
/foo.(?<=\d)/.match("fooA foo1").to_a.should == ["foo1"]
|
/foo.(?<=\d)/.match("fooA foo1").to_a.should == ["foo1"]
|
||||||
end
|
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
|
it "handles a lookbehind with ss characters" do
|
||||||
r = Regexp.new("(?<!dss)", Regexp::IGNORECASE)
|
r = Regexp.new("(?<!dss)", Regexp::IGNORECASE)
|
||||||
r.should =~ "✨"
|
r.should =~ "✨"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user