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

ruby-changes:50609

From: nobu <ko1@a...>
Date: Thu, 15 Mar 2018 18:58:57 +0900 (JST)
Subject: [ruby-changes:50609] nobu:r62762 (trunk): test_array.rb (test_slice!): moved misplaced test

nobu	2018-03-15 18:58:50 +0900 (Thu, 15 Mar 2018)

  New Revision: 62762

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

  Log:
    test_array.rb (test_slice!): moved misplaced test

  Modified files:
    trunk/test/ruby/test_array.rb
    trunk/test/ruby/test_string.rb
Index: test/ruby/test_array.rb
===================================================================
--- test/ruby/test_array.rb	(revision 62761)
+++ test/ruby/test_array.rb	(revision 62762)
@@ -1447,6 +1447,8 @@ class TestArray < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_array.rb#L1447
     assert_equal(nil, a.slice!(-6,2))
     assert_equal(@cls[1, 2, 3, 4, 5], a)
 
+    assert_equal("[2, 3]", [1,2,3].slice!(1,10000).inspect, "moved from btest/knownbug")
+
     assert_raise(ArgumentError) { @cls[1].slice! }
     assert_raise(ArgumentError) { @cls[1].slice!(0, 0, 0) }
   end
Index: test/ruby/test_string.rb
===================================================================
--- test/ruby/test_string.rb	(revision 62761)
+++ test/ruby/test_string.rb	(revision 62762)
@@ -1700,7 +1700,6 @@ CODE https://github.com/ruby/ruby/blob/trunk/test/ruby/test_string.rb#L1700
 
     assert_equal([], "".split(//, 1))
 
-    assert_equal("[2, 3]", [1,2,3].slice!(1,10000).inspect, "moved from btest/knownbug")
   ensure
     $; = fs
   end

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

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