mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Expand log() tests to include long integers.
This commit is contained in:
		
							parent
							
								
									ca2623a2f9
								
							
						
					
					
						commit
						72a6ddb5ee
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -114,6 +114,8 @@ def testfrexp(name, (mant, exp), (emant, eexp)): | ||||||
| testit('log(1)', math.log(1), 0) | testit('log(1)', math.log(1), 0) | ||||||
| testit('log(e)', math.log(math.e), 1) | testit('log(e)', math.log(math.e), 1) | ||||||
| testit('log(32,2)', math.log(32,2), 5) | testit('log(32,2)', math.log(32,2), 5) | ||||||
|  | testit('log(10**40, 10)', math.log(10**40, 10), 40) | ||||||
|  | testit('log(10**40, 10**20)', math.log(10**40, 10**20), 2) | ||||||
| 
 | 
 | ||||||
| print 'log10' | print 'log10' | ||||||
| testit('log10(0.1)', math.log10(0.1), -1) | testit('log10(0.1)', math.log10(0.1), -1) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger