mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/scanf.rb: fixed bug involving matching literal '['
* test/scanf/test_scanf.rb: added test for scanf.rb fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									6378201f8b
								
							
						
					
					
						commit
						9cab7d15ca
					
				
					 3 changed files with 14 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -276,6 +276,13 @@ def tests
 | 
			
		|||
      [ "%f", "+3.25", [3.25] ],
 | 
			
		||||
      [ "%f", "+3.25e2", [325.0] ],
 | 
			
		||||
      [ "%f", "3.z", [3.0] ],
 | 
			
		||||
 | 
			
		||||
# Testing embedded matches including literal '[' behavior
 | 
			
		||||
      [",%d,%f", ",10,1.1", [10,1.1] ],
 | 
			
		||||
      [" ,%d,%f", " ,10,1.1", [10,1.1] ],
 | 
			
		||||
      ["[%d,%f", "[10,1.1", [10,1.1] ],
 | 
			
		||||
      [" [%d,%f", " [10,1.1", [10,1.1] ],
 | 
			
		||||
 | 
			
		||||
     ]
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue