1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_range.rb: Add test for Range#hash

[fix GH-969] Patch by @yui-knk

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2015-07-21 11:32:38 +00:00
parent e9cb9d1060
commit 155f3845be
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Jul 21 20:32:33 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* test/ruby/test_range.rb: Add test for Range#hash
[fix GH-969] Patch by @yui-knk
Tue Jul 21 19:43:20 2015 Koichi Sasada <ko1@atdot.net>
* compile.c: constify the first parameter (iseq).

View file

@ -138,6 +138,8 @@ class TestRange < Test::Unit::TestCase
def test_hash
assert_kind_of(Fixnum, (0..1).hash)
assert_equal((0..1).hash, (0..1).hash)
assert_not_equal((0..1).hash, (0...1).hash)
end
def test_step