updated the hex(-16) test since hex() of a signed literal has changed.

This commit is contained in:
Barry Warsaw 1997-01-13 22:36:29 +00:00
parent 906a5e9c68
commit 6f332d8f35
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ def f(): pass
print 'hex' print 'hex'
if hex(16) != '0x10': raise TestFailed, 'hex(16)' if hex(16) != '0x10': raise TestFailed, 'hex(16)'
if hex(16L) != '0x10L': raise TestFailed, 'hex(16L)' if hex(16L) != '0x10L': raise TestFailed, 'hex(16L)'
if hex(-16) != '-0x10': raise TestFailed, 'hex(-16)' if hex(-16) != '0xfffffff0': raise TestFailed, 'hex(-16)'
if hex(-16L) != '-0x10L': raise TestFailed, 'hex(-16L)' if hex(-16L) != '-0x10L': raise TestFailed, 'hex(-16L)'
print 'id' print 'id'