[前][次][番号順一覧][スレッド一覧]

ruby-changes:39254

From: hsbt <ko1@a...>
Date: Wed, 22 Jul 2015 15:49:20 +0900 (JST)
Subject: [ruby-changes:39254] hsbt:r51335 (trunk): * test/ruby/test_range.rb: Add test case for Range#end with

hsbt	2015-07-22 15:48:53 +0900 (Wed, 22 Jul 2015)

  New Revision: 51335

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51335

  Log:
    * test/ruby/test_range.rb: Add test case for Range#end with
      exclude_end true case. [fix GH-968] Pach by @yui-knk

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_range.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51334)
+++ ChangeLog	(revision 51335)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jul 22 15:48:47 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* 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  <sitnikovme@u...>
 
 	* numeric.c (num_coerce): [DOC] fix doc for Numeric#coerce,
Index: test/ruby/test_range.rb
===================================================================
--- test/ruby/test_range.rb	(revision 51334)
+++ test/ruby/test_range.rb	(revision 51335)
@@ -259,6 +259,7 @@ class TestRange < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_range.rb#L259
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]