[ruby-core:79916] Re: [Ruby trunk Bug#13282] opt_str_freeze does not always dedupe

From: Eric Wong <normalperson@...>
Date: 2017-03-05 07:27:36 UTC
List: ruby-core #79916
Eric Wong <normalperson@yhbt.net> wrote:
> Now, I wonder what's causing this to interact badly with
> test-unit...

Same test with minitest (5.10.1) + ruby 2.5.0dev r57744 works fine:

require 'minitest/autorun'
class TestString < Minitest::Test
  def test_string_freeze
    assert_equal "foo".freeze.object_id, "foo".freeze.object_id
  end
end

Strange...

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread