summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_operator.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-08-09 20:23:08 (GMT)
committerFred Drake <fdrake@acm.org>2001-08-09 20:23:08 (GMT)
commiteaa77e2ca1c26a960ce4f9c38d721d989e9ff851 (patch)
treefb4aa6e76795babdb6c097b871a8cf0e8640829f /Lib/test/test_operator.py
parent428e75fc3e857c3278138f72a5304d55d8b2b237 (diff)
downloadcpython-eaa77e2ca1c26a960ce4f9c38d721d989e9ff851.zip
cpython-eaa77e2ca1c26a960ce4f9c38d721d989e9ff851.tar.gz
cpython-eaa77e2ca1c26a960ce4f9c38d721d989e9ff851.tar.bz2
Added tests for operator.floordiv() and operator.truediv().
Diffstat (limited to 'Lib/test/test_operator.py')
-rw-r--r--Lib/test/test_operator.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_operator.py b/Lib/test/test_operator.py
index b75c5ba..92efaa2 100644
--- a/Lib/test/test_operator.py
+++ b/Lib/test/test_operator.py
@@ -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)