mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	ripper: assertions for rescue/ensure in method body
This commit is contained in:
		
							parent
							
								
									e9974a466a
								
							
						
					
					
						commit
						050bb06e66
					
				
				
				Notes:
				
					git
				
				2021-05-21 18:28:47 +09:00 
				
			
			
			
		
		
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -660,6 +660,8 @@ class TestRipper::ParserEvents < Test::Unit::TestCase | |||
|     } | ||||
|     assert_equal true, thru_def | ||||
|     assert_equal '[def(foo,[],bodystmt([void()]))]', parse('def foo ;end') | ||||
|     assert_equal '[def(foo,[],bodystmt([void()],rescue(,,[void()])))]', parse('def foo ;rescue; end') | ||||
|     assert_equal '[def(foo,[],bodystmt([void()],,,ensure([void()])))]', parse('def foo ;ensure; end') | ||||
|   end | ||||
| 
 | ||||
|   def test_endless_def | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Nobuyoshi Nakada
						Nobuyoshi Nakada