mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
tests: Add further tests for mpz code.
This commit is contained in:
8
tests/basics/int_big_pow.py
Normal file
8
tests/basics/int_big_pow.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# test bignum power
|
||||
|
||||
i = 1 << 65
|
||||
|
||||
print(0 ** i)
|
||||
print(i ** 0)
|
||||
print(i ** 1)
|
||||
print(i ** 2)
|
||||
Reference in New Issue
Block a user