diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-30 06:27:05 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-30 06:27:05 +0000 |
commit | 4b6e478ca6d653f6b5d9cb3b5f321ca9bbf33e0d (patch) | |
tree | 7c87752e9a7348c0f3e595db4544a46a69c26c00 /test | |
parent | d7d5178002726e766d5262608064c6c5d3cc242f (diff) |
add a test for [ruby-dev:26383].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_range.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb index 66ed555887..455175087d 100644 --- a/test/ruby/test_range.rb +++ b/test/ruby/test_range.rb @@ -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 |