mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	delete a check on bad assumption.
If object was modified, but there is a case that hash values (#hash) are same between before modified and after modified objects.
This commit is contained in:
		
							parent
							
								
									5f95edb7af
								
							
						
					
					
						commit
						40651cf1f5
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -10,7 +10,11 @@ describe "Hash#rehash" do
 | 
			
		|||
    h[k2] = 1
 | 
			
		||||
 | 
			
		||||
    k1 << 2
 | 
			
		||||
    h.key?(k1).should == false
 | 
			
		||||
 | 
			
		||||
    # if k1 is modified to k1', k1.hash and k1'.hash can be same.
 | 
			
		||||
    # So this test has an issue. For the present, this line is commented out.
 | 
			
		||||
    # h.key?(k1).should == false
 | 
			
		||||
 | 
			
		||||
    h.keys.include?(k1).should == true
 | 
			
		||||
 | 
			
		||||
    h.rehash.should equal(h)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue