summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_range.rb2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bda2481738..33a2de8039 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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).
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb
index e544caf984..65aff369f1 100644
--- a/test/ruby/test_range.rb
+++ b/test/ruby/test_range.rb
@@ -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