mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* bootstraptest/test_exception.rb: test for [ruby-core:24767].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									6b0ac4ae63
								
							
						
					
					
						commit
						c82826ce5f
					
				
					 1 changed files with 13 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -370,7 +370,7 @@ assert_equal %q{}, %q{
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
assert_match /undefined method `foo\'/, %q{
 | 
			
		||||
assert_match /undefined method `foo\'/, %q{#`
 | 
			
		||||
  STDERR.reopen(STDOUT)
 | 
			
		||||
  class C
 | 
			
		||||
    def inspect
 | 
			
		||||
| 
						 | 
				
			
			@ -402,3 +402,15 @@ assert_equal 'nil', %q{
 | 
			
		|||
  exc.inspect
 | 
			
		||||
}, '[ruby-dev:32608]'
 | 
			
		||||
 | 
			
		||||
assert_equal 'exception class/object expected', %q{
 | 
			
		||||
  class ZeroDivisionError
 | 
			
		||||
    def self.new(message)
 | 
			
		||||
      42
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
  begin
 | 
			
		||||
    1/0
 | 
			
		||||
  rescue Exception => e
 | 
			
		||||
    e.message
 | 
			
		||||
  end
 | 
			
		||||
}, '[ruby-core:24767]'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue