diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-09-25 18:05:55 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-09-25 22:16:55 +0900 |
commit | 0096d2b895395df5ab8696d3b6d444dc1b7730b6 (patch) | |
tree | 21aa9c7e0eab7304433d05b6bce6f5b26f5e1d95 /bootstraptest/test_ractor.rb | |
parent | f4328d7f5d035b5a292d00ad21e79818b9220d8b (diff) |
freeze all Range objects.v3_0_0_preview1
Matz want to try to freeze all Range objects.
[Feature #15504]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3583
Diffstat (limited to 'bootstraptest/test_ractor.rb')
-rw-r--r-- | bootstraptest/test_ractor.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index a71f00672b..6f94ce6918 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -448,9 +448,9 @@ assert_equal "ok", %q{ [{a: 1}.freeze, 'str'.freeze].freeze, # nested frozen container S.new(1, 2).freeze, # frozen Struct S.new(1, 2, 3, 4).freeze, # frozen Struct - (1..2).freeze, # Range on Struct - (1..).freeze, # Range on Strcut - (..1).freeze, # Range on Strcut + (1..2), # Range on Struct + (1..), # Range on Strcut + (..1), # Range on Strcut C, # class M, # module Ractor.current, # Ractor @@ -463,7 +463,6 @@ assert_equal "ok", %q{ S.new(1, 2), S.new(1, 2, 3, 4), S.new("a", 2).freeze, # frozen, but refers to an unshareable object - (1..2), (1..), (..1), ] results = [] |