mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
With the recent change that makes numbers compare smaller than anything,
the outcome of the test for max has changed.
This commit is contained in:
parent
08636f08ed
commit
69256612d7
1 changed files with 3 additions and 3 deletions
|
@ -325,9 +325,9 @@ if map(None, Squares(10)) != [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]:
|
|||
if map(int, Squares(10)) != [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]:
|
||||
raise TestFailed, 'map(int, Squares(10))'
|
||||
if map(None, Squares(3), Squares(2)) != [(0,0), (1,1), (4,None)]:
|
||||
raise TestFailed, 'map(None: x, Squares(3), Squares(2))'
|
||||
if map(max, Squares(3), Squares(2)) != [0, 1, 4]:
|
||||
raise TestFailed, 'map(None: x, Squares(3), Squares(2))'
|
||||
raise TestFailed, 'map(None, Squares(3), Squares(2))'
|
||||
if map(max, Squares(3), Squares(2)) != [0, 1, None]:
|
||||
raise TestFailed, 'map(max, Squares(3), Squares(2))'
|
||||
|
||||
print 'max'
|
||||
if max('123123') <> '3': raise TestFailed, 'max(\'123123\')'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue