diff options
Diffstat (limited to 'tests/float/int_power.py')
-rw-r--r-- | tests/float/int_power.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/float/int_power.py b/tests/float/int_power.py new file mode 100644 index 0000000000..a5a9a5b7a3 --- /dev/null +++ b/tests/float/int_power.py @@ -0,0 +1,8 @@ +# negative power should produce float + +x = 2 +print(x ** -2) + +x = 3 +x **= -2 +print(x) |