mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00

integer types, and y must be >= 0. See discussion at http://sf.net/tracker/index.php?func=detail&aid=457066&group_id=5470&atid=105470
25 lines
418 B
Text
25 lines
418 B
Text
test_pow
|
|
Testing integer mode...
|
|
Testing 2-argument pow() function...
|
|
Testing 3-argument pow() function...
|
|
Testing long integer mode...
|
|
Testing 2-argument pow() function...
|
|
Testing 3-argument pow() function...
|
|
Testing floating point mode...
|
|
Testing 3-argument pow() function...
|
|
The number in both columns should match.
|
|
3 3
|
|
-5 -5
|
|
-1 -1
|
|
5 5
|
|
-3 -3
|
|
-7 -7
|
|
|
|
3L 3L
|
|
-5L -5L
|
|
-1L -1L
|
|
5L 5L
|
|
-3L -3L
|
|
-7L -7L
|
|
|
|
|