summaryrefslogtreecommitdiff
path: root/test/ruby/test_rand.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-05 13:27:22 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-03-05 13:27:22 +0000
commit9194b220a59435a5a16d62a3ccc93b5adc784cd1 (patch)
tree654b01c15ba23e9a43ee9cc7bce65d24c54613e2 /test/ruby/test_rand.rb
parent01740f0c273c89f7bcff3d5014d73c8ff6fb1986 (diff)
* test/ruby: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rand.rb')
-rw-r--r--test/ruby/test_rand.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb
index 7b68bc38d0..62efecb833 100644
--- a/test/ruby/test_rand.rb
+++ b/test/ruby/test_rand.rb
@@ -210,7 +210,8 @@ class TestRand < Test::Unit::TestCase
assert_raise(ArgumentError, '[ruby-dev:39166]') { r.rand(0..-1) }
assert_raise(ArgumentError, '[ruby-dev:39166]') { r.rand(0.0...0.0) }
assert_raise(ArgumentError, '[ruby-dev:39166]') { r.rand(0.0...-0.1) }
- assert_raise(ArgumentError, bug3027 = '[ruby-core:29075]') { r.rand(nil) }
+ bug3027 = '[ruby-core:29075]'
+ assert_raise(ArgumentError, bug3027) { r.rand(nil) }
end
def test_random_seed
@@ -420,7 +421,7 @@ END
(1..10).to_a.shuffle
raise 'default seed is not set' if srand == 0
end
- p2, st = Process.waitpid2(pid)
+ _, st = Process.waitpid2(pid)
assert_predicate(st, :success?, "#{st.inspect}")
rescue NotImplementedError, ArgumentError
end