add a test for [ruby-dev:26383].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-06-30 06:27:05 +00:00
parent 5d637fbba1
commit 5f97451ef9
1 changed files with 6 additions and 0 deletions

View File

@ -8,4 +8,10 @@ class TestRange < Test::Unit::TestCase
assert_equal(["a"], ("a" ... "b").to_a)
assert_equal(["a", "b"], ("a" .. "b").to_a)
end
def test_evaluation_order
arr = [1,2]
r = (arr.shift)..(arr.shift)
assert_equal(1..2, r, "[ruby-dev:26383]")
end
end