mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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
|
@ -7,6 +7,8 @@ testing: countOf
|
||||||
testing: delitem
|
testing: delitem
|
||||||
testing: delslice
|
testing: delslice
|
||||||
testing: div
|
testing: div
|
||||||
|
testing: floordiv
|
||||||
|
testing: truediv
|
||||||
testing: getitem
|
testing: getitem
|
||||||
testing: getslice
|
testing: getslice
|
||||||
testing: indexOf
|
testing: indexOf
|
||||||
|
|
|
@ -31,6 +31,8 @@ if a != [0, 1, 8, 9]:
|
||||||
|
|
||||||
a = range(10)
|
a = range(10)
|
||||||
test('div', 5, 2, 2)
|
test('div', 5, 2, 2)
|
||||||
|
test('floordiv', 5, 2, 2)
|
||||||
|
test('truediv', 5, 2.5, 2)
|
||||||
test('getitem', a, 2, 2)
|
test('getitem', a, 2, 2)
|
||||||
test('getslice', a, [4, 5], 4, 6)
|
test('getslice', a, [4, 5], 4, 6)
|
||||||
test('indexOf', [4, 3, 2, 1], 1, 3)
|
test('indexOf', [4, 3, 2, 1], 1, 3)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue