extend test
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 23 Nov 2013 19:45:54 +0000 (20:45 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 23 Nov 2013 19:45:54 +0000 (20:45 +0100)
tests/run/int_float_builtins_as_casts_T400.pyx

index a0b5a7d..ad8450b 100644 (file)
@@ -181,3 +181,24 @@ def object_int(x):
     4
     """
     return int(x)
+
+
+@cython.test_fail_if_path_exists("//SimpleCallNode")
+def no_args_int_cint():
+    """
+    >>> no_args_int_cint()
+    0
+    """
+    cdef int x = int()
+    return x
+
+
+@cython.test_fail_if_path_exists("//SimpleCallNode")
+def no_args_float_cdouble():
+    """
+    >>> no_args_float_cdouble()
+    (0.0, 0.0)
+    """
+    cdef double xd = float()
+    cdef float xf = float()
+    return xd, xf