[Python-checkins] CVS: python/dist/src/Lib/test test_operator.py,1.4,1.5
Fred L. Drake
fdrake@users.sourceforge.net
Thu, 09 Aug 2001 13:23:10 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv27536/Lib/test
Modified Files:
test_operator.py
Log Message:
Added tests for operator.floordiv() and operator.truediv().
Index: test_operator.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_operator.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_operator.py 2000/12/12 23:11:42 1.4
--- test_operator.py 2001/08/09 20:23:08 1.5
***************
*** 32,35 ****
--- 32,37 ----
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)