mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-17 01:51:39 +09:00
10 lines
177 B
Python
10 lines
177 B
Python
assert hex(16) == '0x10'
|
|
assert hex(-16) == '-0x10'
|
|
|
|
try:
|
|
hex({})
|
|
except TypeError:
|
|
pass
|
|
else:
|
|
assert False, "TypeError not raised when ord() is called with a dict"
|