]> granicus.if.org Git - python/commitdiff
Added tests for operator.floordiv() and operator.truediv().
authorFred Drake <fdrake@acm.org>
Thu, 9 Aug 2001 20:23:08 +0000 (20:23 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 9 Aug 2001 20:23:08 +0000 (20:23 +0000)
Lib/test/output/test_operator
Lib/test/test_operator.py

index 1ff755e80e6da890dc05e56850e854fabcc24059..6fdfced0bb32248aeade5575af9ded5bba611cf6 100644 (file)
@@ -7,6 +7,8 @@ testing: countOf
 testing: delitem
 testing: delslice
 testing: div
+testing: floordiv
+testing: truediv
 testing: getitem
 testing: getslice
 testing: indexOf
index b75c5ba78f72f55fc217fa77042885b3e9e38055..92efaa203d2a02a49ebd669a8a040c49907036de 100644 (file)
@@ -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)