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

ruby-changes:31152

From: ko1 <ko1@a...>
Date: Thu, 10 Oct 2013 06:04:20 +0900 (JST)
Subject: [ruby-changes:31152] ko1:r43231 (trunk): * test/ruby/test_rand.rb: fix r43224. local variable `e' is

ko1	2013-10-10 06:04:12 +0900 (Thu, 10 Oct 2013)

  New Revision: 43231

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

  Log:
    * test/ruby/test_rand.rb: fix r43224. local variable `e' is
      no longer available.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_rand.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43230)
+++ ChangeLog	(revision 43231)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 10 06:02:08 2013  Koichi Sasada  <ko1@a...>
+
+	* test/ruby/test_rand.rb: fix r43224. local variable `e' is
+	  no longer available.
+
 Thu Oct 10 00:02:35 2013  Yusuke Endoh  <mame@t...>
 
 	* numeric.c (fix_aref): avoid a possible undefined behavior.
Index: test/ruby/test_rand.rb
===================================================================
--- test/ruby/test_rand.rb	(revision 43230)
+++ test/ruby/test_rand.rb	(revision 43231)
@@ -514,7 +514,7 @@ END https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rand.rb#L514
 
     bug7903 = '[ruby-dev:47061] [Bug #7903]'
     def (gen = Object.new).rand(*) -1 end
-    assert_raise_with_message(RangeError, /small -1\z/, e.message, bug7903) {[1,2,3].sample(random: gen)}
+    assert_raise_with_message(RangeError, /small -1\z/, bug7903) {[1,2,3].sample(random: gen)}
 
     bug7935 = '[ruby-core:52779] [Bug #7935]'
     class << (gen = Object.new)

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

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