summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-30 06:27:05 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-30 06:27:05 +0000
commit4b6e478ca6d653f6b5d9cb3b5f321ca9bbf33e0d (patch)
tree7c87752e9a7348c0f3e595db4544a46a69c26c00 /test
parentd7d5178002726e766d5262608064c6c5d3cc242f (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.rb6
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