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

ruby-changes:30363

From: naruse <ko1@a...>
Date: Thu, 8 Aug 2013 11:16:26 +0900 (JST)
Subject: [ruby-changes:30363] naruse:r42432 (trunk): Follow r42431

naruse	2013-08-08 11:16:17 +0900 (Thu, 08 Aug 2013)

  New Revision: 42432

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

  Log:
    Follow r42431
    
    Follow tests to revert r42400.  [Bug #8739]

  Modified files:
    trunk/test/ruby/test_range.rb
_______________________________________________
ruby-cvs mailing list
ruby-cvs@r...
http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/ruby-cvs
Index: test/ruby/test_range.rb
===================================================================
--- test/ruby/test_range.rb	(revision 42431)
+++ test/ruby/test_range.rb	(revision 42432)
@@ -260,10 +260,10 @@ class TestRange < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_range.rb#L260
     assert_equal([0, 1, 2], (0...10).first(3), bug8739)
     assert_equal([7, 8, 9], (0...10).last(3), bug8739)
     assert_equal(0, (0...10).first, bug8739)
-    assert_equal(9, (0...10).last, bug8739)
+    assert_equal(10, (0...10).last, bug8739)
     assert_equal("a", ("a"..."c").first, bug8739)
-    assert_equal("b", ("a"..."c").last, bug8739)
-    assert_nil((2...0).last)
+    assert_equal("c", ("a"..."c").last, bug8739)
+    assert_equal(0, (2...0).last)
   end
 
   def test_to_s

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

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