Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eaa77e2

Browse files
committed
Added tests for operator.floordiv() and operator.truediv().
1 parent 428e75f commit eaa77e2

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/output/test_operator

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ testing: countOf
77
testing: delitem
88
testing: delslice
99
testing: div
10+
testing: floordiv
11+
testing: truediv
1012
testing: getitem
1113
testing: getslice
1214
testing: indexOf

Lib/test/test_operator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def test(name, input, output, *args):
3131

3232
a = range(10)
3333
test('div', 5, 2, 2)
34+
test('floordiv', 5, 2, 2)
35+
test('truediv', 5, 2.5, 2)
3436
test('getitem', a, 2, 2)
3537
test('getslice', a, [4, 5], 4, 6)
3638
test('indexOf', [4, 3, 2, 1], 1, 3)

0 commit comments

Comments
 (0)