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

no longer available.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-10-09 21:04:12 +00:00
parent 2918f391dd
commit dcad4bda58
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Thu Oct 10 06:02:08 2013 Koichi Sasada <ko1@atdot.net>
* test/ruby/test_rand.rb: fix r43224. local variable `e' is
no longer available.
Thu Oct 10 00:02:35 2013 Yusuke Endoh <mame@tsg.ne.jp>
* numeric.c (fix_aref): avoid a possible undefined behavior.

View File

@ -514,7 +514,7 @@ END
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)