Large literal int + double test.
authorRobert Bradshaw <robertwb@math.washington.edu>
Thu, 27 May 2010 03:29:53 +0000 (20:29 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Thu, 27 May 2010 03:29:53 +0000 (20:29 -0700)
tests/run/literals.pyx

index b0bcd619144154b396bb168a0638c0d19bf635c7..181dea639668fde1afbdd1d6e20e95cb762b0978 100644 (file)
@@ -62,3 +62,10 @@ def test_complex(x):
     True
     """
     return x == 0.3333333333333333j
+
+def test_large_int(double x):
+    """
+    >>> test_large_int(0)
+    1e+100
+    """
+    return x + 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000