⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (251 Bytes)
Bug #13282
ยป opt_str_freeze_not_always_effective.rb
normalperson (Eric Wong)
, 03/05/2017 01:57 AM
require
'test/unit'
# Oddly, test/ruby/test_optimization.rb (test_string_freeze)
# has the same test and passes
class
TestString
<
Test
::
Unit
::
TestCase
def
test_string_freeze
assert_equal
"foo"
.
freeze
.
object_id
,
"foo"
.
freeze
.
object_id
end
end
(1-1/1)
Loading...