mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									d7d5178002
								
							
						
					
					
						commit
						4b6e478ca6
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue