mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
7 lines
155 B
Python
7 lines
155 B
Python
from testutils import assert_raises
|
|
|
|
assert hex(16) == '0x10'
|
|
assert hex(-16) == '-0x10'
|
|
|
|
assert_raises(TypeError, hex, {}, _msg='ord() called with dict')
|