Freeze test string to be shared for sharable-middle-substring
This commit is contained in:
parent
af04e26924
commit
9f059d908c
@ -24,7 +24,7 @@ class TestStringMemory < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_byteslice_prefix
|
||||
string = "a" * 100_000
|
||||
string = ("a" * 100_000).freeze
|
||||
|
||||
allocations = capture_allocations(String) do
|
||||
string.byteslice(0, 50_000)
|
||||
|
Loading…
x
Reference in New Issue
Block a user