mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add a test for the new // operator too.
This commit is contained in:
parent
26c7fa355a
commit
a365309528
1 changed files with 4 additions and 0 deletions
|
@ -300,6 +300,10 @@ def test_auto_overflow():
|
|||
got = x / y
|
||||
checkit(x, '/', y)
|
||||
|
||||
expected = longx // longy
|
||||
got = x // y
|
||||
checkit(x, '//', y)
|
||||
|
||||
expected = divmod(longx, longy)
|
||||
got = divmod(longx, longy)
|
||||
checkit(x, 'divmod', y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue