Add a test for the new // operator too.
authorTim Peters <tim.peters@gmail.com>
Thu, 23 Aug 2001 23:02:57 +0000 (23:02 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 23 Aug 2001 23:02:57 +0000 (23:02 +0000)
Lib/test/test_long.py

index 60adb74a626f25cf8beb79be2712813fd529ddfd..3b6081e7d531c59308094ee7cfa5c8180510759e 100644 (file)
@@ -300,6 +300,10 @@ def test_auto_overflow():
                 got = x / y
                 checkit(x, '/', y)
 
+                expected = longx // longy
+                got = x // y
+                checkit(x, '//', y)
+
                 expected = divmod(longx, longy)
                 got = divmod(longx, longy)
                 checkit(x, 'divmod', y)