mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* test/etc/test_etc.rb: assert only when any value is given.
[Bug #1575] [ruby-core:23722] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									a20cc16b20
								
							
						
					
					
						commit
						a6e33fd71c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -24,7 +24,7 @@ class TestEtc < Test::Unit::TestCase | |||
|       assert_kind_of(Integer, s.expire) if s.respond_to?(:expire) | ||||
|     end | ||||
| 
 | ||||
|     assert_raise(RuntimeError) { Etc.passwd { Etc.passwd { } } } | ||||
|     Etc.passwd { assert_raise(RuntimeError) { Etc.passwd { } }; break } | ||||
|   end | ||||
| 
 | ||||
|   def test_getpwuid | ||||
|  | @ -63,7 +63,7 @@ class TestEtc < Test::Unit::TestCase | |||
|       assert_kind_of(Integer, s.gid) | ||||
|     end | ||||
| 
 | ||||
|     assert_raise(RuntimeError) { Etc.group { Etc.group { } } } | ||||
|     Etc.group { assert_raise(RuntimeError) { Etc.group { } }; break } | ||||
|   end | ||||
| 
 | ||||
|   def test_getgrgid | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu