Kaydet (Commit) eaa77e2c authored tarafından Fred Drake's avatar Fred Drake

Added tests for operator.floordiv() and operator.truediv().

üst 428e75fc
...@@ -7,6 +7,8 @@ testing: countOf ...@@ -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]: ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment