From 5f97451ef98ed12e9793d6d5c54d245ed41e241f Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 30 Jun 2005 06:27:05 +0000 Subject: [PATCH] add a test for [ruby-dev:26383]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_range.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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