mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/scanf.rb: fix max width modifier for %f.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									1392791a9e
								
							
						
					
					
						commit
						1720e7e0df
					
				
					 3 changed files with 8 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -269,7 +269,7 @@ module ScanfTests
 | 
			
		|||
      [ "%[[:upper:]]", "ABCdefGHI", [ "ABC" ] ],
 | 
			
		||||
 | 
			
		||||
# Testing 'f'
 | 
			
		||||
      [ "%2f", "x", [0.0] ],  # width-floats match anything (by design)
 | 
			
		||||
      [ "%2f", "x", [] ],
 | 
			
		||||
      [ "%F", "1.23e45", [1.23e+45] ],
 | 
			
		||||
      [ "%e", "3.25ee", [3.25] ],
 | 
			
		||||
      [ "%E", "3..25", [3.0] ],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue