mirror of
https://github.com/licsber/micropython.git
synced 2024-09-21 01:20:23 +08:00
539681fffd
From now on, all new tests must use underscore. Addresses issue #727.
13 lines
197 B
Python
13 lines
197 B
Python
# test builtin hex function
|
|
|
|
print(hex(1))
|
|
print(hex(-1))
|
|
print(hex(15))
|
|
print(hex(-15))
|
|
|
|
print(hex(12345))
|
|
print(hex(0x12345))
|
|
|
|
print(hex(12345678901234567890))
|
|
print(hex(0x12345678901234567890))
|