mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@e829fb0
This commit is contained in:
parent
ce888bfa23
commit
3f6c0a6d74
27 changed files with 296 additions and 134 deletions
|
@ -69,4 +69,11 @@ describe 'String#-@' do
|
|||
(-dynamic).should equal(-"this string is frozen".freeze)
|
||||
end
|
||||
end
|
||||
|
||||
ruby_version_is "3.0" do
|
||||
it "interns the provided string if it is frozen" do
|
||||
dynamic = "this string is unique and frozen #{rand}".freeze
|
||||
(-dynamic).should equal(dynamic)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue