mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* test/ruby/test_eval.rb (class TestEval): Use assert_same instead of
assert_equal. * test/ruby/test_hash.rb (class TestHash): ditto. * test/ruby/test_iseq.rb (class TestISeq): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									9c8f03fac9
								
							
						
					
					
						commit
						53f3ddfefb
					
				
					 4 changed files with 11 additions and 7 deletions
				
			
		|  | @ -1,3 +1,10 @@ | |||
| Wed Nov 27 15:02:53 2013  Aman Gupta <ruby@tmm1.net> | ||||
| 
 | ||||
| 	* test/ruby/test_eval.rb (class TestEval): Use assert_same instead of | ||||
| 	  assert_equal. | ||||
| 	* test/ruby/test_hash.rb (class TestHash): ditto. | ||||
| 	* test/ruby/test_iseq.rb (class TestISeq): ditto. | ||||
| 
 | ||||
| Wed Nov 27 14:50:02 2013  Eric Hodel  <drbrain@segment7.net> | ||||
| 
 | ||||
| 	* lib/rinda/ring.rb:  Announce RingServer for the same process. | ||||
|  |  | |||
|  | @ -482,7 +482,6 @@ class TestEval < Test::Unit::TestCase | |||
|     a, b = o.method(:foo).source_location[0], | ||||
|            o.method(:bar).source_location[0] | ||||
| 
 | ||||
|     assert_equal a.object_id, b.object_id, | ||||
|       "#{a.inspect}.object_id != #{b.inspect}.object_id" | ||||
|     assert_same a, b | ||||
|   end | ||||
| end | ||||
|  |  | |||
|  | @ -212,7 +212,7 @@ class TestHash < Test::Unit::TestCase | |||
|   def test_ASET_string | ||||
|     a = {"ABC" => :t} | ||||
|     b = {"ABC" => :t} | ||||
|     assert_equal a.keys[0].object_id, b.keys[0].object_id | ||||
|     assert_same a.keys[0], b.keys[0] | ||||
|   end | ||||
| 
 | ||||
|   def test_EQUAL # '==' | ||||
|  |  | |||
|  | @ -121,9 +121,7 @@ class TestISeq < Test::Unit::TestCase | |||
|     c = Class.new{ def foobar() end } | ||||
| 
 | ||||
|     a, b = eval("# encoding: us-ascii\n'foobar'.freeze"), | ||||
|       ISeq.of(c.instance_method(:foobar)).label | ||||
| 
 | ||||
|     assert_equal a.object_id, b.object_id, | ||||
|       "#{a.inspect}.object_id != #{b.inspect}.object_id" | ||||
|            ISeq.of(c.instance_method(:foobar)).label | ||||
|     assert_same a, b | ||||
|   end | ||||
| end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tmm1
						tmm1