From 00d0d6eab02a7102d7e720b4cfd105210a27a85d Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 30 Jun 2011 11:35:04 +0000 Subject: * test/ruby/test_rand.rb (test_random_bytes): fold mysteriously long line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_rand.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_rand.rb') diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index 9ba38f399c..67b6df8562 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -340,10 +340,14 @@ END end def test_random_bytes - r = Random.new(0) + assert_random_bytes(Random.new(0)) + end + + def assert_random_bytes(r) assert_equal("", r.bytes(0)) assert_equal("\xAC".force_encoding("ASCII-8BIT"), r.bytes(1)) - assert_equal("/\xAA\xC4\x97u\xA6\x16\xB7\xC0\xCC".force_encoding("ASCII-8BIT"), r.bytes(10)) + assert_equal("/\xAA\xC4\x97u\xA6\x16\xB7\xC0\xCC".force_encoding("ASCII-8BIT"), + r.bytes(10)) end def test_random_range -- cgit v1.2.1