From: Fred Drake Date: Thu, 9 Aug 2001 20:23:08 +0000 (+0000) Subject: Added tests for operator.floordiv() and operator.truediv(). X-Git-Tag: v2.2a3~698 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eaa77e2ca1c26a960ce4f9c38d721d989e9ff851;p=thirdparty%2FPython%2Fcpython.git Added tests for operator.floordiv() and operator.truediv(). --- diff --git a/Lib/test/output/test_operator b/Lib/test/output/test_operator index 1ff755e80e6d..6fdfced0bb32 100644 --- a/Lib/test/output/test_operator +++ b/Lib/test/output/test_operator @@ -7,6 +7,8 @@ testing: countOf testing: delitem testing: delslice testing: div +testing: floordiv +testing: truediv testing: getitem testing: getslice testing: indexOf diff --git a/Lib/test/test_operator.py b/Lib/test/test_operator.py index b75c5ba78f72..92efaa203d2a 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)