mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Added tests for operator.floordiv() and operator.truediv().
This commit is contained in:
parent
428e75fc3e
commit
eaa77e2ca1
2 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,8 @@ if a != [0, 1, 8, 9]:
|
|||
|
||||
a = range(10)
|
||||
test('div', 5, 2, 2)
|
||||
test('floordiv', 5, 2, 2)
|
||||
test('truediv', 5, 2.5, 2)
|
||||
test('getitem', a, 2, 2)
|
||||
test('getslice', a, [4, 5], 4, 6)
|
||||
test('indexOf', [4, 3, 2, 1], 1, 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue