mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 17:14:01 +02:00
add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
55da5c4603
commit
707d22f1dd
1 changed files with 2 additions and 0 deletions
|
@ -2033,6 +2033,8 @@ class TestArray < Test::Unit::TestCase
|
|||
assert_equal([], a.rotate(-13))
|
||||
a = [1,2,3]
|
||||
assert_raise(ArgumentError) { a.rotate(1, 1) }
|
||||
assert_equal([1,2,3,4,5].rotate(2**31-1), [1,2,3,4,5].rotate(2**31-0.1))
|
||||
assert_equal([1,2,3,4,5].rotate(-2**31), [1,2,3,4,5].rotate(-2**31-0.9))
|
||||
end
|
||||
|
||||
def test_rotate!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue