From 1931f5e62ed7786f9ec38acd623d7d4c0c4ad173 Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 22 Jul 2015 06:48:53 +0000 Subject: [PATCH] * test/ruby/test_range.rb: Add test case for Range#end with exclude_end true case. [fix GH-968] Pach by @yui-knk git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_range.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index ecc521e9aa..15c91e66cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 22 15:48:47 2015 SHIBATA Hiroshi + + * test/ruby/test_range.rb: Add test case for Range#end with + exclude_end true case. [fix GH-968] Pach by @yui-knk + Wed Jul 22 09:45:31 2015 Maksim Sitnikov * numeric.c (num_coerce): [DOC] fix doc for Numeric#coerce, diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb index 65aff369f1..eaffac817c 100644 --- a/test/ruby/test_range.rb +++ b/test/ruby/test_range.rb @@ -259,6 +259,7 @@ class TestRange < Test::Unit::TestCase def test_begin_end assert_equal(0, (0..1).begin) assert_equal(1, (0..1).end) + assert_equal(1, (0...1).end) end def test_first_last