Skip to content

Commit

Permalink
Correct comment, add a few more cases
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Apr 19, 2022
1 parent 78b9dd0 commit 9d3650f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test_cases/stdlib/test_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ def __reduce__(self) -> Union[str, Tuple[Any, ...]]:
#
# int for positive 2nd-arg, float otherwise
assert_type(pow(4, 65), Any)
assert_type(pow(2, -45), Any)
assert_type(pow(3, 57, None), Any)
# float for positive 2nd-arg, complex otherwise
# pow(<pos-float>, <pos-or-neg-float>) -> float
# pow(<neg-float>, <pos-or-neg-float>) -> complex
assert_type(pow(4.7, 7.4), Any)
assert_type(pow(-9.8, 8.3), Any)
assert_type(pow(-9.3, -88.2), Any)
assert_type(pow(8.2, -9.8), Any)
assert_type(pow(4.7, 9.2, None), Any)
assert_type((6.2).__pow__(5.2, None), Any)
# See #7046 -- float for a positive 1st arg, complex otherwise
Expand Down

0 comments on commit 9d3650f

Please sign in to comment.