1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

freeze all Range objects.

Matz want to try to freeze all Range objects.
[Feature #15504]
This commit is contained in:
Koichi Sasada 2020-09-25 18:05:55 +09:00
parent f4328d7f5d
commit 0096d2b895
Notes: git 2020-09-25 22:17:22 +09:00
7 changed files with 22 additions and 10 deletions

View file

@ -419,7 +419,7 @@ describe "Marshal.dump" do
load.should == range
load.instance_variable_get(:@foo).should == 42
end
end
end unless (1...3).frozen? # Ruby 3.0 -
describe "with a Time" do
before :each do