From 06eece87c6e8b969a73aa80ac659f09eb9dcbbcb Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 8 Apr 2019 03:26:27 +0000 Subject: enumerator.c: force hash values fixable * enumerator.c (arith_seq_hash): force hash values fixable on LLP64 environment. [ruby-core:92190] [Bug #15755] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_arithmetic_sequence.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') diff --git a/test/ruby/test_arithmetic_sequence.rb b/test/ruby/test_arithmetic_sequence.rb index 5817631944..45a0ab9222 100644 --- a/test/ruby/test_arithmetic_sequence.rb +++ b/test/ruby/test_arithmetic_sequence.rb @@ -127,6 +127,7 @@ class TestArithmeticSequence < Test::Unit::TestCase assert_equal(seq.hash, seq.hash) assert_equal(seq.hash, 1.step.hash) assert_equal(seq.hash, 1.step(nil).hash) + assert_kind_of(String, seq.hash.to_s) end def test_first -- cgit v1.2.3